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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1056
RA = 338.841, Dec = -48.6015
tmin = 513043201, tmax = 513302401
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='383712', job_status='RUN', time_executed='2021-09-28 15:59:54.149266', time_epoch_executed='1632869994.15' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383712

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383712/ft1_4FGL_J2235.3-4836_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383712/ft2_4FGL_J2235.3-4836_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383712/ft1_4FGL_J2235.3-4836_daily_bin1056.fits outfile=/scratch/kocevski/383712/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1056.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=513043201.0 tmax=513302401.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 6.34
user 6.09
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/383712/ft2_4FGL_J2235.3-4836_daily_bin1056.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/383712/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1056.fits evtable="EVENTS" outfile="/scratch/kocevski/383712/ft1_filtered_4FGL_J2235.3-4836_daily_bin1056.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/383712/ft1_filtered_4FGL_J2235.3-4836_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/383712/ft2_4FGL_J2235.3-4836_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/383712/ltcube_513043201_513302401_4FGL_J2235.3-4836_daily_bin1056.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/383712/ft2_4FGL_J2235.3-4836_daily_bin1056.fits
.....................!
real 11.97
user 11.63
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383712/ft1_filtered_4FGL_J2235.3-4836_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/383712/ft2_4FGL_J2235.3-4836_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/383712/ltcube_513043201_513302401_4FGL_J2235.3-4836_daily_bin1056.fits outfile=/scratch/kocevski/383712/expmap_513043201_513302401_4FGL_J2235.3-4836_daily_bin1056.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/383712/ltcube_513043201_513302401_4FGL_J2235.3-4836_daily_bin1056.fits
.....................!
real 190.05
user 185.42
sys 4.21

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/383712/ft1_filtered_4FGL_J2235.3-4836_daily_bin1056.fits scfile=/scratch/kocevski/383712/ft2_4FGL_J2235.3-4836_daily_bin1056.fits outfile=/scratch/kocevski/383712/cmap_513043201_513302401_4FGL_J2235.3-4836_daily_bin1056.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383712/ft1_filtered_4FGL_J2235.3-4836_daily_bin1056.fits scfile=/scratch/kocevski/383712/ft2_4FGL_J2235.3-4836_daily_bin1056.fits outfile=/scratch/kocevski/383712/cmap_HighResolution_513043201_513302401_4FGL_J2235.3-4836_daily_bin1056.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.54
user 0.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/383712/ft1_filtered_4FGL_J2235.3-4836_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/383712/ft2_4FGL_J2235.3-4836_daily_bin1056.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/383712/Model_4FGL_J2235.3-4836_daily_bin1056.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/383712/ft1_filtered_4FGL_J2235.3-4836_daily_bin1056.fits.....................!
real 36.44
user 35.24
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/383712/ft1_filtered_4FGL_J2235.3-4836_daily_bin1056.fits', '/scratch/kocevski/383712/ft2_4FGL_J2235.3-4836_daily_bin1056.fits', expMap='/scratch/kocevski/383712/expmap_513043201_513302401_4FGL_J2235.3-4836_daily_bin1056.fits', expCube='/scratch/kocevski/383712/ltcube_513043201_513302401_4FGL_J2235.3-4836_daily_bin1056.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/383712/Model_4FGL_J2235.3-4836_daily_bin1056.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/383712/ft1_filtered_4FGL_J2235.3-4836_daily_bin1056.fits
Spacecraft file(s): /scratch/kocevski/383712/ft2_4FGL_J2235.3-4836_daily_bin1056.fits
Exposure map: /scratch/kocevski/383712/expmap_513043201_513302401_4FGL_J2235.3-4836_daily_bin1056.fits
Exposure cube: /scratch/kocevski/383712/ltcube_513043201_513302401_4FGL_J2235.3-4836_daily_bin1056.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/383712/Model_4FGL_J2235.3-4836_daily_bin1056.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) = 4408.30217093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.448       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.7324       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0662       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.8327       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15668E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.012       1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.137       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.723       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16874E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.802       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16741E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10578E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.684       1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.518       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .68159       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.8019       1.0000         .10000E-03   10000.    
    28 'Prefactor '    55.741       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1402       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .62195       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4408.282     FROM MIGRAD    STATUS=CONVERGED   1370 CALLS     4519 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.281        .18142E-02** at limit **
   2  Prefactor     20.443        28.922        .88574E-04    .19253E-05
   3  Prefactor     .10000E-03    1.5317        .80041E-03** at limit **
   4  norm          3.7336        4.2362        .14144E-03    .12700E-04
   5  Prefactor     .10000E-03    18.662        .18142E-02** at limit **
   6  Prefactor     7.0689        9.7460        .15091E-03   -.14539E-04
   7  Prefactor     9.8324        5.2585        .10441E-03   -.13720E-04
   8  Prefactor     .10000E-03    116.54        .18142E-02** at limit **
   9  norm          .10000E-03    6.0954        .15960E-02** at limit **
  10  Prefactor     .10002E-03    11.120        .21177E-02** at limit **
  11  Prefactor     .10000E-03    22.014        .18142E-02** at limit **
  12  Prefactor     19.016        8.7055        .91857E-04    .23156E-03
  13  Prefactor     46.142        28.304        .59029E-04    .49959E-04
  14  Prefactor     19.716        24.655        .90187E-04    .17648E-04
  15  Prefactor     .10000E-03    4.0802        .13082E-02** at limit **
  16  Prefactor     .10000E-03    68.766        .18142E-02** at limit **
  17  Prefactor     18.805        11.112        .92369E-04    .10880E-03
  18  Prefactor     .10001E-03    34.330        .12718    ** at limit **
  19  Prefactor     .10000E-03    12.459        .18142E-02** at limit **
  20  norm          .10000E-03    10.506        .18142E-02** at limit **
  21  norm          .10000E-03    16.032        .36285E-03** at limit **
  22  norm          .10000E-03    4.9590        .14417E-02** at limit **
  23  Prefactor     13.683        8.3884        .10828E-03    .92291E-04
  24  Prefactor     29.599        52.606        .73743E-04   -.33916E-04
  25  Prefactor     .10000E-03    8.1939        .18142E-02** at limit **
  26  norm          .68212        .90957        .74206E-03    .13745E-02
  27  Prefactor     3.8016        4.9953        .16135E-03   -.10963E-03
  28  Prefactor     55.776        44.089        .53729E-04   -.45112E-04
  29  Normalizat    1.1401        .24339        .22783E-03    .19959E-03
  30  Prefactor     .62212        .20214        .26498E-03    .16003E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.4428
  Prefactor  = 0.0001
  norm       = 3.73363
  Prefactor  = 0.0001
  Prefactor  = 7.06889
  Prefactor  = 9.83241
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 19.0163
  Prefactor  = 46.1419
  Prefactor  = 19.7155
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.8048
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.6829
  Prefactor  = 29.5995
  Prefactor  = 0.0001
  norm       = 0.682117
  Prefactor  = 3.80155
  Prefactor  = 55.7759
  Normalizat = 1.14005
  Prefactor  = 0.622121
 **********
 **   18 **HESSE 
 **********

 FCN=   4408.282     FROM HESSE     STATUS=OK           568 CALLS     5087 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.296        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.443        28.925        .35430E-05   -1.4803    
   3  Prefactor     .10000E-03    1.5317        .16008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.7336        4.2362        .56576E-05   -1.5321    
   5  Prefactor     .10000E-03    18.663        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.0689        9.7450        .60364E-05   -1.5176    
   7  Prefactor     9.8324        5.2583        .41764E-05   -1.5081    
   8  Prefactor     .10000E-03    116.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.0965        .31920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    11.170        .42354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.015        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.016        8.7056        .36743E-05   -1.4836    
  13  Prefactor     46.142        28.305        .11806E-04   -1.4348    
  14  Prefactor     19.716        24.655        .36075E-05   -1.4820    
  15  Prefactor     .10000E-03    4.0803        .26164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    68.770        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.805        11.112        .36947E-05   -1.4840    
  18  Prefactor     .10001E-03    33.897        .12866       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.461        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    10.510        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    16.032        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.9592        .28834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.683        8.3876        .43311E-05   -1.4968    
  24  Prefactor     29.599        52.606        .29497E-05   -1.4619    
  25  Prefactor     .10000E-03    8.1946        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .68212        .90912        .29682E-04   -1.5543    
  27  Prefactor     3.8016        4.9948        .64541E-05   -1.5318    
  28  Prefactor     55.776        44.084        .10746E-04   -1.4213    
  29  Normalizat    1.1401        .24357        .45565E-04   -.88476    
  30  Prefactor     .62212        .20231        .10599E-04   -1.0666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74584e-09
