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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1394
RA = 338.841, Dec = -48.6015
tmin = 600652801, tmax = 600912001
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='386319', job_status='RUN', time_executed='2021-09-28 16:05:56.017637', time_epoch_executed='1632870356.02' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386319

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386319/ft1_4FGL_J2235.3-4836_daily_bin1394.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386319/ft2_4FGL_J2235.3-4836_daily_bin1394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386319/ft1_4FGL_J2235.3-4836_daily_bin1394.fits outfile=/scratch/kocevski/386319/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1394.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=600652801.0 tmax=600912001.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.62
user 3.39
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386319/ft2_4FGL_J2235.3-4836_daily_bin1394.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/386319/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1394.fits evtable="EVENTS" outfile="/scratch/kocevski/386319/ft1_filtered_4FGL_J2235.3-4836_daily_bin1394.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/386319/ft1_filtered_4FGL_J2235.3-4836_daily_bin1394.fits" evtable="EVENTS" scfile=/scratch/kocevski/386319/ft2_4FGL_J2235.3-4836_daily_bin1394.fits sctable="SC_DATA" outfile=/scratch/kocevski/386319/ltcube_600652801_600912001_4FGL_J2235.3-4836_daily_bin1394.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/386319/ft2_4FGL_J2235.3-4836_daily_bin1394.fits
.....................!
real 11.90
user 11.50
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386319/ft1_filtered_4FGL_J2235.3-4836_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/386319/ft2_4FGL_J2235.3-4836_daily_bin1394.fits sctable="SC_DATA" expcube=/scratch/kocevski/386319/ltcube_600652801_600912001_4FGL_J2235.3-4836_daily_bin1394.fits outfile=/scratch/kocevski/386319/expmap_600652801_600912001_4FGL_J2235.3-4836_daily_bin1394.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/386319/ltcube_600652801_600912001_4FGL_J2235.3-4836_daily_bin1394.fits
.....................!
real 190.45
user 185.29
sys 4.81

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/386319/ft1_filtered_4FGL_J2235.3-4836_daily_bin1394.fits scfile=/scratch/kocevski/386319/ft2_4FGL_J2235.3-4836_daily_bin1394.fits outfile=/scratch/kocevski/386319/cmap_600652801_600912001_4FGL_J2235.3-4836_daily_bin1394.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386319/ft1_filtered_4FGL_J2235.3-4836_daily_bin1394.fits scfile=/scratch/kocevski/386319/ft2_4FGL_J2235.3-4836_daily_bin1394.fits outfile=/scratch/kocevski/386319/cmap_HighResolution_600652801_600912001_4FGL_J2235.3-4836_daily_bin1394.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7781       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    11.614       1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.894       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.431       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9258       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.3023       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6468       1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.598       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.524       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1479       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.645       1.0000         .10000E-03   10000.    
    20 'norm      '    8.7445       1.0000         .10000E-03   10000.    
    21 'norm      '    5.0920       1.0000         .10000E-03   10000.    
    22 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .35586E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    71.611       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.8522       1.0000         .10000E-03   10000.    
    26 'norm      '    .56141       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    55.094       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .94189       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .75104       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=   3986.523     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3929 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7855        15.337        .88924E-05    .37224E-04
   2  Prefactor     .10000E-03    28.126        .30003E-06** at limit **
   3  Prefactor     .10000E-03    2.3835       -.45005E-07** at limit **
   4  norm          11.613        7.0761       -.75511E-07   -.94555E-04
   5  Prefactor     37.890        39.033        .12811E-08   -.66714E-04
   6  Prefactor     16.437        12.923        .15800E-06   -.36477E-04
   7  Prefactor     3.9266        3.8329        .13159E-06   -.11267E-03
   8  Prefactor     .10001E-03    47.862       -.83319E-06** at limit **
   9  norm          4.3013        7.4581        .16230E-06   -.12801E-04
  10  Prefactor     5.6486        4.7910        .17734E-06   -.15592E-03
  11  Prefactor     45.596        55.649        .39357E-06   -.23507E-04
  12  Prefactor     .10000E-03    9.7619        .39406E-06** at limit **
  13  Prefactor     .10000E-03    10.049        .13898E-06** at limit **
  14  Prefactor     53.535        37.018       -.14118E-07    .67424E-04
  15  Prefactor     .10000E-03    29.408        .14307E-05** at limit **
  16  Prefactor     .10000E-03    72.251        .85156E-06** at limit **
  17  Prefactor     1.1470        8.4886        .99950E-06    .67502E-04
  18  Prefactor     .10000E-03    24.825       -.88598E-07** at limit **
  19  Prefactor     13.652        26.040       -.17395E-05   -.32002E-03
  20  norm          8.7437        14.874       -.12867E-07   -.80290E-04
  21  norm          5.0899        6.1390       -.42132E-06   -.57504E-05
  22  norm          .10000E-03    5.6126       -.71756E-06** at limit **
  23  Prefactor     .10002E-03    10.375        .32841E-05** at limit **
  24  Prefactor     71.579        63.378        .13483E-05   -.32336E-03
  25  Prefactor     3.8290        20.386       -.55169E-06   -.57997E-03
  26  norm          .56208        1.8800        .61729E-06   -.80911E-03
  27  Prefactor     .10000E-03    2.8235        .19199E-06** at limit **
  28  Prefactor     55.104        42.413       -.83487E-06   -.40127E-04
  29  Normalizat    .94064        .23561       -.21871E-05   -.38529E-03
  30  Prefactor     .75208        .19005        .20368E-06   -.32681E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.78553
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 11.6126
  Prefactor  = 37.8896
  Prefactor  = 16.4367
  Prefactor  = 3.92661
  Prefactor  = 0.000100006
  norm       = 4.30134
  Prefactor  = 5.64864
  Prefactor  = 45.596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.5351
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 1.14697
  Prefactor  = 0.0001
  Prefactor  = 13.6517
  norm       = 8.74366
  norm       = 5.08987
  norm       = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 71.5786
  Prefactor  = 3.82901
  norm       = 0.562076
  Prefactor  = 0.0001
  Prefactor  = 55.1043
  Normalizat = 0.940638
  Prefactor  = 0.752083
 **********
 **   18 **HESSE 
 **********

 FCN=   3986.523     FROM HESSE     STATUS=OK           582 CALLS     4511 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7855        15.605        .12208E-02   -1.5374    
   2  Prefactor     .10000E-03    28.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3974        .95160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.613        7.0765        .11755E-03   -1.5026    
   5  Prefactor     37.890        39.015        .65109E-04   -1.4476    
   6  Prefactor     16.437        12.928        .98806E-04   -1.4897    
   7  Prefactor     3.9266        3.8250        .11661E-03   -1.5312    
   8  Prefactor     .10001E-03    47.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.3013        7.4563        .19422E-03   -1.5293    
  10  Prefactor     5.6486        4.7917        .12024E-03   -1.5233    
  11  Prefactor     45.596        55.598        .59376E-04   -1.4356    
  12  Prefactor     .10000E-03    9.9941        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     53.535        37.258        .54824E-04   -1.4243    
  15  Prefactor     .10000E-03    30.012        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    72.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.1470        8.4133        .35341E-03   -1.5494    
  18  Prefactor     .10000E-03    24.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.652        25.062        .10843E-03   -1.4969    
  20  norm          8.7437        14.865        .13555E-03   -1.5116    
  21  norm          5.0899        6.1287        .16539E-03   -1.5257    
  22  norm          .10000E-03    5.6724        .14594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10002E-03    24.633        .33826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     71.579        63.380        .47440E-04   -1.4014    
  25  Prefactor     3.8290        20.663        .10281E-02   -1.5317    
  26  norm          .56208        1.6892        .11468E-03   -1.5558    
  27  Prefactor     .10000E-03    2.8306        .10356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     55.104        42.122        .54041E-04   -1.4222    
  29  Normalizat    .94064        .28278        .24286E-03   -.95047    
  30  Prefactor     .75208        .22742        .23810E-03   -1.0152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91578e-09
