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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1227
RA = 338.841, Dec = -48.6015
tmin = 557366401, tmax = 557625601
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='384963', job_status='RUN', time_executed='2021-09-28 16:01:28.604711', time_epoch_executed='1632870088.6' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1227'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384963

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384963/ft1_4FGL_J2235.3-4836_daily_bin1227.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384963/ft2_4FGL_J2235.3-4836_daily_bin1227.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384963/ft1_4FGL_J2235.3-4836_daily_bin1227.fits outfile=/scratch/kocevski/384963/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1227.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=557366401.0 tmax=557625601.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.69
user 3.47
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384963/ft1_filtered_4FGL_J2235.3-4836_daily_bin1227.fits" evtable="EVENTS" scfile=/scratch/kocevski/384963/ft2_4FGL_J2235.3-4836_daily_bin1227.fits sctable="SC_DATA" outfile=/scratch/kocevski/384963/ltcube_557366401_557625601_4FGL_J2235.3-4836_daily_bin1227.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/384963/ft2_4FGL_J2235.3-4836_daily_bin1227.fits
.....................!
real 11.97
user 11.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384963/ft1_filtered_4FGL_J2235.3-4836_daily_bin1227.fits evtable="EVENTS" scfile=/scratch/kocevski/384963/ft2_4FGL_J2235.3-4836_daily_bin1227.fits sctable="SC_DATA" expcube=/scratch/kocevski/384963/ltcube_557366401_557625601_4FGL_J2235.3-4836_daily_bin1227.fits outfile=/scratch/kocevski/384963/expmap_557366401_557625601_4FGL_J2235.3-4836_daily_bin1227.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/384963/ltcube_557366401_557625601_4FGL_J2235.3-4836_daily_bin1227.fits
.....................!
real 190.93
user 185.40
sys 5.17

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/384963/ft1_filtered_4FGL_J2235.3-4836_daily_bin1227.fits scfile=/scratch/kocevski/384963/ft2_4FGL_J2235.3-4836_daily_bin1227.fits outfile=/scratch/kocevski/384963/cmap_557366401_557625601_4FGL_J2235.3-4836_daily_bin1227.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384963/ft1_filtered_4FGL_J2235.3-4836_daily_bin1227.fits scfile=/scratch/kocevski/384963/ft2_4FGL_J2235.3-4836_daily_bin1227.fits outfile=/scratch/kocevski/384963/cmap_HighResolution_557366401_557625601_4FGL_J2235.3-4836_daily_bin1227.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/384963/ft1_filtered_4FGL_J2235.3-4836_daily_bin1227.fits evtable="EVENTS" scfile=/scratch/kocevski/384963/ft2_4FGL_J2235.3-4836_daily_bin1227.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384963/Model_4FGL_J2235.3-4836_daily_bin1227.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/384963/ft1_filtered_4FGL_J2235.3-4836_daily_bin1227.fits.....................!
real 14.87
user 13.62
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .97475E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    34.248       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14910E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12572E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    161.41       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     9 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.617       1.0000         .10000E-03   10000.    
    12 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.848       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11898E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11315E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19750E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    169.17       1.0000         .10000E-03   10000.    
    21 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10734E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .19380E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.2794       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .31199       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=   229.6317     FROM MIGRAD    STATUS=CONVERGED   1380 CALLS     5341 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.350        .56141E-03** at limit **
   2  Prefactor     .10000E-03    391.51        .20779E-02** at limit **
   3  Prefactor     .10000E-03    12.291        .51830E-03** at limit **
   4  norm          34.255        35.509        .68476E-04    .65217E-05
   5  Prefactor     .10000E-03    679.39        .18142E-02** at limit **
   6  Prefactor     .10001E-03    248.42        .18142E-02** at limit **
   7  Prefactor     160.88        237.21        .15871E-03    .33074E-04
   8  Prefactor     .10016E-03    7401.3        .18142E-02** at limit **
   9  norm         10000.0        1729.4        .18478E-02** at limit **
  10  Prefactor    10000.0        6521.3        .18176E-02** at limit **
  11  Prefactor    10000.0        5107.1        .61482E-02** at limit **
  12  Prefactor    10000.0        928.59        .20195E-02** at limit **
  13  Prefactor    10000.0        5109.4        .48788E-02** at limit **
  14  Prefactor     .10228E-03    6249.8        .18142E-02** at limit **
  15  Prefactor     .10000E-03    1210.6        .18142E-02** at limit **
  16  Prefactor     .10007E-03    1943.6        .18142E-02** at limit **
  17  Prefactor    10000.0        7139.2        .18178E-02** at limit **
  18  Prefactor     .10001E-03    1520.0        .18142E-02** at limit **
  19  Prefactor     .10000E-03    88.285        .13945E-02** at limit **
  20  norm          168.94        220.59        .15509E-03    .41509E-05
  21  norm          .10000E-03    26.261        .75960E-03** at limit **
  22  norm          .10000E-03    56.588        .11158E-02** at limit **
  23  Prefactor     .10000E-03    34.815        .87888E-03** at limit **
  24  Prefactor     .10002E-03    288.49        .18142E-02** at limit **
  25  Prefactor     .10000E-03    51.792        .10733E-02** at limit **
  26  norm          4.2443        5.2588        .36718E-04    .30676E-03
  27  Prefactor     .10000E-03    7.7057        .41168E-03** at limit **
  28  Prefactor     .10000E-03    42.794        .97177E-03** at limit **
  29  Normalizat    .10000E-01    .18959        .40440E-03** at limit **
  30  Prefactor     .31137        .23604        .19459E-03    .11042E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 34.2546
  Prefactor  = 0.000100001
  Prefactor  = 0.000100013
  Prefactor  = 160.883
  Prefactor  = 0.00010016
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.000102276
  Prefactor  = 0.0001
  Prefactor  = 0.000100067
  Prefactor  = 10000
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 168.936
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  norm       = 4.24425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.311365
 **********
 **   18 **HESSE 
 **********

 FCN=   229.6317     FROM HESSE     STATUS=OK           558 CALLS     5899 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.350        .11228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    391.61        .41558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.292        .10366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          34.255        35.509        .27390E-05   -1.4537    
   5  Prefactor     .10000E-03    679.39        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    248.42        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     160.88        237.21        .31742E-04   -1.3164    
   8  Prefactor     .10016E-03    7401.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm         10000.0        1724.6        .36957E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        6514.7        .36352E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        5107.1        .12296E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        928.57        .40389E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        5113.9        .97577E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10228E-03    6249.8        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1210.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10007E-03    1943.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        7137.9        .36355E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    1520.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    88.285        .27890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          168.94        220.59        .31017E-04   -1.3101    
  21  norm          .10000E-03    26.261        .15192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    56.588        .22315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    34.815        .17578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10002E-03    288.49        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    51.793        .21466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.2443        5.2588        .73436E-05   -1.5296    
  27  Prefactor     .10000E-03    7.7057        .82337E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    42.794        .19435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .18959        .80880E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .31137        .23601        .38918E-04   -1.2160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54896e-09
