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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1325
RA = 338.841, Dec = -48.6015
tmin = 582768001, tmax = 583027201
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='386208', job_status='RUN', time_executed='2021-09-28 16:06:13.791972', time_epoch_executed='1632870373.79' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386208

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386208/ft1_4FGL_J2235.3-4836_daily_bin1325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386208/ft2_4FGL_J2235.3-4836_daily_bin1325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386208/ft1_4FGL_J2235.3-4836_daily_bin1325.fits outfile=/scratch/kocevski/386208/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1325.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=582768001.0 tmax=583027201.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.60
user 3.38
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386208/ft2_4FGL_J2235.3-4836_daily_bin1325.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/386208/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1325.fits evtable="EVENTS" outfile="/scratch/kocevski/386208/ft1_filtered_4FGL_J2235.3-4836_daily_bin1325.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/386208/ft1_filtered_4FGL_J2235.3-4836_daily_bin1325.fits" evtable="EVENTS" scfile=/scratch/kocevski/386208/ft2_4FGL_J2235.3-4836_daily_bin1325.fits sctable="SC_DATA" outfile=/scratch/kocevski/386208/ltcube_582768001_583027201_4FGL_J2235.3-4836_daily_bin1325.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/386208/ft2_4FGL_J2235.3-4836_daily_bin1325.fits
.....................!
real 11.99
user 11.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386208/ft1_filtered_4FGL_J2235.3-4836_daily_bin1325.fits evtable="EVENTS" scfile=/scratch/kocevski/386208/ft2_4FGL_J2235.3-4836_daily_bin1325.fits sctable="SC_DATA" expcube=/scratch/kocevski/386208/ltcube_582768001_583027201_4FGL_J2235.3-4836_daily_bin1325.fits outfile=/scratch/kocevski/386208/expmap_582768001_583027201_4FGL_J2235.3-4836_daily_bin1325.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/386208/ltcube_582768001_583027201_4FGL_J2235.3-4836_daily_bin1325.fits
.....................!
real 191.72
user 186.09
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/386208/ft1_filtered_4FGL_J2235.3-4836_daily_bin1325.fits scfile=/scratch/kocevski/386208/ft2_4FGL_J2235.3-4836_daily_bin1325.fits outfile=/scratch/kocevski/386208/cmap_582768001_583027201_4FGL_J2235.3-4836_daily_bin1325.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/386208/ft1_filtered_4FGL_J2235.3-4836_daily_bin1325.fits scfile=/scratch/kocevski/386208/ft2_4FGL_J2235.3-4836_daily_bin1325.fits outfile=/scratch/kocevski/386208/cmap_HighResolution_582768001_583027201_4FGL_J2235.3-4836_daily_bin1325.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386208/ft1_filtered_4FGL_J2235.3-4836_daily_bin1325.fits evtable="EVENTS" scfile=/scratch/kocevski/386208/ft2_4FGL_J2235.3-4836_daily_bin1325.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386208/Model_4FGL_J2235.3-4836_daily_bin1325.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/386208/ft1_filtered_4FGL_J2235.3-4836_daily_bin1325.fits.....................!
real 40.01
user 38.69
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1941       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.879       1.0000         .10000E-03   10000.    
     5 'Prefactor '    71.542       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4361       1.0000         .10000E-03   10000.    
    11 'Prefactor '    80.429       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2595       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0803       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11352E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.749       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   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 '    .89059E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.6093       1.0000         .10000E-03   10000.    
    26 'norm      '    1.2589       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .80432       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1414       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=   5188.752     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3909 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1926        37.768       -.50482E-05   -.24791E-03
   2  Prefactor     .10000E-03    34.911       -.52032E-06** at limit **
   3  Prefactor     .10000E-03    6.8528        .22710E-06** at limit **
   4  norm          12.879        6.8396       -.13821E-06    .46982E-04
   5  Prefactor     71.541        52.554       -.12722E-05    .46171E-04
   6  Prefactor     .10000E-03    2.8354        .16434E-07** at limit **
   7  Prefactor     .10000E-03    1.2169       -.44343E-07** at limit **
   8  Prefactor     .10000E-03    31.551       -.15314E-04** at limit **
   9  norm          .10000E-03    2.5215       -.40897E-07** at limit **
  10  Prefactor     2.4352        5.4323       -.21217E-06   -.45374E-03
  11  Prefactor     80.424        75.885       -.41391E-05    .47820E-04
  12  Prefactor     7.2614        7.6843        .23523E-06    .18175E-04
  13  Prefactor     5.0702        34.616       -.80974E-05    .10625E-05
  14  Prefactor     .10000E-03    76.358       -.18447E-04** at limit **
  15  Prefactor     35.755        16.051       -.36221E-06    .25561E-03
  16  Prefactor     .10000E-03    73.445        .14614E-05** at limit **
  17  Prefactor     .10000E-03    15.105       -.58434E-05** at limit **
  18  Prefactor     .10000E-03    18.565        .17093E-04** at limit **
  19  Prefactor     .10000E-03    22.578       -.71666E-05** at limit **
  20  norm          .10000E-03    5.4173       -.62295E-06** at limit **
  21  norm          .10000E-03    5.1396        .58445E-06** at limit **
  22  norm          .10000E-03    2.9025        .93445E-08** at limit **
  23  Prefactor     .10018E-03    4.8660        .58032E-06** at limit **
  24  Prefactor     .10000E-03    41.397        .27269E-04** at limit **
  25  Prefactor     8.6166        12.933       -.27300E-06   -.13425E-03
  26  norm          1.2589        1.2464       -.13210E-06   -.51224E-03
  27  Prefactor     .10000E-03    4.3884        .62463E-09** at limit **
  28  Prefactor     .10000E-03    22.510       -.50932E-05** at limit **
  29  Normalizat    .80444        .20513        .20617E-05    .12325E-03
  30  Prefactor     1.1414        .17926        .14382E-06    .21335E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.19263
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.8785
  Prefactor  = 71.5408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.43525
  Prefactor  = 80.4243
  Prefactor  = 7.26137
  Prefactor  = 5.07016
  Prefactor  = 0.0001
  Prefactor  = 35.7546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100177
  Prefactor  = 0.0001
  Prefactor  = 8.61662
  norm       = 1.25893
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.804438
  Prefactor  = 1.14139
 **********
 **   18 **HESSE 
 **********

 FCN=   5188.752     FROM HESSE     STATUS=OK           576 CALLS     4485 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1926        39.536        .41632E-03   -1.5490    
   2  Prefactor     .10000E-03    35.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.1159        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.879        6.8355        .11162E-03   -1.4990    
   5  Prefactor     71.541        52.509        .47462E-04   -1.4014    
   6  Prefactor     .10000E-03    2.8396        .11842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.2232        .77587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.5234        .11171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4352        5.3803        .22381E-03   -1.5396    
  11  Prefactor     80.424        75.155        .44783E-04   -1.3912    
  12  Prefactor     7.2614        7.6974        .14887E-03   -1.5169    
  13  Prefactor     5.0702        34.618        .17839E-03   -1.5258    
  14  Prefactor     .10000E-03    77.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     35.755        16.025        .67027E-04   -1.4511    
  16  Prefactor     .10000E-03    73.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.408        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.4265        .16375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.1832        .15937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.9149        .11985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10018E-03    54.229        .28291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    41.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.6166        12.187        .13662E-03   -1.5121    
  26  norm          1.2589        1.2097        .74341E-04   -1.5484    
  27  Prefactor     .10000E-03    4.4780        .14719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    22.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .80444        .23685        .27843E-03   -.99904    
  30  Prefactor     1.1414        .20726        .22204E-03   -.88154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68832e-09
