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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1214
RA = 338.841, Dec = -48.6015
tmin = 553996801, tmax = 554256001
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='384945', job_status='RUN', time_executed='2021-09-28 16:01:43.770174', time_epoch_executed='1632870103.77' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384945

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384945/ft1_4FGL_J2235.3-4836_daily_bin1214.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384945/ft2_4FGL_J2235.3-4836_daily_bin1214.fits


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

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

Done.
real 2.61
user 2.41
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384945/ft1_filtered_4FGL_J2235.3-4836_daily_bin1214.fits" evtable="EVENTS" scfile=/scratch/kocevski/384945/ft2_4FGL_J2235.3-4836_daily_bin1214.fits sctable="SC_DATA" outfile=/scratch/kocevski/384945/ltcube_553996801_554256001_4FGL_J2235.3-4836_daily_bin1214.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/384945/ft2_4FGL_J2235.3-4836_daily_bin1214.fits
.....................!
real 13.07
user 12.74
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384945/ft1_filtered_4FGL_J2235.3-4836_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/384945/ft2_4FGL_J2235.3-4836_daily_bin1214.fits sctable="SC_DATA" expcube=/scratch/kocevski/384945/ltcube_553996801_554256001_4FGL_J2235.3-4836_daily_bin1214.fits outfile=/scratch/kocevski/384945/expmap_553996801_554256001_4FGL_J2235.3-4836_daily_bin1214.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/384945/ltcube_553996801_554256001_4FGL_J2235.3-4836_daily_bin1214.fits
.....................!
real 192.10
user 186.19
sys 5.58

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/384945/ft1_filtered_4FGL_J2235.3-4836_daily_bin1214.fits scfile=/scratch/kocevski/384945/ft2_4FGL_J2235.3-4836_daily_bin1214.fits outfile=/scratch/kocevski/384945/cmap_553996801_554256001_4FGL_J2235.3-4836_daily_bin1214.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384945/ft1_filtered_4FGL_J2235.3-4836_daily_bin1214.fits scfile=/scratch/kocevski/384945/ft2_4FGL_J2235.3-4836_daily_bin1214.fits outfile=/scratch/kocevski/384945/cmap_HighResolution_553996801_554256001_4FGL_J2235.3-4836_daily_bin1214.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.400       1.0000         .10000E-03   10000.    
     3 'Prefactor '    51.559       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    72.118       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.370       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.740       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.563       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    63.841       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.197       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.842       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    105.12       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.1017       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .55527       1.0000         .10000E-03   10000.    
    28 'Prefactor '    18.012       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .93750       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .80229       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=   1440.661     FROM MIGRAD    STATUS=CONVERGED    752 CALLS     4501 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    115.19       -.36117E-05** at limit **
   2  Prefactor     38.358        117.71        .42481E-06    .17583E-04
   3  Prefactor     51.576        35.110       -.51301E-06    .29223E-04
   4  norm          .10000E-03    15.045        .18659E-06** at limit **
   5  Prefactor     72.125        174.81       -.20617E-05    .19775E-07
   6  Prefactor     .10000E-03    29.324        .24639E-06** at limit **
   7  Prefactor     19.366        15.560       -.30091E-06    .10197E-04
   8  Prefactor     .10000E-03    232.34        .22795E-05** at limit **
   9  norm          .10000E-03    11.344       -.41056E-08** at limit **
  10  Prefactor     13.739        16.852       -.45542E-06    .13136E-04
  11  Prefactor     .10000E-03    81.015        .18406E-05** at limit **
  12  Prefactor     28.563        24.490       -.19322E-06    .50629E-04
  13  Prefactor     .10000E-03    39.936        .11838E-06** at limit **
  14  Prefactor     .10000E-03    38.227       -.34249E-06** at limit **
  15  Prefactor     63.863        44.954       -.13512E-06    .17216E-04
  16  Prefactor     24.324        498.44       -.10718E-04   -.17582E-04
  17  Prefactor     .10000E-03    14.376       -.22543E-07** at limit **
  18  Prefactor     .10000E-03    35.166       -.67771E-06** at limit **
  19  Prefactor     .10000E-03    18.580       -.42385E-06** at limit **
  20  norm          15.840        24.270       -.29303E-06    .27174E-04
  21  norm          .10000E-03    8.4683       -.18459E-06** at limit **
  22  norm          .10000E-03    6.4515       -.35031E-07** at limit **
  23  Prefactor     .10000E-03    15.660       -.13482E-05** at limit **
  24  Prefactor     105.15        127.45       -.18419E-05    .16823E-04
  25  Prefactor     .10000E-03    13.887       -.69516E-06** at limit **
  26  norm          2.1023        2.2735        .35569E-06    .73441E-03
  27  Prefactor     .53766        65.314       -.22363E-04    .12067E-03
  28  Prefactor     18.074        67.078        .16849E-04    .54448E-04
  29  Normalizat    .93735        .46016        .16420E-05    .29863E-04
  30  Prefactor     .80238        .37994        .38889E-05    .27462E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 38.3577
  Prefactor  = 51.5757
  norm       = 0.0001
  Prefactor  = 72.125
  Prefactor  = 0.0001
  Prefactor  = 19.3663
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 13.7389
  Prefactor  = 0.000100001
  Prefactor  = 28.5634
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.8635
  Prefactor  = 24.3241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.8399
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 105.148
  Prefactor  = 0.0001
  norm       = 2.10233
  Prefactor  = 0.537655
  Prefactor  = 18.0743
  Normalizat = 0.937348
  Prefactor  = 0.802378
 **********
 **   18 **HESSE 
 **********

 FCN=   1440.661     FROM HESSE     STATUS=OK           574 CALLS     5075 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    115.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     38.358        118.12        .64680E-04   -1.4469    
   3  Prefactor     51.576        35.114        .55853E-04   -1.4270    
   4  norm          .10000E-03    15.046        .14383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     72.125        174.80        .47274E-04   -1.4007    
   6  Prefactor     .10000E-03    29.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.366        15.560        .91004E-04   -1.4828    
   8  Prefactor     .10000E-03    232.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    11.349        .12488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.739        16.869        .10806E-03   -1.4966    
  11  Prefactor     .10000E-03    81.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.563        24.567        .74962E-04   -1.4639    
  13  Prefactor     .10000E-03    39.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    38.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     63.863        44.990        .50224E-04   -1.4108    
  16  Prefactor     24.324        497.92        .81432E-04   -1.4721    
  17  Prefactor     .10000E-03    14.403        .14057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    35.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.604        .15987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.840        24.267        .10063E-03   -1.4912    
  21  norm          .10000E-03    8.4814        .10789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.4520        .94168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.969        .14696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     105.15        129.16        .39221E-04   -1.3654    
  25  Prefactor     .10000E-03    13.915        .13824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.1023        2.2635        .55264E-04   -1.5418    
  27  Prefactor     .53766        75.384        .22904E-02   -1.5561    
  28  Prefactor     18.074        69.770        .94371E-04   -1.4857    
  29  Normalizat    .93735        .53464        .28569E-03   -.95160    
  30  Prefactor     .80238        .44801        .28121E-03   -.99641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46908e-09
