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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1112
RA = 338.841, Dec = -48.6015
tmin = 527558401, tmax = 527817601
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='383794', job_status='RUN', time_executed='2021-09-28 15:56:20.620676', time_epoch_executed='1632869780.62' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1112'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383794

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383794/ft1_4FGL_J2235.3-4836_daily_bin1112.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383794/ft2_4FGL_J2235.3-4836_daily_bin1112.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383794/ft1_4FGL_J2235.3-4836_daily_bin1112.fits outfile=/scratch/kocevski/383794/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1112.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=527558401.0 tmax=527817601.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.53
user 3.31
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/383794/ft2_4FGL_J2235.3-4836_daily_bin1112.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/383794/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1112.fits evtable="EVENTS" outfile="/scratch/kocevski/383794/ft1_filtered_4FGL_J2235.3-4836_daily_bin1112.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/383794/ft1_filtered_4FGL_J2235.3-4836_daily_bin1112.fits" evtable="EVENTS" scfile=/scratch/kocevski/383794/ft2_4FGL_J2235.3-4836_daily_bin1112.fits sctable="SC_DATA" outfile=/scratch/kocevski/383794/ltcube_527558401_527817601_4FGL_J2235.3-4836_daily_bin1112.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/383794/ft2_4FGL_J2235.3-4836_daily_bin1112.fits
.....................!
real 11.78
user 11.46
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383794/ft1_filtered_4FGL_J2235.3-4836_daily_bin1112.fits evtable="EVENTS" scfile=/scratch/kocevski/383794/ft2_4FGL_J2235.3-4836_daily_bin1112.fits sctable="SC_DATA" expcube=/scratch/kocevski/383794/ltcube_527558401_527817601_4FGL_J2235.3-4836_daily_bin1112.fits outfile=/scratch/kocevski/383794/expmap_527558401_527817601_4FGL_J2235.3-4836_daily_bin1112.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/383794/ltcube_527558401_527817601_4FGL_J2235.3-4836_daily_bin1112.fits
.....................!
real 191.19
user 185.61
sys 5.23

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/383794/ft1_filtered_4FGL_J2235.3-4836_daily_bin1112.fits scfile=/scratch/kocevski/383794/ft2_4FGL_J2235.3-4836_daily_bin1112.fits outfile=/scratch/kocevski/383794/cmap_527558401_527817601_4FGL_J2235.3-4836_daily_bin1112.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383794/ft1_filtered_4FGL_J2235.3-4836_daily_bin1112.fits scfile=/scratch/kocevski/383794/ft2_4FGL_J2235.3-4836_daily_bin1112.fits outfile=/scratch/kocevski/383794/cmap_HighResolution_527558401_527817601_4FGL_J2235.3-4836_daily_bin1112.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/383794/ft1_filtered_4FGL_J2235.3-4836_daily_bin1112.fits evtable="EVENTS" scfile=/scratch/kocevski/383794/ft2_4FGL_J2235.3-4836_daily_bin1112.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/383794/Model_4FGL_J2235.3-4836_daily_bin1112.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/383794/ft1_filtered_4FGL_J2235.3-4836_daily_bin1112.fits.....................!
real 37.37
user 36.15
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.301       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    48.359       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.964       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.3355       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.3919       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6872       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16850E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.977       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .32618E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8235       1.0000         .10000E-03   10000.    
    16 'Prefactor '    63.006       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.819       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.1368       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .18034E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    .96687E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.9007       1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.628       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .69453       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2115       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=   4508.555     FROM MIGRAD    STATUS=CONVERGED    814 CALLS     4631 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.301        14.434       -.35961E-06    .42326E-04
   2  Prefactor     .10000E-03    20.300       -.94755E-08** at limit **
   3  Prefactor     .10000E-03    3.1952       -.35399E-06** at limit **
   4  norm          48.360        12.011       -.87113E-07    .12084E-04
   5  Prefactor     16.965        46.595       -.14715E-05    .11284E-04
   6  Prefactor     .10000E-03    12.422       -.16355E-06** at limit **
   7  Prefactor     6.3354        4.6390       -.26622E-06    .22472E-04
   8  Prefactor     .10000E-03    52.147        .43488E-07** at limit **
   9  norm          4.3918        4.9330        .10845E-06    .14207E-04
  10  Prefactor     2.6866        4.1384        .31433E-06    .15419E-04
  11  Prefactor     .10000E-03    493.41        .11948E-05** at limit **
  12  Prefactor     11.977        8.5419       -.48332E-07   -.61379E-05
  13  Prefactor     .10000E-03    20.336        .13958E-06** at limit **
  14  Prefactor     .10001E-03    208.49        .37909E-05** at limit **
  15  Prefactor     2.8218        10.512       -.84553E-06   -.40943E-04
  16  Prefactor     62.997        90.620       -.58294E-06    .80265E-05
  17  Prefactor     .10000E-03    4.0302        .30959E-07** at limit **
  18  Prefactor     .10000E-03    11.673       -.27852E-07** at limit **
  19  Prefactor     .10000E-03    9.4729        .39905E-07** at limit **
  20  norm          10.819        10.728        .21896E-07    .18696E-04
  21  norm          .10000E-03    2.6186        .11661E-07** at limit **
  22  norm          .10000E-03    2.9542        .11237E-07** at limit **
  23  Prefactor     7.1372        7.5599       -.22151E-06    .86032E-04
  24  Prefactor     .10000E-03    141.30       -.24101E-05** at limit **
  25  Prefactor     .10003E-03    124.62        .19731E-05** at limit **
  26  norm          .93301E-01    .97718        .32374E-06   -.11507E-02
  27  Prefactor     6.9015        6.5446       -.13315E-06   -.58700E-04
  28  Prefactor     17.631        41.006       -.39841E-07   -.68825E-05
  29  Normalizat    .69460        .22573        .38621E-05    .52663E-04
  30  Prefactor     1.2114        .19849       -.35319E-07    .19716E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3011
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 48.3595
  Prefactor  = 16.9649
  Prefactor  = 0.0001
  Prefactor  = 6.33543
  Prefactor  = 0.0001
  norm       = 4.39184
  Prefactor  = 2.68659
  Prefactor  = 0.000100001
  Prefactor  = 11.9771
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 2.82175
  Prefactor  = 62.9968
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8187
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.13718
  Prefactor  = 0.0001
  Prefactor  = 0.000100028
  norm       = 0.0933012
  Prefactor  = 6.90152
  Prefactor  = 17.6308
  Normalizat = 0.694597
  Prefactor  = 1.21141
 **********
 **   18 **HESSE 
 **********

 FCN=   4508.555     FROM HESSE     STATUS=OK           608 CALLS     5239 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.301        14.350        .99202E-04   -1.4900    
   2  Prefactor     .10000E-03    20.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.681        .22925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          48.360        12.023        .57663E-04   -1.4316    
   5  Prefactor     16.965        46.556        .97241E-04   -1.4884    
   6  Prefactor     .10000E-03    12.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.3354        4.6432        .11808E-03   -1.5205    
   8  Prefactor     .10000E-03    52.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.3918        4.9335        .15422E-03   -1.5289    
  10  Prefactor     2.6866        4.1058        .16113E-03   -1.5380    
  11  Prefactor     .10000E-03    497.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.977        8.5873        .11575E-03   -1.5016    
  13  Prefactor     .10000E-03    20.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    37.849        .93781E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8218        11.089        .24204E-03   -1.5372    
  16  Prefactor     62.997        90.416        .50554E-04   -1.4119    
  17  Prefactor     .10000E-03    4.0752        .13163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.4939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.819        10.733        .12180E-03   -1.5050    
  21  norm          .10000E-03    2.6192        .10612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.9556        .11271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.1372        7.7498        .15015E-03   -1.5174    
  24  Prefactor     .10000E-03    142.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10003E-03    36.160        .79482E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .93301E-01    3.9123        .11703E-02   -1.5647    
  27  Prefactor     6.9015        6.5248        .14964E-03   -1.5182    
  28  Prefactor     17.631        41.009        .95392E-04   -1.4868    
  29  Normalizat    .69460        .26667        .30117E-03   -1.0411    
  30  Prefactor     1.2114        .23869        .21927E-03   -.85981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83e-09