Minuit parameter uncertainties:
  1  7.99795e-08
  2  0.00254337
  3  1.70362e-05
  4  35.5306
  5  0.00179917
  6  0.00359643
  7  238.643
  8  0.0613468
  9  0.0875215
  10  0.152811
  11  0.0114931
  12  0.0052642
  13  1.35228
  14  0.157959
  15  0.000648239
  16  0.0236776
  17  0.0710721
  18  0.00922716
  19  0.000145092
  20  221.681
  21  1.19694e-05
  22  0.000138977
  23  4.68651e-05
  24  0.00433735
  25  1.88194e-05
  26  5.25938
  27  1.22104e-05
  28  1.43893e-05
  29  2.19757e-07
  30  0.236746
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e+04  5.264e-03  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:  3.114e-01  2.367e-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.000e-02  2.198e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.62
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 6.29e-05 +/- 3.31e-11
Energy Flux (Fixed Index): 1.80e-02 +/- 9.50e-09

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) = 147.365560561
delta logL = 82.2661124146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 147.353652946
delta logL = 82.2780200292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Index     '    10.000       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .10655       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=   147.3536     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      179 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        364.60        .90733E-02** at limit **
   2  Index        10.0000        .38815E-01    .32078E-01** at limit **
   3  Normalizat    .10000E-01    .96889E-01    .52984E-01** at limit **
   4  Prefactor     .10664        .14472        .33813E-01   -.36569E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Index      = 10
  Normalizat = 0.01
  Prefactor  = 0.106643
 **********
 **   18 **HESSE 
 **********

 FCN=   147.3536     FROM HESSE     STATUS=OK            23 CALLS      202 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        364.60        .18147E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .38812E-01    .74028E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .96993E-01    .11688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10664        .14407        .16751E-03   -1.3639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0983e-09
Minuit parameter uncertainties:
  1  0.00460198
  2  6.95944e-07
  3  6.00234e-06
  4  0.144549
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384963': 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) = 147.353638373
delta logL = 82.2780346023

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e+04  4.602e-03  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  1.000e+01  6.959e-07  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.066e-01  1.445e-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.000e-02  6.002e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 181.46
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 8.63e+00 +/- 1.06e-05
Energy Flux (Free Index): 9.64e+02 +/- 1.19e-03

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/384963/cmap_HighResolution_557366401_557625601_4FGL_J2235.3-4836_daily_bin1227.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.29e-05', energy_flux2='9.64e+02', photon_flux_error='3.31e-11', dlogl='8.23e+01', energy_flux='1.80e-02', photon_flux2='8.63e+00', job_status='DONE', time_completed='2021-09-28 16:07:18.191119', photon_index_error2='0.00', photon_index2='10.00', ts='14.62', fit_tolerance='1e-08', GAL='0.31', photon_index_error='0.00', energy_flux_error2='1.19e-03', EG='0.01', time_epoch_completed='1632870438.19', return_code='0', job_id='384963', GAL2='0.11', EG2='0.01', return_code2='0', energy_flux_error='9.50e-09', photon_flux_error2='1.06e-05', ts2='181.46', photon_index='2.51' WHERE bin_id='1227' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:07:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 384963: <4FGL_J2235.3-4836_daily_bin1227> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1227> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 16:00:27 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:00:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:00:28 2021
Terminated at Tue Sep 28 16:07:18 2021
Results reported at Tue Sep 28 16:07:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1227 338.841 -48.6015 557366401 557625601 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 :                                   348.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   410 sec.
    Turnaround time :                            411 sec.

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

