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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1335
RA = 338.841, Dec = -48.6015
tmin = 585360001, tmax = 585619201
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='386224', job_status='RUN', time_executed='2021-09-28 16:05:35.977570', time_epoch_executed='1632870335.98' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1335'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386224

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386224/ft1_4FGL_J2235.3-4836_daily_bin1335.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386224/ft2_4FGL_J2235.3-4836_daily_bin1335.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386224/ft1_4FGL_J2235.3-4836_daily_bin1335.fits outfile=/scratch/kocevski/386224/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1335.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=585360001.0 tmax=585619201.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.86
user 2.64
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386224/ft1_filtered_4FGL_J2235.3-4836_daily_bin1335.fits evtable="EVENTS" scfile=/scratch/kocevski/386224/ft2_4FGL_J2235.3-4836_daily_bin1335.fits sctable="SC_DATA" expcube=/scratch/kocevski/386224/ltcube_585360001_585619201_4FGL_J2235.3-4836_daily_bin1335.fits outfile=/scratch/kocevski/386224/expmap_585360001_585619201_4FGL_J2235.3-4836_daily_bin1335.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/386224/ltcube_585360001_585619201_4FGL_J2235.3-4836_daily_bin1335.fits
.....................!
real 190.97
user 184.84
sys 5.72

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/386224/ft1_filtered_4FGL_J2235.3-4836_daily_bin1335.fits scfile=/scratch/kocevski/386224/ft2_4FGL_J2235.3-4836_daily_bin1335.fits outfile=/scratch/kocevski/386224/cmap_585360001_585619201_4FGL_J2235.3-4836_daily_bin1335.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386224/ft1_filtered_4FGL_J2235.3-4836_daily_bin1335.fits scfile=/scratch/kocevski/386224/ft2_4FGL_J2235.3-4836_daily_bin1335.fits outfile=/scratch/kocevski/386224/cmap_HighResolution_585360001_585619201_4FGL_J2235.3-4836_daily_bin1335.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.58
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386224/ft1_filtered_4FGL_J2235.3-4836_daily_bin1335.fits evtable="EVENTS" scfile=/scratch/kocevski/386224/ft2_4FGL_J2235.3-4836_daily_bin1335.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386224/Model_4FGL_J2235.3-4836_daily_bin1335.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/386224/ft1_filtered_4FGL_J2235.3-4836_daily_bin1335.fits.....................!
real 33.69
user 32.36
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7947       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.883       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7342       1.0000         .10000E-03   10000.    
     4 'norm      '    13.525       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.621       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3180       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .70069E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.7388       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    44.660       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4708       1.0000         .10000E-03   10000.    
    13 'Prefactor '    54.996       1.0000         .10000E-03   10000.    
    14 'Prefactor '    128.23       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30879E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.9139       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 '    .58351E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .78884       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.3044       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .93274       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3659       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=   3828.619     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     3940 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7966        37.558       -.33312E-06   -.81274E-05
   2  Prefactor     32.856        69.441        .20564E-05    .10537E-03
   3  Prefactor     3.7352        12.352       -.42343E-06   -.53524E-04
   4  norm          13.525        11.955        .47651E-07    .24663E-04
   5  Prefactor     29.642        64.232       -.15954E-05   -.11546E-03
   6  Prefactor     7.2691        23.549        .41295E-06   -.63896E-04
   7  Prefactor     .10000E-03    5.7120        .15436E-07** at limit **
   8  Prefactor     .10010E-03    259.35        .10134E-04** at limit **
   9  norm          1.7394        8.0539       -.98651E-06   -.11581E-03
  10  Prefactor     .10000E-03    6.5783       -.65530E-06** at limit **
  11  Prefactor     44.661        47.051        .12028E-07    .19797E-04
  12  Prefactor     5.4728        14.357       -.56074E-06   -.63379E-04
  13  Prefactor     54.997        42.858       -.20516E-06    .24656E-04
  14  Prefactor     128.19        66.030        .14859E-06    .25539E-04
  15  Prefactor     .10000E-03    16.419        .50237E-06** at limit **
  16  Prefactor     .10006E-03    484.31        .91660E-05** at limit **
  17  Prefactor     .10000E-03    4.5219       -.14690E-06** at limit **
  18  Prefactor     .10000E-03    74.579       -.12569E-05** at limit **
  19  Prefactor     .10000E-03    24.079        .13014E-05** at limit **
  20  norm          9.9168        19.568        .30110E-06    .18929E-04
  21  norm          .10000E-03    5.2340        .10696E-06** at limit **
  22  norm          .10000E-03    2.4950       -.43436E-07** at limit **
  23  Prefactor     .10003E-03    62.084        .24530E-04** at limit **
  24  Prefactor     .10000E-03    26.455       -.59873E-06** at limit **
  25  Prefactor     .10000E-03    15.621        .14606E-07** at limit **
  26  norm          .79044        1.4583        .30588E-07   -.50048E-03
  27  Prefactor     6.3045        5.8579       -.75613E-06   -.41896E-04
  28  Prefactor     .10000E-03    11.096        .35527E-06** at limit **
  29  Normalizat    .93270        .27766        .48615E-05    .93203E-04
  30  Prefactor     1.3659        .25172       -.30405E-05   -.34778E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.79657
  Prefactor  = 32.8558
  Prefactor  = 3.73517
  norm       = 13.5248
  Prefactor  = 29.6424
  Prefactor  = 7.26914
  Prefactor  = 0.000100001
  Prefactor  = 0.0001001
  norm       = 1.7394
  Prefactor  = 0.0001
  Prefactor  = 44.6611
  Prefactor  = 5.47284
  Prefactor  = 54.9974
  Prefactor  = 128.188
  Prefactor  = 0.000100001
  Prefactor  = 0.00010006
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  norm       = 9.9168
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.790443
  Prefactor  = 6.30451
  Prefactor  = 0.0001
  Normalizat = 0.932697
  Prefactor  = 1.36591
 **********
 **   18 **HESSE 
 **********

 FCN=   3828.619     FROM HESSE     STATUS=OK           582 CALLS     4522 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7966        37.427        .16684E-03   -1.5226    
   2  Prefactor     32.856        69.649        .69878E-04   -1.4561    
   3  Prefactor     3.7352        12.304        .20895E-03   -1.5321    
   4  norm          13.525        11.954        .10891E-03   -1.4972    
   5  Prefactor     29.642        64.139        .73615E-04   -1.4619    
   6  Prefactor     7.2691        23.320        .14827E-03   -1.5169    
   7  Prefactor     .10000E-03    5.7457        .14384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10010E-03    263.71        .20979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7394        8.0330        .31819E-03   -1.5444    
  10  Prefactor     .10000E-03    6.7849        .31012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     44.661        47.050        .59993E-04   -1.4370    
  12  Prefactor     5.4728        14.262        .17179E-03   -1.5240    
  13  Prefactor     54.997        42.897        .54089E-04   -1.4223    
  14  Prefactor     128.19        65.741        .17777E-03   -1.3439    
  15  Prefactor     .10000E-03    16.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10006E-03    492.21        .21378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5303        .12852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    74.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.9168        19.545        .12727E-03   -1.5078    
  21  norm          .10000E-03    5.2556        .13815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.4954        .95458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10003E-03    63.325        .27801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    26.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .79044        1.2605        .88496E-03   -1.5530    
  27  Prefactor     6.3045        5.8704        .68760E-03   -1.5206    
  28  Prefactor     .10000E-03    11.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .93270        .32973        .30550E-03   -.95321    
  30  Prefactor     1.3659        .30191        .24733E-03   -.81368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28614e-09
