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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1326
RA = 338.841, Dec = -48.6015
tmin = 583027201, tmax = 583286401
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='386210', job_status='RUN', time_executed='2021-09-28 16:06:12.590201', time_epoch_executed='1632870372.59' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386210

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386210/ft1_4FGL_J2235.3-4836_daily_bin1326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386210/ft2_4FGL_J2235.3-4836_daily_bin1326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386210/ft1_4FGL_J2235.3-4836_daily_bin1326.fits outfile=/scratch/kocevski/386210/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1326.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=583027201.0 tmax=583286401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.59
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386210/ft2_4FGL_J2235.3-4836_daily_bin1326.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/386210/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1326.fits evtable="EVENTS" outfile="/scratch/kocevski/386210/ft1_filtered_4FGL_J2235.3-4836_daily_bin1326.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/386210/ft1_filtered_4FGL_J2235.3-4836_daily_bin1326.fits" evtable="EVENTS" scfile=/scratch/kocevski/386210/ft2_4FGL_J2235.3-4836_daily_bin1326.fits sctable="SC_DATA" outfile=/scratch/kocevski/386210/ltcube_583027201_583286401_4FGL_J2235.3-4836_daily_bin1326.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/386210/ft2_4FGL_J2235.3-4836_daily_bin1326.fits
.....................!
real 14.38
user 13.83
sys 0.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386210/ft1_filtered_4FGL_J2235.3-4836_daily_bin1326.fits evtable="EVENTS" scfile=/scratch/kocevski/386210/ft2_4FGL_J2235.3-4836_daily_bin1326.fits sctable="SC_DATA" expcube=/scratch/kocevski/386210/ltcube_583027201_583286401_4FGL_J2235.3-4836_daily_bin1326.fits outfile=/scratch/kocevski/386210/expmap_583027201_583286401_4FGL_J2235.3-4836_daily_bin1326.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/386210/ltcube_583027201_583286401_4FGL_J2235.3-4836_daily_bin1326.fits
.....................!
real 190.80
user 184.94
sys 5.41

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/386210/ft1_filtered_4FGL_J2235.3-4836_daily_bin1326.fits scfile=/scratch/kocevski/386210/ft2_4FGL_J2235.3-4836_daily_bin1326.fits outfile=/scratch/kocevski/386210/cmap_583027201_583286401_4FGL_J2235.3-4836_daily_bin1326.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386210/ft1_filtered_4FGL_J2235.3-4836_daily_bin1326.fits scfile=/scratch/kocevski/386210/ft2_4FGL_J2235.3-4836_daily_bin1326.fits outfile=/scratch/kocevski/386210/cmap_HighResolution_583027201_583286401_4FGL_J2235.3-4836_daily_bin1326.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386210/ft1_filtered_4FGL_J2235.3-4836_daily_bin1326.fits evtable="EVENTS" scfile=/scratch/kocevski/386210/ft2_4FGL_J2235.3-4836_daily_bin1326.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386210/Model_4FGL_J2235.3-4836_daily_bin1326.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/386210/ft1_filtered_4FGL_J2235.3-4836_daily_bin1326.fits.....................!
real 43.82
user 42.45
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12075E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    82.589       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4504       1.0000         .10000E-03   10000.    
     4 'norm      '    15.663       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4244       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .66798E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.3230       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.713       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8838       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.793       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    67.411       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.8393       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.972       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.863       1.0000         .10000E-03   10000.    
    26 'norm      '    .12436E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1637       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89948       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=   5623.109     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3892 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10019E-03    12.461        .14426E-05** at limit **
   2  Prefactor     82.587        41.671       -.94807E-07   -.29010E-04
   3  Prefactor     9.4530        6.1270        .16115E-07   -.16362E-03
   4  norm          15.665        6.9697        .88430E-08   -.97667E-04
   5  Prefactor     .10000E-03    10.932       -.12851E-07** at limit **
   6  Prefactor     .10000E-03    5.1623       -.14571E-06** at limit **
   7  Prefactor     1.4238        4.1646        .11500E-05    .40568E-04
   8  Prefactor     .10000E-03    241.41       -.26371E-05** at limit **
   9  norm          5.3228        5.2053       -.10448E-06   -.19847E-04
  10  Prefactor     18.711        6.2656       -.49257E-07   -.31016E-04
  11  Prefactor     .10000E-03    93.677        .31642E-06** at limit **
  12  Prefactor     7.8834        5.8010        .11099E-05    .13729E-03
  13  Prefactor     .10000E-03    7.9251        .46660E-07** at limit **
  14  Prefactor     31.790        25.614       -.44820E-06   -.12234E-04
  15  Prefactor     .10000E-03    4.4992       -.29062E-06** at limit **
  16  Prefactor     67.345        71.285       -.34695E-06   -.48793E-04
  17  Prefactor     .10000E-03    2.1074        .25770E-07** at limit **
  18  Prefactor     .10000E-03    17.868       -.94474E-07** at limit **
  19  Prefactor     .10000E-03    21.976       -.58013E-07** at limit **
  20  norm          .10000E-03    6.9528        .20167E-07** at limit **
  21  norm          7.8440        7.4088        .18723E-06    .75219E-04
  22  norm          .10000E-03    2.2502       -.14697E-07** at limit **
  23  Prefactor     .10000E-03    5.8070       -.49442E-06** at limit **
  24  Prefactor     15.968        38.736        .13318E-06   -.14401E-05
  25  Prefactor     10.876        16.719        .37420E-06    .51847E-04
  26  norm          .10000E-03    .78404       -.88539E-07** at limit **
  27  Prefactor     .10000E-03    1.7887        .85150E-08** at limit **
  28  Prefactor     .10000E-03    13.713        .10635E-07** at limit **
  29  Normalizat    1.1639        .21072        .46853E-06   -.11314E-03
  30  Prefactor     .89959        .18738       -.13692E-05   -.79901E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100193
  Prefactor  = 82.5865
  Prefactor  = 9.45297
  norm       = 15.665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.42377
  Prefactor  = 0.000100002
  norm       = 5.32279
  Prefactor  = 18.7111
  Prefactor  = 0.0001
  Prefactor  = 7.88339
  Prefactor  = 0.0001
  Prefactor  = 31.7899
  Prefactor  = 0.0001
  Prefactor  = 67.3446
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.84397
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9676
  Prefactor  = 10.876
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16385
  Prefactor  = 0.899587
 **********
 **   18 **HESSE 
 **********

 FCN=   5623.109     FROM HESSE     STATUS=OK           588 CALLS     4480 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10019E-03    91.386        .47270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     82.587        41.656        .44199E-04   -1.3888    
   3  Prefactor     9.4530        6.0939        .13036E-03   -1.5093    
   4  norm          15.665        6.9586        .10120E-03   -1.4916    
   5  Prefactor     .10000E-03    10.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2200        .16636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4238        4.1726        .24833E-03   -1.5469    
   8  Prefactor     .10000E-03    244.76        .21006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.3228        5.2089        .16504E-03   -1.5247    
  10  Prefactor     18.711        6.2883        .92588E-04   -1.4843    
  11  Prefactor     .10000E-03    94.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.8834        5.8232        .71403E-03   -1.5146    
  13  Prefactor     .10000E-03    7.9319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.790        25.628        .71063E-04   -1.4580    
  15  Prefactor     .10000E-03    4.5160        .15522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     67.345        71.303        .24442E-03   -1.4065    
  17  Prefactor     .10000E-03    2.1113        .10631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.9615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.8440        7.2348        .14321E-03   -1.5148    
  22  norm          .10000E-03    2.2509        .10985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.8380        .17591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     15.968        38.845        .10022E-03   -1.4909    
  25  Prefactor     10.876        16.367        .12156E-03   -1.5048    
  26  norm          .10000E-03    3.4687        .11841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.7933        .97922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    13.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1639        .25181        .25269E-03   -.87727    
  30  Prefactor     .89959        .22055        .25962E-03   -.96156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11084e-09