Minuit parameter uncertainties:
  1  13.7427
  2  4.32837e-05
  3  6.48581e-07
  4  6.83596
  5  52.543
  6  1.14575e-06
  7  1.34954e-06
  8  8.1314e-09
  9  3.39717e-07
  10  5.38135
  11  75.244
  12  7.69843
  13  26.5185
  14  0.00019741
  15  16.0272
  16  8.1151e-06
  17  0.000115207
  18  8.58434e-06
  19  1.40137e-06
  20  3.29826e-06
  21  4.15105e-06
  22  3.13455e-06
  23  0.0062059
  24  9.76772e-05
  25  12.1907
  26  1.20971
  27  7.41371e-06
  28  1.26534e-05
  29  0.237154
  30  0.207406
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  7.261e+00  7.698e+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.141e+00  2.074e-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:  8.044e-01  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 4.57e-08 +/- 4.84e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 1.39e-05

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

Saving results to:
/scratch/kocevski/386208/likelihoodResults_582768001_583027201_4FGL_J2235.3-4836_daily_bin1325.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) = 5186.96806112
delta logL = 1.78438339964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5186.95363839
delta logL = 1.79880613194

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5613       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4098       1.0000          .0000       10.000    
     3 'Normalizat'    .69490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2065       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=   5186.954     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      246 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5614        12.851        .85130E-02   -.45911E-03
   2  Index         4.4099        3.1374        .10842        .12941E-03
   3  Normalizat    .69489        .64406E-01    .67110E-01    .20156E-04
   4  Prefactor     1.2065        .59944E-01    .34478E-01    .17975E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.56136
  Index      = 4.40986
  Normalizat = 0.694894
  Prefactor  = 1.20651
 **********
 **   18 **HESSE 
 **********

 FCN=   5186.954     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      279 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5614        21.520        .45945E-04   -1.5458    
   2  Index         4.4099        4.1202        .43789E-02   -.11830    
   3  Normalizat    .69489        .22244        .29695E-03   -1.0409    
   4  Prefactor     1.2065        .20569        .21656E-03   -.86131    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.30493e-08
Minuit parameter uncertainties:
  1  11.5978
  2  4.85988
  3  0.222724
  4  0.205831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386208': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5186.95363828
delta logL = 1.79880623939

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.561e+00  1.160e+01  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  4.410e+00  4.860e+00  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.207e+00  2.058e-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.949e-01  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.21
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 4.41 +/- 4.86
Photon Flux (Free Index): 1.37e-07 +/- 7.48e-08
Energy Flux (Free Index): 1.93e-05 +/- 1.58e-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/386208/cmap_HighResolution_582768001_583027201_4FGL_J2235.3-4836_daily_bin1325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='4.57e-08', energy_flux2='1.93e-05', photon_flux_error='4.84e-08', dlogl='1.80e+00', energy_flux='1.31e-05', photon_flux2='1.37e-07', job_status='DONE', time_completed='2021-09-28 16:18:52.152809', photon_index_error2='4.86', photon_index2='4.41', ts='1.21', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.58e-05', EG='0.80', time_epoch_completed='1632871132.15', return_code='0', job_id='386208', GAL2='1.21', EG2='0.69', return_code2='102', energy_flux_error='1.39e-05', photon_flux_error2='7.48e-08', ts2='5.21', photon_index='2.51' WHERE bin_id='1325' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:18:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 386208: <4FGL_J2235.3-4836_daily_bin1325> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1325> 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) <bullet0085>, 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:18:52 2021
Results reported at Tue Sep 28 16:18:52 2021

Your job looked like:

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

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