Minuit parameter uncertainties:
  1  14.3534
  2  3.11356e-05
  3  0.000371371
  4  12.0235
  5  46.6554
  6  3.82062e-05
  7  4.64346
  8  2.78379e-05
  9  4.934
  10  4.10627
  11  0.00162158
  12  8.58814
  13  4.29049e-05
  14  0.00111703
  15  11.0966
  16  90.614
  17  9.01604e-06
  18  2.51947e-06
  19  2.52715e-05
  20  10.7344
  21  1.15055e-06
  22  1.67537e-06
  23  7.75088
  24  0.00016376
  25  0.00201156
  26  1.20777
  27  6.52543
  28  41.0749
  29  0.267172
  30  0.238901
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.211e+00  2.389e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  6.946e-01  2.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.90
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 7.54e-08 +/- 5.40e-08
Energy Flux (Fixed Index): 2.16e-05 +/- 1.55e-05

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

Saving results to:
/scratch/kocevski/383794/likelihoodResults_527558401_527817601_4FGL_J2235.3-4836_daily_bin1112.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) = 4508.36271388
delta logL = 0.191847781443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4508.3625642
delta logL = 0.191997466723

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.746       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1910       1.0000          .0000       10.000    
     3 'Normalizat'    .71060       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1985       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=   4508.363     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      270 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.733        340.39        .26075E-02    .50453E-04
   2  Index         2.1903        5.7933        .16533        .14555E-04
   3  Normalizat    .71064        .22855        .67324E-01    .20919E-04
   4  Prefactor     1.1985        .26675        .49803E-01    .30527E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7331
  Index      = 2.19029
  Normalizat = 0.710645
  Prefactor  = 1.19851
 **********
 **   18 **HESSE 
 **********

 FCN=   4508.363     FROM HESSE     STATUS=OK            33 CALLS      303 TOTAL
                     EDM=   .44E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.733        10.214        .10430E-03   -1.4940    
   2  Index         2.1903        .47896        .66027E-02   -.59673    
   3  Normalizat    .71064        .25052        .29791E-03   -1.0347    
   4  Prefactor     1.1985        .23479        .22017E-03   -.86377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39078e-13
