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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1487
RA = 338.841, Dec = -48.6015
tmin = 624758401, tmax = 625017601
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='386469', job_status='RUN', time_executed='2021-09-28 16:06:30.795381', time_epoch_executed='1632870390.8' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1487'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386469

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386469/ft1_4FGL_J2235.3-4836_daily_bin1487.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386469/ft2_4FGL_J2235.3-4836_daily_bin1487.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386469/ft1_4FGL_J2235.3-4836_daily_bin1487.fits outfile=/scratch/kocevski/386469/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1487.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=624758401.0 tmax=625017601.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.47
user 3.23
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386469/ft2_4FGL_J2235.3-4836_daily_bin1487.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/386469/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1487.fits evtable="EVENTS" outfile="/scratch/kocevski/386469/ft1_filtered_4FGL_J2235.3-4836_daily_bin1487.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.62
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386469/ft1_filtered_4FGL_J2235.3-4836_daily_bin1487.fits" evtable="EVENTS" scfile=/scratch/kocevski/386469/ft2_4FGL_J2235.3-4836_daily_bin1487.fits sctable="SC_DATA" outfile=/scratch/kocevski/386469/ltcube_624758401_625017601_4FGL_J2235.3-4836_daily_bin1487.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/386469/ft2_4FGL_J2235.3-4836_daily_bin1487.fits
.....................!
real 12.06
user 11.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386469/ft1_filtered_4FGL_J2235.3-4836_daily_bin1487.fits evtable="EVENTS" scfile=/scratch/kocevski/386469/ft2_4FGL_J2235.3-4836_daily_bin1487.fits sctable="SC_DATA" expcube=/scratch/kocevski/386469/ltcube_624758401_625017601_4FGL_J2235.3-4836_daily_bin1487.fits outfile=/scratch/kocevski/386469/expmap_624758401_625017601_4FGL_J2235.3-4836_daily_bin1487.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/386469/ltcube_624758401_625017601_4FGL_J2235.3-4836_daily_bin1487.fits
.....................!
real 189.91
user 185.33
sys 4.10

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/386469/ft1_filtered_4FGL_J2235.3-4836_daily_bin1487.fits scfile=/scratch/kocevski/386469/ft2_4FGL_J2235.3-4836_daily_bin1487.fits outfile=/scratch/kocevski/386469/cmap_624758401_625017601_4FGL_J2235.3-4836_daily_bin1487.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386469/ft1_filtered_4FGL_J2235.3-4836_daily_bin1487.fits scfile=/scratch/kocevski/386469/ft2_4FGL_J2235.3-4836_daily_bin1487.fits outfile=/scratch/kocevski/386469/cmap_HighResolution_624758401_625017601_4FGL_J2235.3-4836_daily_bin1487.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.841 yref=-48.6015 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386469/ft1_filtered_4FGL_J2235.3-4836_daily_bin1487.fits evtable="EVENTS" scfile=/scratch/kocevski/386469/ft2_4FGL_J2235.3-4836_daily_bin1487.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386469/Model_4FGL_J2235.3-4836_daily_bin1487.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/386469/ft1_filtered_4FGL_J2235.3-4836_daily_bin1487.fits.....................!
real 45.69
user 43.81
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.457       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7191       1.0000         .10000E-03   10000.    
     4 'norm      '    4.9943       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8239       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6503       1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.079       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .90387       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.399       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5231       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11103E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.030       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.911       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.5476       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.9260       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .44410E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.6830       1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.2046       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0206       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .88747       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=   6156.988     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     3893 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.460        11.818       -.11111E-06    .47768E-05
   2  Prefactor     .10000E-03    15.320        .21992E-08** at limit **
   3  Prefactor     4.7221        4.9083        .90836E-06   -.11960E-04
   4  norm          4.9951        4.2543        .67036E-08    .59346E-05
   5  Prefactor     6.8435        35.859       -.14122E-05    .42243E-05
   6  Prefactor     .10000E-03    6.1832        .79530E-06** at limit **
   7  Prefactor     7.6527        4.2088        .26799E-06   -.42996E-05
   8  Prefactor     50.143        79.335       -.59312E-05    .83680E-05
   9  norm          .10000E-03    2.3842        .28676E-07** at limit **
  10  Prefactor     .90509        2.2649       -.23699E-07   -.44734E-04
  11  Prefactor     10.386        24.974        .63213E-06    .60757E-05
  12  Prefactor     1.5240        3.1084        .17000E-06    .22167E-04
  13  Prefactor     .10000E-03    66.360       -.14452E-05** at limit **
  14  Prefactor     .10000E-03    12.793        .99724E-07** at limit **
  15  Prefactor     .10000E-03    3.7198       -.18245E-07** at limit **
  16  Prefactor     .10000E-03    49.064        .38858E-06** at limit **
  17  Prefactor     .10000E-03    4.3519       -.10761E-06** at limit **
  18  Prefactor     20.031        19.304        .72572E-08    .13201E-05
  19  Prefactor     .10000E-03    4.1554       -.34361E-07** at limit **
  20  norm          11.911        9.3522        .56763E-09    .76490E-06
  21  norm          .10000E-03    1.4710       -.38622E-08** at limit **
  22  norm          3.5421        4.5755        .27552E-06   -.17728E-04
  23  Prefactor     8.9266        7.6351        .16824E-07    .78072E-05
  24  Prefactor     .10000E-03    127.40        .86029E-06** at limit **
  25  Prefactor     8.6821        17.313       -.32877E-08    .28136E-05
  26  norm          .10000E-03    .31957       -.24725E-07** at limit **
  27  Prefactor     3.2059        4.2241        .70356E-07    .24314E-05
  28  Prefactor     .10000E-03    8.8670       -.21214E-07** at limit **
  29  Normalizat    1.0204        .17219       -.23579E-07    .20836E-04
  30  Prefactor     .88741        .15792        .78790E-07    .24073E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4605
  Prefactor  = 0.0001
  Prefactor  = 4.72211
  norm       = 4.99509
  Prefactor  = 6.84349
  Prefactor  = 0.0001
  Prefactor  = 7.65274
  Prefactor  = 50.1429
  norm       = 0.0001
  Prefactor  = 0.905087
  Prefactor  = 10.3859
  Prefactor  = 1.52399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0309
  Prefactor  = 0.0001
  norm       = 11.9107
  norm       = 0.0001
  norm       = 3.54209
  Prefactor  = 8.92661
  Prefactor  = 0.0001
  Prefactor  = 8.68214
  norm       = 0.0001
  Prefactor  = 3.20587
  Prefactor  = 0.0001
  Normalizat = 1.02038
  Prefactor  = 0.887409
 **********
 **   18 **HESSE 
 **********

 FCN=   6156.988     FROM HESSE     STATUS=OK           592 CALLS     4485 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.460        11.814        .11836E-03   -1.5031    
   2  Prefactor     .10000E-03    15.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7221        4.9113        .83786E-03   -1.5273    
   4  norm          4.9951        4.2540        .14479E-03   -1.5261    
   5  Prefactor     6.8435        35.743        .15359E-03   -1.5185    
   6  Prefactor     .10000E-03    6.2786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.6527        4.2004        .56464E-03   -1.5155    
   8  Prefactor     50.143        79.278        .28334E-03   -1.4291    
   9  norm          .10000E-03    2.3864        .11833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .90509        2.1583        .17847E-02   -1.5518    
  11  Prefactor     10.386        24.953        .12425E-03   -1.5063    
  12  Prefactor     1.5240        3.0792        .19066E-03   -1.5461    
  13  Prefactor     .10000E-03    68.716        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7384        .14778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    49.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.4733        .31965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.031        19.305        .89494E-04   -1.4813    
  19  Prefactor     .10000E-03    4.1628        .15620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.911        9.3513        .11607E-03   -1.5018    
  21  norm          .10000E-03    1.4711        .92941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.5421        4.5710        .93091E-03   -1.5332    
  23  Prefactor     8.9266        7.6037        .13416E-03   -1.5110    
  24  Prefactor     .10000E-03    131.25        .42430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.6821        17.269        .13603E-03   -1.5119    
  26  norm          .10000E-03    .32825        .86359E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.2059        4.2105        .17802E-03   -1.5350    
  28  Prefactor     .10000E-03    8.8707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0204        .20219        .23246E-03   -.92351    
  30  Prefactor     .88741        .18661        .23254E-03   -.96582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.34109e-09