Minuit parameter uncertainties:
  1  2.14403e-05
  2  28.9448
  3  2.01051e-06
  4  4.23655
  5  2.45904e-05
  6  9.74719
  7  5.25851
  8  0.000353243
  9  3.16971e-06
  10  0.000832612
  11  3.89135e-06
  12  8.70619
  13  28.3127
  14  24.6677
  15  3.87364e-06
  16  1.60657e-05
  17  11.1132
  18  0.000909782
  19  6.07919e-05
  20  9.04184e-06
  21  1.31891e-05
  22  6.44494e-05
  23  8.38831
  24  52.6881
  25  2.96989e-05
  26  0.909135
  27  4.99535
  28  44.1094
  29  0.243806
  30  0.202547
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.902e+01  8.706e+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:  6.221e-01  2.025e-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:  1.140e+00  2.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.38
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 1.20e-07 +/- 5.47e-08
Energy Flux (Fixed Index): 3.43e-05 +/- 1.57e-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) = 4408.1025172
delta logL = 0.179682260031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4408.09359143
delta logL = 0.188608027169

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.760       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8094       1.0000          .0000       10.000    
     3 'Normalizat'    1.1131       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63770       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4408.094     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      307 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.767        9.7149        .50445E-03    .55680E-04
   2  Index         2.8100        .52677        .45980E-02    .31737E-03
   3  Normalizat    1.1129        .23307        .23000E-03    .10874E-05
   4  Prefactor     .63774        .20191        .26177E-03    .13463E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7675
  Index      = 2.81003
  Normalizat = 1.11293
  Prefactor  = 0.637743
 **********
 **   18 **HESSE 
 **********

 FCN=   4408.094     FROM HESSE     STATUS=OK            27 CALLS      334 TOTAL
                     EDM=   .19E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.767        9.3172        .10089E-03   -1.4914    
   2  Index         2.8100        .50501        .91959E-03   -.45337    
   3  Normalizat    1.1129        .23321        .92001E-05   -.89338    
   4  Prefactor     .63774        .20201        .10471E-04   -1.0602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85368e-14
