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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1210
RA = 338.841, Dec = -48.6015
tmin = 552960001, tmax = 553219201
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='384939', job_status='RUN', time_executed='2021-09-28 16:04:33.747135', time_epoch_executed='1632870273.75' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1210'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384939

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384939/ft1_4FGL_J2235.3-4836_daily_bin1210.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384939/ft2_4FGL_J2235.3-4836_daily_bin1210.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384939/ft1_4FGL_J2235.3-4836_daily_bin1210.fits outfile=/scratch/kocevski/384939/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1210.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=552960001.0 tmax=553219201.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 2.81
user 2.60
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384939/ft1_filtered_4FGL_J2235.3-4836_daily_bin1210.fits" evtable="EVENTS" scfile=/scratch/kocevski/384939/ft2_4FGL_J2235.3-4836_daily_bin1210.fits sctable="SC_DATA" outfile=/scratch/kocevski/384939/ltcube_552960001_553219201_4FGL_J2235.3-4836_daily_bin1210.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/384939/ft2_4FGL_J2235.3-4836_daily_bin1210.fits
.....................!
real 12.52
user 12.18
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384939/ft1_filtered_4FGL_J2235.3-4836_daily_bin1210.fits evtable="EVENTS" scfile=/scratch/kocevski/384939/ft2_4FGL_J2235.3-4836_daily_bin1210.fits sctable="SC_DATA" expcube=/scratch/kocevski/384939/ltcube_552960001_553219201_4FGL_J2235.3-4836_daily_bin1210.fits outfile=/scratch/kocevski/384939/expmap_552960001_553219201_4FGL_J2235.3-4836_daily_bin1210.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/384939/ltcube_552960001_553219201_4FGL_J2235.3-4836_daily_bin1210.fits
.....................!
real 190.06
user 185.37
sys 4.37

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/384939/ft1_filtered_4FGL_J2235.3-4836_daily_bin1210.fits scfile=/scratch/kocevski/384939/ft2_4FGL_J2235.3-4836_daily_bin1210.fits outfile=/scratch/kocevski/384939/cmap_552960001_553219201_4FGL_J2235.3-4836_daily_bin1210.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384939/ft1_filtered_4FGL_J2235.3-4836_daily_bin1210.fits scfile=/scratch/kocevski/384939/ft2_4FGL_J2235.3-4836_daily_bin1210.fits outfile=/scratch/kocevski/384939/cmap_HighResolution_552960001_553219201_4FGL_J2235.3-4836_daily_bin1210.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384939/ft1_filtered_4FGL_J2235.3-4836_daily_bin1210.fits evtable="EVENTS" scfile=/scratch/kocevski/384939/ft2_4FGL_J2235.3-4836_daily_bin1210.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384939/Model_4FGL_J2235.3-4836_daily_bin1210.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/384939/ft1_filtered_4FGL_J2235.3-4836_daily_bin1210.fits......................!
real 32.57
user 31.37
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.020       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.775       1.0000         .10000E-03   10000.    
     4 'norm      '    5.3507       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9338       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .85265E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.8025       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.260       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12205E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.596       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14283E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.794       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.3929       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.1596       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.0217       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.1066       1.0000         .10000E-03   10000.    
    26 'norm      '    .61313       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0802       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91921       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=   3785.921     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3850 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.438        .12062E-06** at limit **
   2  Prefactor     29.789        111.31        .55097E-04    .74411E-04
   3  Prefactor     27.769        24.780       -.34725E-05   -.89956E-04
   4  norm          5.3505        10.810        .22866E-06    .91768E-06
   5  Prefactor     .10000E-03    49.904       -.29729E-05** at limit **
   6  Prefactor     .10000E-03    14.359       -.21062E-06** at limit **
   7  Prefactor     4.9333        5.9955       -.17332E-05   -.31719E-03
   8  Prefactor     .10002E-03    744.10        .50408E-04** at limit **
   9  norm          6.7991        11.093        .79028E-07   -.38818E-04
  10  Prefactor     15.259        7.9870        .28798E-06    .15092E-03
  11  Prefactor     .10000E-03    67.171       -.13249E-05** at limit **
  12  Prefactor     .10000E-03    1.9668       -.17476E-07** at limit **
  13  Prefactor     .10000E-03    26.083       -.13930E-05** at limit **
  14  Prefactor     .10000E-03    14.608       -.22833E-06** at limit **
  15  Prefactor     10.599        15.369        .36634E-06   -.32866E-04
  16  Prefactor     .10000E-03    38.212        .12053E-05** at limit **
  17  Prefactor     .10006E-03    8.4478       -.25721E-05** at limit **
  18  Prefactor     .10000E-03    14.633       -.24508E-06** at limit **
  19  Prefactor     .10000E-03    5.6102        .25989E-07** at limit **
  20  norm          15.794        12.748       -.15128E-06    .15996E-04
  21  norm          .10000E-03    5.5711       -.10376E-05** at limit **
  22  norm          4.3938        4.4057        .20898E-06    .58518E-04
  23  Prefactor     6.1602        6.0506       -.28949E-05    .83724E-04
  24  Prefactor     8.0570        45.775       -.84899E-05   -.40835E-04
  25  Prefactor     1.1077        37.356        .40456E-04   -.11859E-03
  26  norm          .61323        .92823        .35602E-06    .12300E-02
  27  Prefactor     .10000E-03    1.5878       -.13737E-07** at limit **
  28  Prefactor     .10000E-03    12.935        .97641E-07** at limit **
  29  Normalizat    1.0803        .24179       -.24798E-05    .95982E-04
  30  Prefactor     .91914        .22732       -.89515E-07   -.23776E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 29.7893
  Prefactor  = 27.769
  norm       = 5.35054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.93328
  Prefactor  = 0.000100017
  norm       = 6.79907
  Prefactor  = 15.2594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5986
  Prefactor  = 0.0001
  Prefactor  = 0.000100058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.7944
  norm       = 0.000100001
  norm       = 4.39376
  Prefactor  = 6.16019
  Prefactor  = 8.057
  Prefactor  = 1.10766
  norm       = 0.613229
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08029
  Prefactor  = 0.919137
 **********
 **   18 **HESSE 
 **********

 FCN=   3785.921     FROM HESSE     STATUS=OK           590 CALLS     4440 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.789        111.42        .36563E-03   -1.4616    
   3  Prefactor     27.769        24.771        .76016E-04   -1.4654    
   4  norm          5.3505        10.815        .17374E-03   -1.5245    
   5  Prefactor     .10000E-03    49.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.9333        5.9933        .15858E-03   -1.5264    
   8  Prefactor     .10002E-03    749.22        .20864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.7991        11.104        .15384E-03   -1.5186    
  10  Prefactor     15.259        8.0124        .10253E-03   -1.4927    
  11  Prefactor     .10000E-03    67.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.9685        .84270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.599        15.357        .12309E-03   -1.5057    
  16  Prefactor     .10000E-03    38.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10006E-03    30.985        .33952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.6296        .14232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.794        12.751        .50390E-03   -1.4913    
  21  norm          .10000E-03    5.6251        .14161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.3938        4.4091        .12542E-03   -1.5289    
  23  Prefactor     6.1602        6.1236        .12898E-03   -1.5212    
  24  Prefactor     8.0570        45.938        .14156E-03   -1.5140    
  25  Prefactor     1.1077        38.554        .22502E-02   -1.5497    
  26  norm          .61323        .88117        .68719E-03   -1.5551    
  27  Prefactor     .10000E-03    1.5964        .75698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    12.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0803        .29202        .24725E-03   -.90387    
  30  Prefactor     .91914        .27508        .25743E-03   -.95476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93435e-09