Minuit parameter uncertainties:
  1  13.1912
  2  0.000249756
  3  1.09055e-05
  4  7.07696
  5  39.0412
  6  12.9307
  7  3.82521
  8  0.00103651
  9  7.45793
  10  4.79202
  11  55.661
  12  0.000122771
  13  7.42057e-05
  14  37.274
  15  0.00016645
  16  0.00101794
  17  6.21379
  18  0.000214144
  19  25.0814
  20  14.8713
  21  6.12942
  22  3.938e-05
  23  0.00154884
  24  63.4395
  25  17.7991
  26  1.68934
  27  5.83347e-06
  28  42.145
  29  0.28323
  30  0.227707
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  1.228e-04  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:  7.521e-01  2.277e-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:  9.406e-01  2.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386319/likelihoodResults_600652801_600912001_4FGL_J2235.3-4836_daily_bin1394.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): 102
logL (Free Index) = 3986.52352626
delta logL = -0.000477380392113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3986.52304961
delta logL = -7.29226030671e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12089E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5475       1.0000          .0000       10.000    
     3 'Normalizat'    .94064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75211       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=   3986.523     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      201 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.528        .90712E-02** at limit **
   2  Index         2.5872        6.1253        .50000       -.33159E-04
   3  Normalizat    .94064        .20772        .45419E-01    .53169E-04
   4  Prefactor     .75208        .18473        .43091E-01    .45279E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.5872
  Normalizat = 0.94064
  Prefactor  = 0.752082
 **********
 **   18 **HESSE 
 **********

 FCN=   3986.523     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.606        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5872        6.2901        .50000       -.50358    
   3  Normalizat    .94064        .24199        .24286E-03   -.95046    
   4  Prefactor     .75208        .21552        .23810E-03   -1.0152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35423e-09
Minuit parameter uncertainties:
  1  0.000230884
  2  4.44274
  3  0.242275
  4  0.215757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386319': 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) = 3986.52304829
delta logL = 5.89222963754e-07

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  2.309e-04  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.587e+00  4.443e+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:  7.521e-01  2.158e-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:  9.406e-01  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.841 -48.602

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/386319/cmap_HighResolution_600652801_600912001_4FGL_J2235.3-4836_daily_bin1394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.64e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-28 16:16:47.252760', job_id='386319', GAL2='0.75', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632871007.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='5.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1394' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:16:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 386319: <4FGL_J2235.3-4836_daily_bin1394> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1394 338.841 -48.6015 600652801 600912001 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 :                                   649.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            682 sec.

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

