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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1108
RA = 338.841, Dec = -48.6015
tmin = 526521601, tmax = 526780801
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='383790', job_status='RUN', time_executed='2021-09-28 15:56:10.530166', time_epoch_executed='1632869770.53' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1108'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383790

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383790/ft1_4FGL_J2235.3-4836_daily_bin1108.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383790/ft2_4FGL_J2235.3-4836_daily_bin1108.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383790/ft1_4FGL_J2235.3-4836_daily_bin1108.fits outfile=/scratch/kocevski/383790/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1108.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=526521601.0 tmax=526780801.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.37
user 4.13
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/383790/ft1_filtered_4FGL_J2235.3-4836_daily_bin1108.fits" evtable="EVENTS" scfile=/scratch/kocevski/383790/ft2_4FGL_J2235.3-4836_daily_bin1108.fits sctable="SC_DATA" outfile=/scratch/kocevski/383790/ltcube_526521601_526780801_4FGL_J2235.3-4836_daily_bin1108.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/383790/ft2_4FGL_J2235.3-4836_daily_bin1108.fits
.....................!
real 11.91
user 11.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383790/ft1_filtered_4FGL_J2235.3-4836_daily_bin1108.fits evtable="EVENTS" scfile=/scratch/kocevski/383790/ft2_4FGL_J2235.3-4836_daily_bin1108.fits sctable="SC_DATA" expcube=/scratch/kocevski/383790/ltcube_526521601_526780801_4FGL_J2235.3-4836_daily_bin1108.fits outfile=/scratch/kocevski/383790/expmap_526521601_526780801_4FGL_J2235.3-4836_daily_bin1108.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/383790/ltcube_526521601_526780801_4FGL_J2235.3-4836_daily_bin1108.fits
.....................!
real 193.01
user 187.56
sys 5.08

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/383790/ft1_filtered_4FGL_J2235.3-4836_daily_bin1108.fits scfile=/scratch/kocevski/383790/ft2_4FGL_J2235.3-4836_daily_bin1108.fits outfile=/scratch/kocevski/383790/cmap_526521601_526780801_4FGL_J2235.3-4836_daily_bin1108.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383790/ft1_filtered_4FGL_J2235.3-4836_daily_bin1108.fits scfile=/scratch/kocevski/383790/ft2_4FGL_J2235.3-4836_daily_bin1108.fits outfile=/scratch/kocevski/383790/cmap_HighResolution_526521601_526780801_4FGL_J2235.3-4836_daily_bin1108.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/383790/ft1_filtered_4FGL_J2235.3-4836_daily_bin1108.fits evtable="EVENTS" scfile=/scratch/kocevski/383790/ft2_4FGL_J2235.3-4836_daily_bin1108.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/383790/Model_4FGL_J2235.3-4836_daily_bin1108.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/383790/ft1_filtered_4FGL_J2235.3-4836_daily_bin1108.fits.....................!
real 39.19
user 37.80
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7982       1.0000         .10000E-03   10000.    
     4 'norm      '    9.1177       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4460       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .94490       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.7403       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4272       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.4721       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23692E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8449       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10859E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.5877       1.0000         .10000E-03   10000.    
    22 'norm      '    3.3846       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.8169       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.6264       1.0000         .10000E-03   10000.    
    28 'Prefactor '    30.277       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3446       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .43588       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=   4698.564     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3346 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0718       -.64820E-07** at limit **
   2  Prefactor     .10000E-03    15.405        .25345E-06** at limit **
   3  Prefactor     2.7976        4.1161       -.90058E-09    .24844E-05
   4  norm          9.1178        4.7706       -.71504E-08   -.35699E-05
   5  Prefactor     .10000E-03    10.427        .35119E-07** at limit **
   6  Prefactor     3.4458        6.7728        .46296E-07   -.12897E-05
   7  Prefactor     .94445        3.7069        .41497E-07   -.28399E-05
   8  Prefactor     .10000E-03    34.692        .22313E-05** at limit **
   9  norm          4.7405        7.4932        .40659E-06    .68447E-04
  10  Prefactor     .10000E-03    1.1945        .20480E-06** at limit **
  11  Prefactor     7.5260        74.157       -.10452E-04   -.87140E-04
  12  Prefactor     9.4714        6.5068        .77615E-07    .92288E-05
  13  Prefactor     .10120E-03    19.981        .34681E-05** at limit **
  14  Prefactor     .10000E-03    31.026        .44276E-06** at limit **
  15  Prefactor     3.8422        10.214        .10313E-05    .58272E-04
  16  Prefactor     .10000E-03    68.393       -.18282E-06** at limit **
  17  Prefactor     .10000E-03    2.5597        .43498E-07** at limit **
  18  Prefactor     .10000E-03    30.277       -.13504E-05** at limit **
  19  Prefactor     .10000E-03    8.4585       -.91295E-07** at limit **
  20  norm          .10000E-03    3.7365       -.18298E-07** at limit **
  21  norm          4.5878        4.7830       -.78372E-07   -.14296E-04
  22  norm          3.3846        4.6054        .17027E-07    .65638E-06
  23  Prefactor     5.8178        5.3596       -.40361E-08   -.51664E-05
  24  Prefactor     .10000E-03    13.591       -.47381E-06** at limit **
  25  Prefactor     .10000E-03    14.233       -.25924E-07** at limit **
  26  norm          .10000E-03    .29474       -.18683E-07** at limit **
  27  Prefactor     3.6259        4.1714       -.14536E-06   -.33446E-04
  28  Prefactor     30.285        27.448        .43545E-07   -.13697E-05
  29  Normalizat    1.3447        .19117       -.94933E-06   -.20611E-03
  30  Prefactor     .43590        .15874        .17644E-05   -.68390E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.79761
  norm       = 9.11782
  Prefactor  = 0.0001
  Prefactor  = 3.44578
  Prefactor  = 0.944447
  Prefactor  = 0.0001
  norm       = 4.7405
  Prefactor  = 0.0001
  Prefactor  = 7.52604
  Prefactor  = 9.47143
  Prefactor  = 0.000101198
  Prefactor  = 0.0001
  Prefactor  = 3.84218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.58782
  norm       = 3.3846
  Prefactor  = 5.81777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.62588
  Prefactor  = 30.2852
  Normalizat = 1.34466
  Prefactor  = 0.4359
 **********
 **   18 **HESSE 
 **********

 FCN=   4698.564     FROM HESSE     STATUS=OK           586 CALLS     3932 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0840        .13507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7976        4.0978        .15944E-03   -1.5373    
   4  norm          9.1178        4.7696        .10515E-03   -1.5104    
   5  Prefactor     .10000E-03    10.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4458        6.7228        .21787E-03   -1.5337    
   7  Prefactor     .94445        3.6775        .24111E-03   -1.5514    
   8  Prefactor     .10000E-03    34.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.7405        7.5073        .92404E-03   -1.5272    
  10  Prefactor     .10000E-03    1.2083        .73289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.5260        76.725        .14716E-03   -1.5159    
  12  Prefactor     9.4714        6.5144        .13021E-03   -1.5092    
  13  Prefactor     .10120E-03    155.41        .47123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8422        10.287        .10291E-02   -1.5316    
  16  Prefactor     .10000E-03    68.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.5662        .10711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.4978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.7374        .12941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.5878        4.7856        .14887E-03   -1.5280    
  22  norm          3.3846        4.5986        .16749E-03   -1.5340    
  23  Prefactor     5.8178        5.3570        .14694E-03   -1.5226    
  24  Prefactor     .10000E-03    13.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    14.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .29734        .36313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.6259        4.1645        .14356E-03   -1.5327    
  28  Prefactor     30.285        27.439        .72816E-04   -1.4607    
  29  Normalizat    1.3447        .20917        .19308E-03   -.82243    
  30  Prefactor     .43590        .17419        .28083E-03   -1.1501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47691e-09
