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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1627
RA = 338.841, Dec = -48.6015
tmin = 661046401, tmax = 661305601
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='250993', job_status='RUN', time_executed='2021-12-16 00:37:30.223086', time_epoch_executed='1639643850.22' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250993

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250993/ft1_4FGL_J2235.3-4836_daily_bin1627.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250993/ft2_4FGL_J2235.3-4836_daily_bin1627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250993/ft1_4FGL_J2235.3-4836_daily_bin1627.fits outfile=/scratch/kocevski/250993/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1627.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=661046401.0 tmax=661305601.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.59
user 3.34
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250993/ft1_filtered_4FGL_J2235.3-4836_daily_bin1627.fits" evtable="EVENTS" scfile=/scratch/kocevski/250993/ft2_4FGL_J2235.3-4836_daily_bin1627.fits sctable="SC_DATA" outfile=/scratch/kocevski/250993/ltcube_661046401_661305601_4FGL_J2235.3-4836_daily_bin1627.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/250993/ft2_4FGL_J2235.3-4836_daily_bin1627.fits
.....................!
real 12.52
user 12.15
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250993/ft1_filtered_4FGL_J2235.3-4836_daily_bin1627.fits evtable="EVENTS" scfile=/scratch/kocevski/250993/ft2_4FGL_J2235.3-4836_daily_bin1627.fits sctable="SC_DATA" expcube=/scratch/kocevski/250993/ltcube_661046401_661305601_4FGL_J2235.3-4836_daily_bin1627.fits outfile=/scratch/kocevski/250993/expmap_661046401_661305601_4FGL_J2235.3-4836_daily_bin1627.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/250993/ltcube_661046401_661305601_4FGL_J2235.3-4836_daily_bin1627.fits
.....................!
real 193.01
user 186.97
sys 5.71

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/250993/ft1_filtered_4FGL_J2235.3-4836_daily_bin1627.fits scfile=/scratch/kocevski/250993/ft2_4FGL_J2235.3-4836_daily_bin1627.fits outfile=/scratch/kocevski/250993/cmap_661046401_661305601_4FGL_J2235.3-4836_daily_bin1627.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250993/ft1_filtered_4FGL_J2235.3-4836_daily_bin1627.fits scfile=/scratch/kocevski/250993/ft2_4FGL_J2235.3-4836_daily_bin1627.fits outfile=/scratch/kocevski/250993/cmap_HighResolution_661046401_661305601_4FGL_J2235.3-4836_daily_bin1627.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43888E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.803       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1808       1.0000         .10000E-03   10000.    
     4 'norm      '    8.6797       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.4981       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2900       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.542       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.100       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.658       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.072       1.0000         .10000E-03   10000.    
    20 'norm      '    .70541       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.3208       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.589       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .42881       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .15813E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    29.536       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0337       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .80838       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=   5474.845     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     3933 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10045E-03    12.139       -.40310E-05** at limit **
   2  Prefactor     25.800        31.512       -.88193E-06   -.17515E-04
   3  Prefactor     3.1812        3.6103        .11303E-06    .30528E-03
   4  norm          8.6799        6.1425        .10538E-06    .31931E-03
   5  Prefactor     .10000E-03    8.0620        .17123E-06** at limit **
   6  Prefactor     .10000E-03    4.5607       -.35386E-07** at limit **
   7  Prefactor     .10000E-03    1.8566       -.12346E-07** at limit **
   8  Prefactor     .10000E-03    154.08       -.33023E-05** at limit **
   9  norm          9.4984        6.9088        .41174E-07    .25970E-04
  10  Prefactor     .10000E-03    1.9782       -.38888E-07** at limit **
  11  Prefactor     .10000E-03    45.878        .20151E-05** at limit **
  12  Prefactor     2.2885        5.0762        .28328E-06    .27627E-04
  13  Prefactor     11.535        24.504        .23172E-05    .10718E-03
  14  Prefactor     19.101        20.427       -.17198E-06   -.33919E-04
  15  Prefactor     .10000E-03    10.987       -.38297E-07** at limit **
  16  Prefactor     .10000E-03    26.097        .15789E-05** at limit **
  17  Prefactor     .10000E-03    4.7134       -.22220E-07** at limit **
  18  Prefactor     48.650        42.282       -.56355E-05   -.30433E-03
  19  Prefactor     11.074        11.273        .19168E-07   -.37815E-04
  20  norm          .70487        .41179       -.19940E-07   -.86273E-04
  21  norm          .10000E-03    1.9373       -.14118E-07** at limit **
  22  norm          4.3205        4.8995       -.96210E-07    .29042E-05
  23  Prefactor     .10000E-03    1.4977        .56890E-08** at limit **
  24  Prefactor     28.592        33.679        .10956E-05    .61156E-04
  25  Prefactor     .10000E-03    3.9365       -.34439E-08** at limit **
  26  norm          .42817        .92274        .90885E-07    .18932E-03
  27  Prefactor     .10000E-03    3.9136        .37298E-06** at limit **
  28  Prefactor     29.558        26.670       -.24732E-05   -.26285E-03
  29  Normalizat    1.0340        .18145        .42299E-06    .22797E-03
  30  Prefactor     .80822        .16175        .15120E-06    .24714E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100445
  Prefactor  = 25.8
  Prefactor  = 3.18117
  norm       = 8.67992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 9.49842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.28845
  Prefactor  = 11.5355
  Prefactor  = 19.1012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.65
  Prefactor  = 11.0741
  norm       = 0.70487
  norm       = 0.0001
  norm       = 4.32047
  Prefactor  = 0.0001
  Prefactor  = 28.5923
  Prefactor  = 0.0001
  norm       = 0.428166
  Prefactor  = 0.000100001
  Prefactor  = 29.5576
  Normalizat = 1.034
  Prefactor  = 0.808217
 **********
 **   18 **HESSE 
 **********

 FCN=   5474.845     FROM HESSE     STATUS=OK           586 CALLS     4519 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10045E-03    42.272        .40051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.800        31.494        .78862E-04   -1.4692    
   3  Prefactor     3.1812        3.5976        .14357E-03   -1.5351    
   4  norm          8.6799        6.1397        .68029E-03   -1.5119    
   5  Prefactor     .10000E-03    8.0644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6156        .15426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.8847        .98392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    154.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.4984        6.9099        .13003E-03   -1.5091    
  10  Prefactor     .10000E-03    2.0310        .20313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    45.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2885        5.0531        .23054E-03   -1.5405    
  13  Prefactor     11.535        24.595        .11792E-03   -1.5029    
  14  Prefactor     19.101        20.400        .91645E-04   -1.4834    
  15  Prefactor     .10000E-03    11.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.7964        .15684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     48.650        42.625        .57486E-04   -1.4312    
  19  Prefactor     11.074        11.187        .12040E-03   -1.5042    
  20  norm          .70487        11.938        .24165E-02   -1.5540    
  21  norm          .10000E-03    1.9393        .10058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.3205        4.8963        .16522E-03   -1.5292    
  23  Prefactor     .10000E-03    1.5000        .88421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     28.592        33.734        .74929E-04   -1.4638    
  25  Prefactor     .10000E-03    3.9438        .14336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .42817        .79392        .95235E-03   -1.5577    
  27  Prefactor     .10000E-03    7.5402        .27056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     29.558        26.184        .73721E-04   -1.4620    
  29  Normalizat    1.0340        .21318        .22626E-03   -.91900    
  30  Prefactor     .80822        .19110        .23524E-03   -.99426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71274e-08
