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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1089
RA = 338.841, Dec = -48.6015
tmin = 521596801, tmax = 521856001
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='383764', job_status='RUN', time_executed='2021-09-28 15:56:09.965983', time_epoch_executed='1632869769.97' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1089'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383764

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383764/ft1_4FGL_J2235.3-4836_daily_bin1089.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383764/ft2_4FGL_J2235.3-4836_daily_bin1089.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383764/ft1_4FGL_J2235.3-4836_daily_bin1089.fits outfile=/scratch/kocevski/383764/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1089.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=521596801.0 tmax=521856001.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 4.33
user 4.09
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/383764/ft1_filtered_4FGL_J2235.3-4836_daily_bin1089.fits" evtable="EVENTS" scfile=/scratch/kocevski/383764/ft2_4FGL_J2235.3-4836_daily_bin1089.fits sctable="SC_DATA" outfile=/scratch/kocevski/383764/ltcube_521596801_521856001_4FGL_J2235.3-4836_daily_bin1089.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/383764/ft2_4FGL_J2235.3-4836_daily_bin1089.fits
.....................!
real 11.86
user 11.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383764/ft1_filtered_4FGL_J2235.3-4836_daily_bin1089.fits evtable="EVENTS" scfile=/scratch/kocevski/383764/ft2_4FGL_J2235.3-4836_daily_bin1089.fits sctable="SC_DATA" expcube=/scratch/kocevski/383764/ltcube_521596801_521856001_4FGL_J2235.3-4836_daily_bin1089.fits outfile=/scratch/kocevski/383764/expmap_521596801_521856001_4FGL_J2235.3-4836_daily_bin1089.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/383764/ltcube_521596801_521856001_4FGL_J2235.3-4836_daily_bin1089.fits
.....................!
real 189.95
user 185.30
sys 4.33

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/383764/ft1_filtered_4FGL_J2235.3-4836_daily_bin1089.fits scfile=/scratch/kocevski/383764/ft2_4FGL_J2235.3-4836_daily_bin1089.fits outfile=/scratch/kocevski/383764/cmap_521596801_521856001_4FGL_J2235.3-4836_daily_bin1089.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383764/ft1_filtered_4FGL_J2235.3-4836_daily_bin1089.fits scfile=/scratch/kocevski/383764/ft2_4FGL_J2235.3-4836_daily_bin1089.fits outfile=/scratch/kocevski/383764/cmap_HighResolution_521596801_521856001_4FGL_J2235.3-4836_daily_bin1089.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0386       1.0000         .10000E-03   10000.    
     4 'norm      '    8.4754       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11440E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7667       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   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 '    1.3526       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4153       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.665       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0352       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11759E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.491       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2466       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .22069E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.8020       1.0000         .10000E-03   10000.    
    26 'norm      '    .10519E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.6125       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .66209       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2242       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=   6815.946     FROM MIGRAD    STATUS=CONVERGED    785 CALLS     3910 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0570        .44871E-06** at limit **
   2  Prefactor     .10000E-03    12.362        .10190E-06** at limit **
   3  Prefactor     5.0379        3.6959        .86762E-07   -.74635E-04
   4  norm          8.4752        4.0758        .11272E-06    .45098E-04
   5  Prefactor     .10000E-03    91.113       -.17098E-05** at limit **
   6  Prefactor     5.7620        5.5372        .33825E-06    .80827E-04
   7  Prefactor     .10000E-03    1.6755        .11547E-07** at limit **
   8  Prefactor     .10000E-03    18.902        .62289E-06** at limit **
   9  norm          .10000E-03    3.7164       -.22613E-07** at limit **
  10  Prefactor     1.3527        2.7182        .48302E-06   -.17273E-03
  11  Prefactor     .10000E-03    7.8646        .76202E-07** at limit **
  12  Prefactor     6.4159        4.2455       -.12868E-07   -.75896E-04
  13  Prefactor     13.669        19.314        .33575E-06   -.76011E-05
  14  Prefactor     .10000E-03    16.110       -.33999E-06** at limit **
  15  Prefactor     9.0130        9.9331        .13757E-06    .19335E-04
  16  Prefactor     .10000E-03    309.03       -.18758E-05** at limit **
  17  Prefactor     .10000E-03    1.5436       -.39924E-07** at limit **
  18  Prefactor     15.490        26.442        .12757E-06   -.36380E-05
  19  Prefactor     8.2540        13.719        .33465E-06   -.38611E-04
  20  norm          .10000E-03    5.2276        .63179E-07** at limit **
  21  norm          .10000E-03    2.0778        .47679E-07** at limit **
  22  norm          .10000E-03    2.3480       -.18612E-07** at limit **
  23  Prefactor     .10000E-03    4.9614        .13973E-05** at limit **
  24  Prefactor     .10000E-03    93.745        .25827E-05** at limit **
  25  Prefactor     2.8293        10.545       -.24275E-05   -.14191E-03
  26  norm          .10000E-03    .55434        .17649E-06** at limit **
  27  Prefactor     3.6134        4.4482        .27983E-07   -.19057E-03
  28  Prefactor     .10000E-03    8.9805       -.33582E-06** at limit **
  29  Normalizat    .66188        .16916       -.14008E-05   -.75822E-04
  30  Prefactor     1.2243        .15320        .37995E-06   -.19590E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.03795
  norm       = 8.47521
  Prefactor  = 0.0001
  Prefactor  = 5.76196
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.35274
  Prefactor  = 0.0001
  Prefactor  = 6.41593
  Prefactor  = 13.6687
  Prefactor  = 0.0001
  Prefactor  = 9.01302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.49
  Prefactor  = 8.25398
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 2.82925
  norm       = 0.0001
  Prefactor  = 3.61335
  Prefactor  = 0.0001
  Normalizat = 0.661884
  Prefactor  = 1.22428
 **********
 **   18 **HESSE 
 **********

 FCN=   6815.946     FROM HESSE     STATUS=OK           584 CALLS     4494 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.1945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.0379        3.6917        .12996E-03   -1.5259    
   4  norm          8.4752        4.0759        .11234E-03   -1.5126    
   5  Prefactor     .10000E-03    92.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.7620        5.5409        .16725E-03   -1.5228    
   7  Prefactor     .10000E-03    1.7153        .10429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.7534        .15542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3527        2.6689        .18182E-03   -1.5475    
  11  Prefactor     .10000E-03    7.8657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.4159        4.2468        .13273E-03   -1.5201    
  13  Prefactor     13.669        19.307        .10835E-03   -1.4968    
  14  Prefactor     .10000E-03    16.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.0130        9.9157        .13334E-03   -1.5107    
  16  Prefactor     .10000E-03    311.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.5473        .10015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.490        26.434        .10176E-03   -1.4921    
  19  Prefactor     8.2540        13.614        .13961E-03   -1.5133    
  20  norm          .10000E-03    5.2417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.0794        .11619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.3531        .12355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.525        .31836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    95.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.8293        10.822        .24303E-03   -1.5372    
  26  norm          .10000E-03    1.3621        .11523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.6134        4.4349        .18497E-03   -1.5328    
  28  Prefactor     .10000E-03    8.9792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .66188        .19119        .27857E-03   -1.0542    
  30  Prefactor     1.2243        .17659        .20326E-03   -.85587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76763e-10