Minuit parameter uncertainties:
  1  9.31801
  2  0.506081
  3  0.23343
  4  0.202245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383712': 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) = 4408.0935881
delta logL = 0.188611360048

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.577e+01  9.318e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.810e+00  5.061e-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:  6.377e-01  2.022e-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:  1.113e+00  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.77
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 2.81 +/- 0.51
Photon Flux (Free Index): 1.43e-07 +/- 6.83e-08
Energy Flux (Free Index): 3.17e-05 +/- 1.38e-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/383712/cmap_HighResolution_513043201_513302401_4FGL_J2235.3-4836_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.20e-07', energy_flux2='3.17e-05', photon_flux_error='5.47e-08', dlogl='1.89e-01', energy_flux='3.43e-05', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-09-28 16:11:10.055266', photon_index_error2='0.51', photon_index2='2.81', ts='11.38', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='1.14', time_epoch_completed='1632870670.06', return_code='0', job_id='383712', GAL2='0.64', EG2='1.11', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='6.83e-08', ts2='11.77', photon_index='2.51' WHERE bin_id='1056' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:11:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 383712: <4FGL_J2235.3-4836_daily_bin1056> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1056> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:55:51 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:55:54 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:55:54 2021
Terminated at Tue Sep 28 16:11:10 2021
Results reported at Tue Sep 28 16:11:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1056 338.841 -48.6015 513043201 513302401 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 :                                   674.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             213.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            919 sec.

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

