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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1312
RA = 338.841, Dec = -48.6015
tmin = 579398401, tmax = 579657601
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='386188', job_status='RUN', time_executed='2021-09-28 16:05:46.980004', time_epoch_executed='1632870346.98' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1312'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386188

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386188/ft1_4FGL_J2235.3-4836_daily_bin1312.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386188/ft2_4FGL_J2235.3-4836_daily_bin1312.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386188/ft1_4FGL_J2235.3-4836_daily_bin1312.fits outfile=/scratch/kocevski/386188/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1312.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=579398401.0 tmax=579657601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.48
user 3.25
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386188/ft1_filtered_4FGL_J2235.3-4836_daily_bin1312.fits" evtable="EVENTS" scfile=/scratch/kocevski/386188/ft2_4FGL_J2235.3-4836_daily_bin1312.fits sctable="SC_DATA" outfile=/scratch/kocevski/386188/ltcube_579398401_579657601_4FGL_J2235.3-4836_daily_bin1312.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/386188/ft2_4FGL_J2235.3-4836_daily_bin1312.fits
.....................!
real 12.27
user 11.81
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386188/ft1_filtered_4FGL_J2235.3-4836_daily_bin1312.fits evtable="EVENTS" scfile=/scratch/kocevski/386188/ft2_4FGL_J2235.3-4836_daily_bin1312.fits sctable="SC_DATA" expcube=/scratch/kocevski/386188/ltcube_579398401_579657601_4FGL_J2235.3-4836_daily_bin1312.fits outfile=/scratch/kocevski/386188/expmap_579398401_579657601_4FGL_J2235.3-4836_daily_bin1312.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/386188/ltcube_579398401_579657601_4FGL_J2235.3-4836_daily_bin1312.fits
.....................!
real 190.96
user 185.32
sys 5.03

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/386188/ft1_filtered_4FGL_J2235.3-4836_daily_bin1312.fits scfile=/scratch/kocevski/386188/ft2_4FGL_J2235.3-4836_daily_bin1312.fits outfile=/scratch/kocevski/386188/cmap_579398401_579657601_4FGL_J2235.3-4836_daily_bin1312.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/386188/ft1_filtered_4FGL_J2235.3-4836_daily_bin1312.fits scfile=/scratch/kocevski/386188/ft2_4FGL_J2235.3-4836_daily_bin1312.fits outfile=/scratch/kocevski/386188/cmap_HighResolution_579398401_579657601_4FGL_J2235.3-4836_daily_bin1312.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386188/ft1_filtered_4FGL_J2235.3-4836_daily_bin1312.fits evtable="EVENTS" scfile=/scratch/kocevski/386188/ft2_4FGL_J2235.3-4836_daily_bin1312.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386188/Model_4FGL_J2235.3-4836_daily_bin1312.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/386188/ft1_filtered_4FGL_J2235.3-4836_daily_bin1312.fits.....................!
real 47.40
user 46.02
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.999       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.100       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3377       1.0000         .10000E-03   10000.    
     4 'norm      '    27.851       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3102       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3011       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9336       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4883       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.9131       1.0000         .10000E-03   10000.    
    16 'Prefactor '    63.243       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.615       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .58102E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.5718       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14519E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    65.166       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .68953       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98639       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=   6342.209     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3913 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.999        8.9546        .47140E-07   -.23308E-05
   2  Prefactor     16.094        21.796        .23555E-06    .11346E-04
   3  Prefactor     4.3370        4.3143       -.36858E-06   -.18078E-04
   4  norm          27.851        6.8679       -.28039E-07   -.71347E-05
   5  Prefactor     .10000E-03    45.279        .40870E-05** at limit **
   6  Prefactor     .10000E-03    5.6978       -.39398E-07** at limit **
   7  Prefactor     5.3102        3.0960       -.41368E-07   -.15551E-04
   8  Prefactor     .10000E-03    29.798       -.25193E-05** at limit **
   9  norm          .10000E-03    1.9772        .11673E-07** at limit **
  10  Prefactor     9.3016        3.6596       -.42505E-07    .52283E-04
  11  Prefactor     .10000E-03    10.806       -.32376E-06** at limit **
  12  Prefactor     2.9339        3.5890       -.33690E-06   -.67389E-04
  13  Prefactor     2.4910        18.470       -.27295E-05   -.88475E-05
  14  Prefactor     .10000E-03    22.090        .20629E-05** at limit **
  15  Prefactor     8.9155        9.7583        .45711E-06   -.38998E-04
  16  Prefactor     63.246        71.997        .31133E-07   -.88421E-05
  17  Prefactor     .10000E-03    1.8552       -.17501E-07** at limit **
  18  Prefactor     29.617        33.477       -.51295E-07   -.49576E-05
  19  Prefactor     .10000E-03    7.4315       -.75347E-07** at limit **
  20  norm          .10000E-03    6.4824        .90370E-06** at limit **
  21  norm          .10000E-03    1.9642       -.25282E-07** at limit **
  22  norm          2.5717        3.1584        .52563E-07    .56350E-05
  23  Prefactor     .10000E-03    4.7421        .13794E-06** at limit **
  24  Prefactor     65.169        34.618       -.37849E-06    .90807E-05
  25  Prefactor     .10000E-03    28.726        .55239E-05** at limit **
  26  norm          .10000E-03    .46445       -.44114E-07** at limit **
  27  Prefactor     .10000E-03    1.2539       -.19965E-07** at limit **
  28  Prefactor     .10000E-03    7.4248        .12552E-06** at limit **
  29  Normalizat    .68932        .16085        .16969E-05    .15657E-04
  30  Prefactor     .98656        .14776       -.11371E-06    .17709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9993
  Prefactor  = 16.0941
  Prefactor  = 4.33705
  norm       = 27.8506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.31015
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.30163
  Prefactor  = 0.0001
  Prefactor  = 2.93387
  Prefactor  = 2.49104
  Prefactor  = 0.0001
  Prefactor  = 8.91549
  Prefactor  = 63.2459
  Prefactor  = 0.0001
  Prefactor  = 29.6168
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 0.0001
  norm       = 2.57169
  Prefactor  = 0.0001
  Prefactor  = 65.1694
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.68932
  Prefactor  = 0.986556
 **********
 **   18 **HESSE 
 **********

 FCN=   6342.209     FROM HESSE     STATUS=OK           588 CALLS     4501 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.999        8.9472        .11564E-03   -1.5015    
   2  Prefactor     16.094        21.811        .99819E-04   -1.4905    
   3  Prefactor     4.3370        4.3326        .15665E-03   -1.5291    
   4  norm          27.851        6.8667        .75914E-04   -1.4652    
   5  Prefactor     .10000E-03    45.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.8815        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.3102        3.0942        .10307E-03   -1.5247    
   8  Prefactor     .10000E-03    30.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.9785        .10936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.3016        3.6592        .91394E-04   -1.5098    
  11  Prefactor     .10000E-03    10.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9339        3.5839        .16024E-03   -1.5365    
  13  Prefactor     2.4910        18.655        .25913E-03   -1.5392    
  14  Prefactor     .10000E-03    22.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.9155        9.7198        .13425E-03   -1.5111    
  16  Prefactor     63.246        71.975        .50460E-04   -1.4116    
  17  Prefactor     .10000E-03    1.8612        .10592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.617        33.466        .73623E-04   -1.4619    
  19  Prefactor     .10000E-03    7.4880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    37.472        .37486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.9682        .10900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.5717        3.1540        .15275E-03   -1.5387    
  23  Prefactor     .10000E-03    4.8816        .33642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     65.169        34.605        .49715E-04   -1.4092    
  25  Prefactor     .10000E-03    28.934        .36723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.3787        .10425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.2594        .87082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.4289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .68932        .18294        .25925E-03   -1.0432    
  30  Prefactor     .98656        .17271        .21089E-03   -.93179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33532e-10