Minuit parameter uncertainties:
  1  0.00104804
  2  118.85
  3  35.128
  4  1.70332e-05
  5  176.066
  6  1.34772e-05
  7  15.5634
  8  0.000924838
  9  2.70175e-07
  10  16.8753
  11  0.000428349
  12  24.5752
  13  3.14814e-05
  14  8.45772e-05
  15  45.0135
  16  222.252
  17  3.91626e-05
  18  0.000115153
  19  8.76007e-05
  20  24.2822
  21  2.69138e-05
  22  9.53471e-06
  23  0.000176667
  24  129.507
  25  6.53223e-05
  26  2.26357
  27  12.748
  28  70.0878
  29  0.537719
  30  0.450069
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  2.856e+01  2.458e+01  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:  8.024e-01  4.501e-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.373e-01  5.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.18
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 1.80e-07 +/- 1.54e-07
Energy Flux (Fixed Index): 5.16e-05 +/- 4.43e-05

TS (Fixed Index): 2.18
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 5.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.99e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384945/likelihoodResults_553996801_554256001_4FGL_J2235.3-4836_daily_bin1214.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) = 1440.30248599
delta logL = 0.359007431899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1440.29009694
delta logL = 0.371396478719

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9499       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3917       1.0000          .0000       10.000    
     3 'Normalizat'    .77166       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94082       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=   1440.290     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      311 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9490        97.880        .51266E-04   -.62602E-03
   2  Index         4.3927        7.1793        .33154E-02   -.10859E-03
   3  Normalizat    .77171        .47609        .31091E-03   -.15335E-03
   4  Prefactor     .94104        .44440        .26226E-03   -.16640E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.94901
  Index      = 4.39275
  Normalizat = 0.771711
  Prefactor  = 0.941044
 **********
 **   18 **HESSE 
 **********

 FCN=   1440.290     FROM HESSE     STATUS=OK            23 CALLS      334 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9490        13.346        .20506E-05   -1.5311    
   2  Index         4.3927        2.1650        .13262E-03   -.12175    
   3  Normalizat    .77171        .48877        .62182E-04   -1.0113    
   4  Prefactor     .94104        .44331        .52451E-04   -.94721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26918e-10
Minuit parameter uncertainties:
  1  13.3564
  2  2.24027
  3  0.491578
  4  0.445028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384945': 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) = 1440.29009357
delta logL = 0.37139985335

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  3.949e+00  1.336e+01  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  4.393e+00  2.240e+00  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.410e-01  4.450e-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:  7.717e-01  4.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.16
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 4.39 +/- 2.24
Photon Flux (Free Index): 3.37e-07 +/- 2.52e-07
Energy Flux (Free Index): 4.77e-05 +/- 3.63e-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/384945/cmap_HighResolution_553996801_554256001_4FGL_J2235.3-4836_daily_bin1214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-02', comment='SUCCESS', photon_flux='1.80e-07', energy_flux2='4.77e-05', photon_flux_error='1.54e-07', dlogl='3.71e-01', energy_flux='5.16e-05', photon_flux2='3.37e-07', job_status='DONE', time_completed='2021-09-28 16:09:18.512053', photon_index_error2='2.24', photon_index2='4.39', ts='2.18', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='5.13e-07', energy_flux_error2='3.63e-05', EG='0.94', time_epoch_completed='1632870558.51', return_code='0', job_id='384945', GAL2='0.94', EG2='0.77', return_code2='0', energy_flux_error='4.43e-05', photon_flux_error2='2.52e-07', ts2='3.16', photon_index='2.51' WHERE bin_id='1214' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:09:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 384945: <4FGL_J2235.3-4836_daily_bin1214> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1214> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 16:00:25 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:00:27 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:00:27 2021
Terminated at Tue Sep 28 16:09:19 2021
Results reported at Tue Sep 28 16:09:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1214 338.841 -48.6015 553996801 554256001 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 :                                   453.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   531 sec.
    Turnaround time :                            534 sec.

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