Minuit parameter uncertainties:
  1  29.4849
  2  69.8223
  3  12.3124
  4  11.9559
  5  64.2884
  6  23.3488
  7  0.000139765
  8  0.0103337
  9  7.47745
  10  6.72419e-05
  11  47.0892
  12  14.2712
  13  42.9211
  14  65.778
  15  0.000223892
  16  0.0109551
  17  1.4673e-05
  18  0.000930137
  19  0.000397296
  20  19.5579
  21  2.73354e-06
  22  4.4583e-06
  23  0.0026081
  24  0.00020626
  25  4.23476e-05
  26  1.26059
  27  5.87095
  28  9.32056e-05
  29  0.330445
  30  0.302301
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  5.473e+00  1.427e+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:  1.366e+00  3.023e-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.327e-01  3.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/386224/likelihoodResults_585360001_585619201_4FGL_J2235.3-4836_daily_bin1335.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) = 3826.75827675
delta logL = 1.86051548603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3826.74487347
delta logL = 1.87391876162

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8788       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6056       1.0000          .0000       10.000    
     3 'Normalizat'    .73983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4773       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=   3826.745     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      256 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8645        21.201        .75935E-03    .20848E-02
   2  Index         4.6107        3.5838        .95366E-01    .33372E-03
   3  Normalizat    .73991        .11230        .76200E-01   -.36434E-05
   4  Prefactor     1.4771        .10648        .54001E-01   -.22730E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.86449
  Index      = 4.61073
  Normalizat = 0.739911
  Prefactor  = 1.47707
 **********
 **   18 **HESSE 
 **********

 FCN=   3826.745     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      287 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8645        28.343        .30374E-04   -1.5435    
   2  Index         4.6107        4.1749        .39225E-02   -.77932E-01
   3  Normalizat    .73991        .31630        .33731E-03   -1.0234    
   4  Prefactor     1.4771        .29517        .23874E-03   -.78184    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.67955e-09
Minuit parameter uncertainties:
  1  14.5467
  2  4.94866
  3  0.317089
  4  0.295513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386224': 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) = 3826.74486502
delta logL = 1.87392721044

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.864e+00  1.455e+01  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  4.611e+00  4.949e+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:  1.477e+00  2.955e-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.399e-01  3.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.39
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 4.61 +/- 4.95
Photon Flux (Free Index): 2.22e-07 +/- 1.36e-07
Energy Flux (Free Index): 3.07e-05 +/- 2.80e-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/386224/cmap_HighResolution_585360001_585619201_4FGL_J2235.3-4836_daily_bin1335.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-02', comment='SUCCESS', energy_flux2='3.07e-05', dlogl='1.87e+00', photon_flux2='2.22e-07', job_status='DONE', time_completed='2021-09-28 16:16:15.905901', photon_index_error2='4.95', photon_index2='4.61', ts='0.20', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', photon_flux_upper_limit='2.14e-07', energy_flux_error2='2.80e-05', EG='0.93', time_epoch_completed='1632870975.91', return_code='0', job_id='386224', GAL2='1.48', EG2='0.74', return_code2='102', photon_flux_error2='1.36e-07', ts2='4.39', photon_index='2.51' WHERE bin_id='1335' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:16:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 386224: <4FGL_J2235.3-4836_daily_bin1335> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1335 338.841 -48.6015 585360001 585619201 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 :                                   638.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            660 sec.

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