Minuit parameter uncertainties:
  1  8.94818
  2  21.8213
  3  4.33294
  4  6.86692
  5  9.26202e-06
  6  2.0868e-05
  7  3.09425
  8  0.000134854
  9  1.1216e-06
  10  3.65926
  11  1.09467e-05
  12  3.58419
  13  13.6394
  14  3.36137e-05
  15  9.72154
  16  72.0746
  17  2.19503e-06
  18  33.487
  19  2.28566e-05
  20  0.000803463
  21  1.45817e-06
  22  3.15419
  23  1.12933e-05
  24  34.6159
  25  4.14294e-05
  26  4.9568e-05
  27  2.54054e-06
  28  1.85941e-06
  29  0.183099
  30  0.17281
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  2.934e+00  3.584e+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:  9.866e-01  1.728e-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:  6.893e-01  1.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 1.85e-08 +/- 2.25e-08
Energy Flux (Fixed Index): 5.30e-06 +/- 6.47e-06

TS (Fixed Index): 1.11
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 7.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386188/likelihoodResults_579398401_579657601_4FGL_J2235.3-4836_daily_bin1312.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6342.15612012
delta logL = 0.0531185262062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6342.15371059
delta logL = 0.0555280508061

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3500       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2133       1.0000          .0000       10.000    
     3 'Normalizat'    .69410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98333       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=   6342.154     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      262 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3498        4.0825        .17102E-03    .89451E-03
   2  Index         2.2129        .84631        .12454E-01    .14893E-03
   3  Normalizat    .69412        .17759        .25842E-03   -.80376E-04
   4  Prefactor     .98332        .17070        .21119E-03   -.10963E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.34978
  Index      = 2.21293
  Normalizat = 0.694116
  Prefactor  = 0.98332
 **********
 **   18 **HESSE 
 **********

 FCN=   6342.154     FROM HESSE     STATUS=OK            23 CALLS      285 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3498        4.0630        .68407E-05   -1.5342    
   2  Index         2.2129        .84252        .49818E-03   -.59127    
   3  Normalizat    .69412        .17774        .10337E-04   -1.0413    
   4  Prefactor     .98332        .17084        .42237E-04   -.93288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25555e-09