Minuit parameter uncertainties:
  1  3.6723e-06
  2  1.88552e-07
  3  4.09823
  4  4.76982
  5  1.61049e-06
  6  6.72424
  7  3.6784
  8  0.000125818
  9  7.50875
  10  9.77571e-06
  11  48.1393
  12  6.51487
  13  0.0273556
  14  5.64011e-05
  15  10.2918
  16  1.06553e-05
  17  3.69259e-06
  18  7.95104e-05
  19  6.14514e-06
  20  7.66058e-07
  21  4.78602
  22  4.59904
  23  5.35741
  24  1.89824e-05
  25  6.70272e-06
  26  1.65609e-07
  27  4.16486
  28  27.4503
  29  0.209301
  30  0.1744
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  9.471e+00  6.515e+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:  4.359e-01  1.744e-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.345e+00  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.24
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 5.96e-08 +/- 4.10e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.18e-05

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

Saving results to:
/scratch/kocevski/383790/likelihoodResults_526521601_526780801_4FGL_J2235.3-4836_daily_bin1108.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) = 4698.55752445
delta logL = 0.00643691366622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4698.55540016
delta logL = 0.00856120508342

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9244       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4365       1.0000          .0000       10.000    
     3 'Normalizat'    1.3476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43403       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=   4698.555     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      239 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9245        7.6368        .12720E-03   -.24436E-03
   2  Index         2.4365        .56930        .67587E-02   -.57328E-04
   3  Normalizat    1.3476        .20106        .19291E-03    .40227E-04
   4  Prefactor     .43402        .17293        .28137E-03    .29212E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.92455
  Index      = 2.43647
  Normalizat = 1.34759
  Prefactor  = 0.434015
 **********
 **   18 **HESSE 
 **********

 FCN=   4698.555     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9245        7.5032        .50879E-05   -1.5078    
   2  Index         2.4365        .55917        .27035E-03   -.53833    
   3  Normalizat    1.3476        .20120        .38582E-04   -.82157    
   4  Prefactor     .43402        .17301        .11255E-04   -1.1511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80778e-11