Minuit parameter uncertainties:
  1  0.00868235
  2  31.5145
  3  3.59781
  4  6.14017
  5  9.9949e-06
  6  1.97733e-06
  7  8.34269e-07
  8  0.000837805
  9  6.91045
  10  3.75475e-06
  11  0.000222349
  12  5.05402
  13  24.6165
  14  20.4078
  15  8.27993e-06
  16  0.000166871
  17  7.6269e-06
  18  42.6521
  19  11.1889
  20  5.80249
  21  3.93427e-07
  22  4.89678
  23  3.77628e-07
  24  33.7561
  25  4.39937e-07
  26  0.793944
  27  0.000131942
  28  26.1938
  29  0.213361
  30  0.191255
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  2.288e+00  5.054e+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:  8.082e-01  1.913e-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.034e+00  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/250993/likelihoodResults_661046401_661305601_4FGL_J2235.3-4836_daily_bin1627.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): 102
logL (Free Index) = 5472.96071214
delta logL = 1.88477790403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5472.80647
delta logL = 2.03902004175

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22499E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    8.1328       1.0000          .0000       10.000    
     3 'Normalizat'    .93649       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87292       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=   5472.806     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      343 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22290E-02    .24299E-01    .53411E-03** at limit **
   2  Index         8.1386        3.0490        .14791       -.88676E-04
   3  Normalizat    .93663        .51364E-01    .45366E-01   -.14004E-03
   4  Prefactor     .87284        .48093E-01    .44659E-01    .45274E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00222902
  Index      = 8.13864
  Normalizat = 0.936629
  Prefactor  = 0.872844
 **********
 **   18 **HESSE 
 **********

 FCN=   5472.806     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      378 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22290E-02    .46085E-01    .21700E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.1386        8.0845        .62640E-02    .67863    
   3  Normalizat    .93663        .16514        .23589E-03   -.95185    
   4  Prefactor     .87284        .15219        .22726E-03   -.97097    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.32839e-10
Minuit parameter uncertainties:
  1  0.0198108
  2  5.17555
  3  0.165233
  4  0.152259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250993': 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): 102
logL (Free Index) = 5472.80646831
delta logL = 2.03902173254

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  2.229e-03  1.981e-02  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  8.139e+00  5.176e+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:  8.728e-01  1.523e-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.366e-01  1.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.60
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 8.14 +/- 5.18
Photon Flux (Free Index): 8.19e-08 +/- 5.09e-08
Energy Flux (Free Index): 9.48e-06 +/- 6.37e-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/250993/cmap_HighResolution_661046401_661305601_4FGL_J2235.3-4836_daily_bin1627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.14e-03', comment='SUCCESS', energy_flux2='9.48e-06', dlogl='2.04e+00', photon_flux2='8.19e-08', job_status='DONE', time_completed='2021-12-16 00:50:46.712896', photon_index_error2='5.18', photon_index2='8.14', ts='0.27', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='9.17e-08', energy_flux_error2='6.37e-06', EG='1.03', time_epoch_completed='1639644646.71', return_code='0', job_id='250993', GAL2='0.87', EG2='0.94', return_code2='102', photon_flux_error2='5.09e-08', ts2='4.60', photon_index='2.51' WHERE bin_id='1627' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 16 00:50:46 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 250993: <4FGL_J2235.3-4836_daily_bin1627> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1627> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Dec 16 00:35:45 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 16 00:35:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 16 00:35:48 2021
Terminated at Thu Dec 16 00:50:50 2021
Results reported at Thu Dec 16 00:50:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1627 338.841 -48.6015 661046401 661305601 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 :                                   798.57 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            905 sec.

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