Minuit parameter uncertainties:
  1  2.07809e-05
  2  6.86877e-06
  3  3.69185
  4  4.07601
  5  0.000261338
  6  5.54136
  7  2.17361e-06
  8  2.7893e-05
  9  1.09548e-06
  10  2.66913
  11  2.66423e-06
  12  4.247
  13  19.3157
  14  1.33182e-05
  15  9.9175
  16  0.00050436
  17  4.42892e-07
  18  26.4538
  19  13.6189
  20  2.17638e-06
  21  1.27084e-06
  22  1.71548e-08
  23  0.000352865
  24  0.000412864
  25  10.8298
  26  3.19353e-05
  27  4.4353
  28  1.0027e-05
  29  0.191381
  30  0.176678
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  6.416e+00  4.247e+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:  1.224e+00  1.767e-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.619e-01  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.69
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 4.04e-08 +/- 2.67e-08
Energy Flux (Fixed Index): 1.16e-05 +/- 7.66e-06

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) = 6815.87338497
delta logL = 0.0723978021488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6815.8715351
delta logL = 0.0742476752866

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1429       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2680       1.0000          .0000       10.000    
     3 'Normalizat'    .67063       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2187       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=   6815.872     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      259 TOTAL
                     EDM=   .88E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1498        134.72        .37523E-02    .10566E-03
   2  Index         2.2692        5.9470        .24445        .20006E-04
   3  Normalizat    .67063        .88198E-01    .62585E-01    .28409E-04
   4  Prefactor     1.2186        .69811E-01    .34204E-01    .20096E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.14976
  Index      = 2.26921
  Normalizat = 0.67063
  Prefactor  = 1.21862
 **********
 **   18 **HESSE 
 **********

 FCN=   6815.872     FROM HESSE     STATUS=OK            31 CALLS      290 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1498        4.9784        .14354E-03   -1.5173    
   2  Index         2.2692        .60561        .84915E-02   -.57777    
   3  Normalizat    .67063        .18153        .27688E-03   -1.0506    
   4  Prefactor     1.2186        .17477        .20365E-03   -.85760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36592e-10
Minuit parameter uncertainties:
  1  4.97865
  2  0.607743
  3  0.181696
  4  0.174854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383764': 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) = 6815.87153114
delta logL = 0.0742516350392

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  7.150e+00  4.979e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.269e+00  6.077e-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:  1.219e+00  1.749e-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.706e-01  1.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.83
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 2.27 +/- 0.61
Photon Flux (Free Index): 3.45e-08 +/- 2.79e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/383764/cmap_HighResolution_521596801_521856001_4FGL_J2235.3-4836_daily_bin1089.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.04e-08', energy_flux2='1.37e-05', photon_flux_error='2.67e-08', dlogl='7.43e-02', energy_flux='1.16e-05', photon_flux2='3.45e-08', job_status='DONE', time_completed='2021-09-28 16:09:22.953704', photon_index_error2='0.61', photon_index2='2.27', ts='4.69', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='0.66', time_epoch_completed='1632870562.95', return_code='0', job_id='383764', GAL2='1.22', EG2='0.67', return_code2='0', energy_flux_error='7.66e-06', photon_flux_error2='2.79e-08', ts2='4.83', photon_index='2.51' WHERE bin_id='1089' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:09:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 383764: <4FGL_J2235.3-4836_daily_bin1089> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1089> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:55:55 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:55:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 15:55:56 2021
Terminated at Tue Sep 28 16:09:23 2021
Results reported at Tue Sep 28 16:09:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1089 338.841 -48.6015 521596801 521856001 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 :                                   791.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            808 sec.

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

