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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1219
RA = 338.841, Dec = -48.6015
tmin = 555292801, tmax = 555552001
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='384952', job_status='RUN', time_executed='2021-09-28 16:01:38.425985', time_epoch_executed='1632870098.43' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1219'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384952

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384952/ft1_4FGL_J2235.3-4836_daily_bin1219.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384952/ft2_4FGL_J2235.3-4836_daily_bin1219.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384952/ft1_4FGL_J2235.3-4836_daily_bin1219.fits outfile=/scratch/kocevski/384952/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1219.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=555292801.0 tmax=555552001.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.59
user 3.37
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384952/ft2_4FGL_J2235.3-4836_daily_bin1219.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/384952/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1219.fits evtable="EVENTS" outfile="/scratch/kocevski/384952/ft1_filtered_4FGL_J2235.3-4836_daily_bin1219.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.30
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384952/ft1_filtered_4FGL_J2235.3-4836_daily_bin1219.fits" evtable="EVENTS" scfile=/scratch/kocevski/384952/ft2_4FGL_J2235.3-4836_daily_bin1219.fits sctable="SC_DATA" outfile=/scratch/kocevski/384952/ltcube_555292801_555552001_4FGL_J2235.3-4836_daily_bin1219.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/384952/ft2_4FGL_J2235.3-4836_daily_bin1219.fits
.....................!
real 11.59
user 11.21
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384952/ft1_filtered_4FGL_J2235.3-4836_daily_bin1219.fits evtable="EVENTS" scfile=/scratch/kocevski/384952/ft2_4FGL_J2235.3-4836_daily_bin1219.fits sctable="SC_DATA" expcube=/scratch/kocevski/384952/ltcube_555292801_555552001_4FGL_J2235.3-4836_daily_bin1219.fits outfile=/scratch/kocevski/384952/expmap_555292801_555552001_4FGL_J2235.3-4836_daily_bin1219.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/384952/ltcube_555292801_555552001_4FGL_J2235.3-4836_daily_bin1219.fits
.....................!
real 191.64
user 185.30
sys 6.01

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/384952/ft1_filtered_4FGL_J2235.3-4836_daily_bin1219.fits scfile=/scratch/kocevski/384952/ft2_4FGL_J2235.3-4836_daily_bin1219.fits outfile=/scratch/kocevski/384952/cmap_555292801_555552001_4FGL_J2235.3-4836_daily_bin1219.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=338.841 yref=-48.6015 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384952/ft1_filtered_4FGL_J2235.3-4836_daily_bin1219.fits scfile=/scratch/kocevski/384952/ft2_4FGL_J2235.3-4836_daily_bin1219.fits outfile=/scratch/kocevski/384952/cmap_HighResolution_555292801_555552001_4FGL_J2235.3-4836_daily_bin1219.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384952/ft1_filtered_4FGL_J2235.3-4836_daily_bin1219.fits evtable="EVENTS" scfile=/scratch/kocevski/384952/ft2_4FGL_J2235.3-4836_daily_bin1219.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384952/Model_4FGL_J2235.3-4836_daily_bin1219.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/384952/ft1_filtered_4FGL_J2235.3-4836_daily_bin1219.fits..................!
real 15.20
user 13.97
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/384952/ft1_filtered_4FGL_J2235.3-4836_daily_bin1219.fits', '/scratch/kocevski/384952/ft2_4FGL_J2235.3-4836_daily_bin1219.fits', expMap='/scratch/kocevski/384952/expmap_555292801_555552001_4FGL_J2235.3-4836_daily_bin1219.fits', expCube='/scratch/kocevski/384952/ltcube_555292801_555552001_4FGL_J2235.3-4836_daily_bin1219.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/384952/Model_4FGL_J2235.3-4836_daily_bin1219.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/384952/ft1_filtered_4FGL_J2235.3-4836_daily_bin1219.fits
Spacecraft file(s): /scratch/kocevski/384952/ft2_4FGL_J2235.3-4836_daily_bin1219.fits
Exposure map: /scratch/kocevski/384952/expmap_555292801_555552001_4FGL_J2235.3-4836_daily_bin1219.fits
Exposure cube: /scratch/kocevski/384952/ltcube_555292801_555552001_4FGL_J2235.3-4836_daily_bin1219.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/384952/Model_4FGL_J2235.3-4836_daily_bin1219.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 245.132147683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 237.948139566

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5153       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3771       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21243       1.0000         .10000E-03   10000.    
     4 'norm      '    12.126       1.0000         .10000E-03   10000.    
     5 'Prefactor '    988.07       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .45351       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .30699E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8742       1.0000         .10000E-03   10000.    
     9 'norm      '    .62024E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20934E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    58.643       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .65119E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .93788E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1780.5       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .71874E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7003       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .83903       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10199E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .22734E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .34797E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .11154E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .93013E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .48460E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    513.96       1.0000         .10000E-03   10000.    
    26 'norm      '    .87134E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.5694       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.2724       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .54867       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .17872E-05   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   237.9351     FROM MIGRAD    STATUS=CONVERGED    390 CALLS     1251 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5309        119.59       -.37125E-04   -.33286E-04
   2  Prefactor     .10000E-03    6169.8        .34743E-05** at limit **
   3  Prefactor     .10001E-03    115.65       -.12631E-04** at limit **
   4  norm          12.187        14.236        .25828E-05    .10200E-03
   5  Prefactor     1013.3        612.13       -.10249E-04    .15193E-04
   6  Prefactor     .10003E-03    258.02       -.10241E-04** at limit **
   7  Prefactor     .10000E-03    160.33        .42872E-06** at limit **
   8  Prefactor     .10000E-03    1552.1        .11918E-04** at limit **
   9  norm          .10000E-03    342.69       -.19108E-04** at limit **
  10  Prefactor     .10000E-03    51.673        .12445E-05** at limit **
  11  Prefactor     65.000        142.51       -.17946E-04    .63120E-04
  12  Prefactor     .10000E-03    29.862       -.42595E-06** at limit **
  13  Prefactor     .10000E-03    47.538       -.44645E-06** at limit **
  14  Prefactor     1619.7        1602.8       -.22394E-04   -.43116E-05
  15  Prefactor     .10000E-03    229.49       -.19127E-05** at limit **
  16  Prefactor     .10000E-03    6317.7       -.15866E-04** at limit **
  17  Prefactor     .10000E-03    16.197        .24706E-06** at limit **
  18  Prefactor     .10000E-03    420.97        .44405E-06** at limit **
  19  Prefactor     .10000E-03    471.55        .63395E-05** at limit **
  20  norm          .10000E-03    44.582        .52474E-07** at limit **
  21  norm          .10000E-03    256.05       -.61858E-06** at limit **
  22  norm          .10000E-03    23.070       -.94770E-06** at limit **
  23  Prefactor     .10000E-03    123.85        .15153E-05** at limit **
  24  Prefactor     .10000E-03    242.51       -.20829E-04** at limit **
  25  Prefactor     535.51        493.40        .71606E-05    .90834E-05
  26  norm          .10000E-03    29.880       -.51606E-06** at limit **
  27  Prefactor     1.5694        1.0628         .0000         .0000    
  28  Prefactor     .10000E-03    7159.7        .15541E-04** at limit **
  29  Normalizat    .53819        .31950        .52689E-04    .13386E-03
  30  Prefactor     .29086E-09    2.0583        .53685E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.53093
  Prefactor  = 0.000100002
  Prefactor  = 0.000100009
  norm       = 12.1867
  Prefactor  = 1013.35
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.9999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1619.68
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 535.507
  norm       = 0.0001
  Prefactor  = 1.5694
  Prefactor  = 0.000100001
  Normalizat = 0.538186
  Prefactor  = 2.90864e-10
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   237.9351     FROM HESSE     STATUS=FAILED       113 CALLS     1364 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5309        92.348        .32479E-02   -1.5124    
   2  Prefactor     .10000E-03    6168.1        .55047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    116.92        .10034E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.187        13.712        .28760E-02   -1.5010    
   5  Prefactor     1013.3        552.26        .33512E-03   -.92286    
   6  Prefactor     .10003E-03    266.04        .11079E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    160.48        .10690E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1552.0        .41423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    348.30        .93286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    50.630        .10094E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     65.000        131.71        .13097E-02   -1.4094    
  12  Prefactor     .10000E-03    29.934        .94072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    47.760        .90965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1619.7        1586.0        .26140E-03   -.74241    
  15  Prefactor     .10000E-03    229.10        .93284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6315.4        .80651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.143        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    423.01        .12585E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    470.91        .10375E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    44.480        .10055E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    257.72        .98309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    23.127        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    125.44        .91042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    242.84        .96226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     535.51        484.78        .45289E-03   -1.1037    
  26  norm          .10000E-03    29.789        .91635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     576.50        574.75         .0000       -1.5457    
  28  Prefactor     .10000E-03    .24287        .15541E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .53819        .87534        .52689E-04   -1.1068    
  30  Prefactor     .29086E-09    .25679        .53685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.95783e-10