Minuit parameter uncertainties:
  1  0.00841054
  2  41.6711
  3  6.09427
  4  6.95893
  5  7.30127e-06
  6  4.01363e-06
  7  4.17344
  8  0.00135964
  9  5.20935
  10  6.28849
  11  6.54967e-05
  12  5.82365
  13  1.61449e-06
  14  25.6366
  15  2.15863e-06
  16  71.3933
  17  7.30012e-07
  18  1.00378e-05
  19  1.01694e-05
  20  5.4106e-06
  21  7.23563
  22  1.42046e-07
  23  1.3633e-05
  24  38.9061
  25  16.3738
  26  5.03283e-05
  27  5.66463e-07
  28  1.31192e-05
  29  0.252074
  30  0.220771
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  7.883e+00  5.824e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  8.996e-01  2.208e-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.164e+00  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.52
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 4.96e-08 +/- 3.66e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.05e-05

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

Saving results to:
/scratch/kocevski/386210/likelihoodResults_583027201_583286401_4FGL_J2235.3-4836_daily_bin1326.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) = 5622.8887595
delta logL = 0.220331280884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5622.88867433
delta logL = 0.220416454359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9998       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1037       1.0000          .0000       10.000    
     3 'Normalizat'    1.1723       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89340       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=   5622.889     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      304 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9977        7.3508        .12671E-03    .52934E-05
   2  Index         2.1035        .59928        .82158E-02    .12077E-03
   3  Normalizat    1.1724        .23392        .25191E-03   -.14216E-04
   4  Prefactor     .89340        .21483        .26037E-03    .12881E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.99775
  Index      = 2.10346
  Normalizat = 1.17236
  Prefactor  = 0.893403
 **********
 **   18 **HESSE 
 **********

 FCN=   5622.889     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9977        7.3111        .50686E-05   -1.5075    
   2  Index         2.1035        .59608        .16432E-02   -.61788    
   3  Normalizat    1.1724        .23416        .10077E-04   -.87461    
   4  Prefactor     .89340        .21505        .10415E-04   -.96372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83872e-12
Minuit parameter uncertainties:
  1  7.31175
  2  0.598221
  3  0.234367
  4  0.215258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386210': 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) = 5622.88867417
delta logL = 0.22041660995

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  9.998e+00  7.312e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.103e+00  5.982e-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:  8.934e-01  2.153e-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.172e+00  2.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.96
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 2.10 +/- 0.60
Photon Flux (Free Index): 4.11e-08 +/- 3.33e-08
Energy Flux (Free Index): 2.24e-05 +/- 2.57e-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/386210/cmap_HighResolution_583027201_583286401_4FGL_J2235.3-4836_daily_bin1326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='4.96e-08', energy_flux2='2.24e-05', photon_flux_error='3.66e-08', dlogl='2.20e-01', energy_flux='1.42e-05', photon_flux2='4.11e-08', job_status='DONE', time_completed='2021-09-28 16:19:42.146511', photon_index_error2='0.60', photon_index2='2.10', ts='3.52', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='2.57e-05', EG='1.16', time_epoch_completed='1632871182.15', return_code='0', job_id='386210', GAL2='0.89', EG2='1.17', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='3.33e-08', ts2='3.96', photon_index='2.51' WHERE bin_id='1326' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:19:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 386210: <4FGL_J2235.3-4836_daily_bin1326> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1326 338.841 -48.6015 583027201 583286401 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 :                                   806.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            867 sec.

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