Minuit parameter uncertainties:
  1  7.50386
  2  0.560764
  3  0.201314
  4  0.173222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383790': 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) = 4698.55540015
delta logL = 0.00856121226116

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  9.925e+00  7.504e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.436e+00  5.608e-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:  4.340e-01  1.732e-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.348e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.24
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 2.44 +/- 0.56
Photon Flux (Free Index): 5.74e-08 +/- 4.34e-08
Energy Flux (Free Index): 1.79e-05 +/- 1.41e-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/383790/cmap_HighResolution_526521601_526780801_4FGL_J2235.3-4836_daily_bin1108.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='5.96e-08', energy_flux2='1.79e-05', photon_flux_error='4.10e-08', dlogl='8.56e-03', energy_flux='1.71e-05', photon_flux2='5.74e-08', job_status='DONE', time_completed='2021-09-28 16:07:47.823678', photon_index_error2='0.56', photon_index2='2.44', ts='3.24', fit_tolerance='1e-08', GAL='0.44', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='1.41e-05', EG='1.34', time_epoch_completed='1632870467.82', return_code='0', job_id='383790', GAL2='0.43', EG2='1.35', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='4.34e-08', ts2='3.24', photon_index='2.51' WHERE bin_id='1108' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:07:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 383790: <4FGL_J2235.3-4836_daily_bin1108> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1108> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:55:58 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:56:00 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:56:00 2021
Terminated at Tue Sep 28 16:07:48 2021
Results reported at Tue Sep 28 16:07:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1108 338.841 -48.6015 526521601 526780801 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 :                                   696.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            710 sec.

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

