/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 81 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_bin1398
RA = 338.841, Dec = -48.6015
tmin = 601689601, tmax = 601948801
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='386331', job_status='RUN', time_executed='2021-09-28 16:06:58.624983', time_epoch_executed='1632870418.63' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386331

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386331/ft1_4FGL_J2235.3-4836_daily_bin1398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386331/ft2_4FGL_J2235.3-4836_daily_bin1398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386331/ft1_4FGL_J2235.3-4836_daily_bin1398.fits outfile=/scratch/kocevski/386331/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1398.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=601689601.0 tmax=601948801.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.50
user 3.33
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386331/ft2_4FGL_J2235.3-4836_daily_bin1398.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/386331/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1398.fits evtable="EVENTS" outfile="/scratch/kocevski/386331/ft1_filtered_4FGL_J2235.3-4836_daily_bin1398.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.48
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386331/ft1_filtered_4FGL_J2235.3-4836_daily_bin1398.fits" evtable="EVENTS" scfile=/scratch/kocevski/386331/ft2_4FGL_J2235.3-4836_daily_bin1398.fits sctable="SC_DATA" outfile=/scratch/kocevski/386331/ltcube_601689601_601948801_4FGL_J2235.3-4836_daily_bin1398.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/386331/ft2_4FGL_J2235.3-4836_daily_bin1398.fits
.....................!
real 11.66
user 11.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386331/ft1_filtered_4FGL_J2235.3-4836_daily_bin1398.fits evtable="EVENTS" scfile=/scratch/kocevski/386331/ft2_4FGL_J2235.3-4836_daily_bin1398.fits sctable="SC_DATA" expcube=/scratch/kocevski/386331/ltcube_601689601_601948801_4FGL_J2235.3-4836_daily_bin1398.fits outfile=/scratch/kocevski/386331/expmap_601689601_601948801_4FGL_J2235.3-4836_daily_bin1398.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/386331/ltcube_601689601_601948801_4FGL_J2235.3-4836_daily_bin1398.fits
.....................!
real 189.68
user 184.94
sys 4.26

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/386331/ft1_filtered_4FGL_J2235.3-4836_daily_bin1398.fits scfile=/scratch/kocevski/386331/ft2_4FGL_J2235.3-4836_daily_bin1398.fits outfile=/scratch/kocevski/386331/cmap_601689601_601948801_4FGL_J2235.3-4836_daily_bin1398.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386331/ft1_filtered_4FGL_J2235.3-4836_daily_bin1398.fits scfile=/scratch/kocevski/386331/ft2_4FGL_J2235.3-4836_daily_bin1398.fits outfile=/scratch/kocevski/386331/cmap_HighResolution_601689601_601948801_4FGL_J2235.3-4836_daily_bin1398.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.841 yref=-48.6015 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386331/ft1_filtered_4FGL_J2235.3-4836_daily_bin1398.fits evtable="EVENTS" scfile=/scratch/kocevski/386331/ft2_4FGL_J2235.3-4836_daily_bin1398.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386331/Model_4FGL_J2235.3-4836_daily_bin1398.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/386331/ft1_filtered_4FGL_J2235.3-4836_daily_bin1398.fits.....................!
real 46.83
user 45.55
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37724E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13116E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    23.279       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.137       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10927E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.964       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.487       1.0000         .10000E-03   10000.    
     9 'norm      '    3.7056       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4003       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6775       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.629       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.633       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1907       1.0000         .10000E-03   10000.    
    20 'norm      '    3.4952       1.0000         .10000E-03   10000.    
    21 'norm      '    2.2032       1.0000         .10000E-03   10000.    
    22 'norm      '    4.2819       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2851       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .62224E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .42781       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2153       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .86235       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=   6226.839     FROM MIGRAD    STATUS=CONVERGED    810 CALLS     4000 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10093E-03    27.072       -.10436E-04** at limit **
   2  Prefactor     .10000E-03    98.628        .27487E-06** at limit **
   3  Prefactor     .10000E-03    3.3628        .95903E-07** at limit **
   4  norm          23.281        7.2801       -.68258E-07   -.54439E-04
   5  Prefactor     33.140        45.014       -.60213E-05    .54546E-04
   6  Prefactor     .10000E-03    17.966       -.59363E-05** at limit **
   7  Prefactor     14.965        5.2988       -.36491E-06    .14361E-03
   8  Prefactor     15.441        195.42       -.15396E-04    .37163E-04
   9  norm          3.7057        5.1195       -.20542E-06    .32147E-05
  10  Prefactor     1.4038        4.7135       -.96120E-06    .97237E-04
  11  Prefactor     .10000E-03    24.968       -.20130E-06** at limit **
  12  Prefactor     .10000E-03    1.3605       -.48948E-07** at limit **
  13  Prefactor     .10000E-03    8.3183       -.40020E-07** at limit **
  14  Prefactor     .10000E-03    10.071       -.45582E-06** at limit **
  15  Prefactor     7.6739        11.876       -.22536E-05   -.72662E-04
  16  Prefactor     19.601        125.18        .10448E-04    .44252E-05
  17  Prefactor     .10000E-03    4.0642       -.50666E-07** at limit **
  18  Prefactor     19.619        28.289       -.12289E-05    .26048E-04
  19  Prefactor     6.1916        10.556        .35398E-06    .77615E-04
  20  norm          3.4953        9.2802        .26934E-06    .58031E-04
  21  norm          2.2077        5.2150       -.37812E-05   -.14567E-03
  22  norm          4.2815        4.2549        .58908E-06    .30182E-03
  23  Prefactor     3.2573        10.019        .47470E-05    .39043E-03
  24  Prefactor     .10001E-03    207.57       -.23078E-05** at limit **
  25  Prefactor     .50060        216.41       -.35629E-04    .16018E-04
  26  norm          .10000E-03    .29996       -.26351E-07** at limit **
  27  Prefactor     .10000E-03    1.7947       -.56631E-07** at limit **
  28  Prefactor     .10000E-03    17.160       -.81913E-06** at limit **
  29  Normalizat    1.2154        .19147        .44452E-05    .18037E-03
  30  Prefactor     .86222        .16846       -.21629E-05    .46556E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100935
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 23.281
  Prefactor  = 33.1404
  Prefactor  = 0.000100001
  Prefactor  = 14.9647
  Prefactor  = 15.4406
  norm       = 3.7057
  Prefactor  = 1.40377
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.67395
  Prefactor  = 19.6011
  Prefactor  = 0.0001
  Prefactor  = 19.6186
  Prefactor  = 6.19157
  norm       = 3.4953
  norm       = 2.20771
  norm       = 4.28145
  Prefactor  = 3.2573
  Prefactor  = 0.000100011
  Prefactor  = 0.500599
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.21535
  Prefactor  = 0.862224
 **********
 **   18 **HESSE 
 **********

 FCN=   6226.839     FROM HESSE     STATUS=OK           594 CALLS     4594 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10093E-03    13.547        .69999E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    101.63        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.4791        .28247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          23.281        7.2837        .83020E-04   -1.4743    
   5  Prefactor     33.140        44.905        .69611E-04   -1.4556    
   6  Prefactor     .10000E-03    17.802        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.965        5.2992        .10175E-03   -1.4934    
   8  Prefactor     15.441        190.77        .10177E-03   -1.4922    
   9  norm          3.7057        5.1128        .20420E-03   -1.5323    
  10  Prefactor     1.4038        4.7346        .28739E-03   -1.5471    
  11  Prefactor     .10000E-03    24.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.3631        .89868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.3459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.6739        11.847        .72363E-03   -1.5154    
  16  Prefactor     19.601        124.79        .90401E-04   -1.4822    
  17  Prefactor     .10000E-03    4.0902        .15534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.619        28.286        .90392E-04   -1.4822    
  19  Prefactor     6.1916        10.538        .16135E-03   -1.5210    
  20  norm          3.4953        9.2581        .21627E-03   -1.5334    
  21  norm          2.2077        5.2268        .12970E-02   -1.5411    
  22  norm          4.2815        4.2677        .15872E-03   -1.5294    
  23  Prefactor     3.2573        18.151        .11170E-02   -1.5347    
  24  Prefactor     .10001E-03    213.05        .42089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .50060        534.40        .41092E-02   -1.5566    
  26  norm          .10000E-03    .30719        .84237E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.8086        .10323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    17.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2154        .22829        .23384E-03   -.86130    
  30  Prefactor     .86222        .19820        .25417E-03   -.97474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14343e-09