Minuit parameter uncertainties:
  1  56.2467
  2  0.00445688
  3  0.00200902
  4  13.7153
  5  555.394
  6  0.00549511
  7  9.17675e-06
  8  0.00107051
  9  0.000626967
  10  5.24384e-05
  11  132.304
  12  1.65227e-06
  13  8.63423e-06
  14  1639.62
  15  1.84186e-05
  16  0.000191749
  17  1.86871e-06
  18  3.90266e-05
  19  0.00011935
  20  2.92861e-06
  21  0.000100019
  22  8.72711e-07
  23  7.74083e-05
  24  0.000404966
  25  488.606
  26  2.58086e-06
  27  1.06278
  28  2.37139e-05
  29  0.899404
  30  1.73597e-05
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 237.935103165

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  1.652e-06  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:  2.909e-10  1.736e-05  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:  5.382e-01  8.994e-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.09e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.47e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384952/likelihoodResults_555292801_555552001_4FGL_J2235.3-4836_daily_bin1219.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) = 237.935257987
delta logL = -0.000154822463287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 237.935105582
delta logL = -2.41704196924e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.6525       1.0000          .0000       10.000    
     3 'Normalizat'    .53819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .18014E-05   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=   237.9351     FROM MIGRAD    STATUS=CONVERGED    122 CALLS      323 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1685.7        .56263E-02** at limit **
   2  Index         1.6422        5.7937        .50000        .29575E-07
   3  Normalizat    .53816        .89414E-01    .18885E-03   -.47726E-03
   4  Prefactor     .33162E-10    .22312        .83202E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.64225
  Normalizat = 0.538164
  Prefactor  = 3.31618e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   237.9351     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      352 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7856.5        .93651E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6422        6.3526        .50000       -.73630    
   3  Normalizat    .53816        .21876        .37770E-04   -1.1068    
   4  Prefactor     .33162E-10    1.2981        .16640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.20008e-09
Minuit parameter uncertainties:
  1  0.0029917
  2  4816.28
  3  0.219114
  4  1.34237e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384952': 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) = 237.935102794
delta logL = 3.70788200144e-07

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  2.992e-03  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  1.642e+00  4.816e+03  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:  3.316e-11  1.342e-05  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:  5.382e-01  2.191e-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/384952/cmap_HighResolution_555292801_555552001_4FGL_J2235.3-4836_daily_bin1219.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.47e-02', job_status='DONE', photon_flux_upper_limit='1.09e-06', time_completed='2021-09-28 16:07:08.853414', job_id='384952', GAL2='0.00', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1632870428.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='3.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1219' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:07:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 384952: <4FGL_J2235.3-4836_daily_bin1219> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1219 338.841 -48.6015 555292801 555552001 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 :                                   330.00 sec.
    Max Memory :                                 1166 MB
    Average Memory :                             472.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   401 sec.
    Turnaround time :                            403 sec.

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