Minuit parameter uncertainties:
  1  3.3055e-05
  2  112.213
  3  24.7806
  4  10.8189
  5  0.000153046
  6  5.87546e-05
  7  5.994
  8  0.00716809
  9  11.1078
  10  8.01298
  11  6.14241e-05
  12  7.82637e-07
  13  3.45006e-05
  14  1.01316e-05
  15  15.363
  16  5.8752e-05
  17  0.00269126
  18  9.35556e-06
  19  1.84507e-05
  20  12.7529
  21  0.000115782
  22  4.40942
  23  6.12424
  24  38.522
  25  13.0783
  26  0.881188
  27  5.68718e-06
  28  2.47958e-05
  29  0.292456
  30  0.275494
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  7.826e-07  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:  9.191e-01  2.755e-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.080e+00  2.925e-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: 6.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384939/likelihoodResults_552960001_553219201_4FGL_J2235.3-4836_daily_bin1210.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) = 3785.92372943
delta logL = -0.00228833940992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3785.9214409
delta logL = 1.84147211257e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4980       1.0000          .0000       10.000    
     3 'Normalizat'    1.0803       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91913       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=   3785.921     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      246 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.420        .84900E-02** at limit **
   2  Index         2.0147        5.5295        .50000        .83537E-07
   3  Normalizat    1.0803        .19101E-01    .24725E-03   -.17294E-03
   4  Prefactor     .91914        .18602E-01    .25743E-03   -.16213E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01471
  Normalizat = 1.08029
  Prefactor  = 0.919139
 **********
 **   18 **HESSE 
 **********

 FCN=   3785.921     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    201.63        .91081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0147        8.8238        .50000       -.63983    
   3  Normalizat    1.0803        .59852E-01    .49450E-04   -.90387    
   4  Prefactor     .91914        .58286E-01    .51486E-04   -.95476    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.35297e-10
Minuit parameter uncertainties:
  1  1.55425e-06
  2  871.714
  3  0.0598557
  4  0.0582904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384939': 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) = 3785.92143744
delta logL = 3.64502056982e-06

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  1.554e-06  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.015e+00  8.717e+02  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:  9.191e-01  5.829e-02  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.080e+00  5.986e-02  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/384939/cmap_HighResolution_552960001_553219201_4FGL_J2235.3-4836_daily_bin1210.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.37e-03', job_status='DONE', photon_flux_upper_limit='6.90e-08', time_completed='2021-09-28 16:14:57.669337', job_id='384939', GAL2='0.92', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632870897.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.65e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1210' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:14:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 384939: <4FGL_J2235.3-4836_daily_bin1210> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1210 338.841 -48.6015 552960001 553219201 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 :                                   624.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             243.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            873 sec.

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