Minuit parameter uncertainties:
  1  4.06333
  2  0.848411
  3  0.177886
  4  0.17093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386188': 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) = 6342.1537105
delta logL = 0.0555281425968

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  3.350e+00  4.063e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.213e+00  8.484e-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:  9.833e-01  1.709e-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:  6.941e-01  1.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 2.21 +/- 0.85
Photon Flux (Free Index): 1.53e-08 +/- 2.17e-08
Energy Flux (Free Index): 6.70e-06 +/- 9.69e-06

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/386188/cmap_HighResolution_579398401_579657601_4FGL_J2235.3-4836_daily_bin1312.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.88e-03', comment='SUCCESS', photon_flux='1.85e-08', energy_flux2='6.70e-06', photon_flux_error='2.25e-08', dlogl='5.55e-02', energy_flux='5.30e-06', photon_flux2='1.53e-08', job_status='DONE', time_completed='2021-09-28 16:20:13.414455', photon_index_error2='0.85', photon_index2='2.21', ts='1.11', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='7.56e-08', energy_flux_error2='9.69e-06', EG='0.69', time_epoch_completed='1632871213.41', return_code='0', job_id='386188', GAL2='0.98', EG2='0.69', return_code2='0', energy_flux_error='6.47e-06', photon_flux_error2='2.17e-08', ts2='1.22', photon_index='2.51' WHERE bin_id='1312' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:20:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 386188: <4FGL_J2235.3-4836_daily_bin1312> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1312> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 16:05:14 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:05:16 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:05:16 2021
Terminated at Tue Sep 28 16:20:14 2021
Results reported at Tue Sep 28 16:20:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1312 338.841 -48.6015 579398401 579657601 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 :                                   864.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            900 sec.

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