Minuit parameter uncertainties:
  1  10.2148
  2  0.480038
  3  0.250924
  4  0.234997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383794': 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) = 4508.36256159
delta logL = 0.192000075996

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.199e+00  2.350e-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:  7.106e-01  2.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.25
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 2.19 +/- 0.48
Photon Flux (Free Index): 6.58e-08 +/- 4.88e-08
Energy Flux (Free Index): 3.01e-05 +/- 2.70e-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/383794/cmap_HighResolution_527558401_527817601_4FGL_J2235.3-4836_daily_bin1112.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', comment='SUCCESS', photon_flux='7.54e-08', energy_flux2='3.01e-05', photon_flux_error='5.40e-08', dlogl='1.92e-01', energy_flux='2.16e-05', photon_flux2='6.58e-08', job_status='DONE', time_completed='2021-09-28 16:08:48.770248', photon_index_error2='0.48', photon_index2='2.19', ts='2.90', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='1.84e-07', energy_flux_error2='2.70e-05', EG='0.69', time_epoch_completed='1632870528.77', return_code='0', job_id='383794', GAL2='1.20', EG2='0.71', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='4.88e-08', ts2='3.25', photon_index='2.51' WHERE bin_id='1112' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:08:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 383794: <4FGL_J2235.3-4836_daily_bin1112> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1112> 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) <bullet0260>, 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:08:49 2021
Results reported at Tue Sep 28 16:08:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1112 338.841 -48.6015 527558401 527817601 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 :                                   747.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            771 sec.

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