Minuit parameter uncertainties:
  1  0.00711783
  2  0.000455599
  3  3.41683e-05
  4  7.28401
  5  44.9506
  6  0.000252949
  7  5.29938
  8  108.979
  9  5.11335
  10  4.73587
  11  8.92646e-06
  12  3.15887e-07
  13  4.51651e-06
  14  3.69637e-05
  15  11.8503
  16  99.2199
  17  4.88268e-06
  18  28.3054
  19  10.5408
  20  9.26185
  21  5.22786
  22  4.26804
  23  15.3851
  24  0.00301747
  25  33.0082
  26  1.10152e-06
  27  2.48716e-06
  28  2.34068e-05
  29  0.228481
  30  0.198365
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  3.159e-07  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.622e-01  1.984e-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.215e+00  2.285e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/386331/likelihoodResults_601689601_601948801_4FGL_J2235.3-4836_daily_bin1398.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) = 6226.84254713
delta logL = -0.0034030084571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6226.83914408
delta logL = 4.58248905488e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5042       1.0000          .0000       10.000    
     3 'Normalizat'    1.2154       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86224       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=   6226.839     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      250 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.193        .90046E-02** at limit **
   2  Index         2.1604        5.2188        .50000        .11830E-06
   3  Normalizat    1.2154        .19561E-01    .23384E-03    .18037E-04
   4  Prefactor     .86222        .18342E-01    .25417E-03    .30952E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16043
  Normalizat = 1.21536
  Prefactor  = 0.86222
 **********
 **   18 **HESSE 
 **********

 FCN=   6226.839     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    280.92        .92433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1604        8.4799        .50000       -.60397    
   3  Normalizat    1.2154        .96309E-01    .93535E-05   -.86130    
   4  Prefactor     .86222        .90292E-01    .10167E-04   -.97474    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.79165e-09
Minuit parameter uncertainties:
  1  8.69281e-05
  2  1359.05
  3  0.0963232
  4  0.090308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386331': 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) = 6226.83914217
delta logL = 1.95729353436e-06

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  8.693e-05  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.160e+00  1.359e+03  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.622e-01  9.031e-02  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.215e+00  9.632e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.841 -48.602

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/386331/cmap_HighResolution_601689601_601948801_4FGL_J2235.3-4836_daily_bin1398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-03', job_status='DONE', photon_flux_upper_limit='4.59e-08', time_completed='2021-09-28 16:21:36.236505', job_id='386331', GAL2='0.86', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632871296.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.96e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1398' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:21:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 386331: <4FGL_J2235.3-4836_daily_bin1398> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1398 338.841 -48.6015 601689601 601948801 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 :                                   870.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            970 sec.

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