Minuit parameter uncertainties:
  1  11.8161
  2  3.21119e-06
  3  4.91171
  4  4.25428
  5  31.3089
  6  4.91047e-05
  7  4.2006
  8  79.4454
  9  1.23059e-06
  10  2.1585
  11  24.9778
  12  3.07956
  13  4.47283e-05
  14  4.85876e-06
  15  5.16642e-07
  16  1.45976e-05
  17  3.95481e-06
  18  19.3109
  19  1.61884e-06
  20  9.35245
  21  9.70955e-08
  22  4.57149
  23  7.60454
  24  0.000281292
  25  17.2786
  26  3.18375e-07
  27  4.21088
  28  1.13114e-06
  29  0.202341
  30  0.186744
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  8.874e-01  1.867e-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.020e+00  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.31
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 6.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386469/likelihoodResults_624758401_625017601_4FGL_J2235.3-4836_daily_bin1487.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) = 6156.98042781
delta logL = 0.00795038069555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6156.97846696
delta logL = 0.00991123213043

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7362       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3267       1.0000          .0000       10.000    
     3 'Normalizat'    1.0218       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88629       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=   6156.978     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      247 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7400        3.6752        .19873E-03   -.49965E-03
   2  Index         2.3269        1.2648        .15921E-01   -.58443E-04
   3  Normalizat    1.0218        .19494        .23232E-03    .13888E-03
   4  Prefactor     .88629        .18366        .23266E-03   -.17699E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.74
  Index      = 2.32686
  Normalizat = 1.02175
  Prefactor  = 0.886291
 **********
 **   18 **HESSE 
 **********

 FCN=   6156.978     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7400        3.5731        .79491E-05   -1.5444    
   2  Index         2.3269        1.2316        .63684E-03   -.56407    
   3  Normalizat    1.0218        .19515        .92928E-05   -.92305    
   4  Prefactor     .88629        .18383        .93064E-05   -.96622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.12518e-10
Minuit parameter uncertainties:
  1  3.57355
  2  1.24979
  3  0.195287
  4  0.183956
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386469': 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) = 6156.97846628
delta logL = 0.00991191456342

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.740e+00  3.574e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.327e+00  1.250e+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:  8.863e-01  1.840e-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.022e+00  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.31
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/386469/cmap_HighResolution_624758401_625017601_4FGL_J2235.3-4836_daily_bin1487.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2021-09-28 16:20:52.641692', job_id='386469', GAL2='0.89', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632871252.64', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='9.91e-03', ts2='0.33', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1487' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:20:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 386469: <4FGL_J2235.3-4836_daily_bin1487> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1487 338.841 -48.6015 624758401 625017601 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 :                                   848.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            916 sec.

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

