/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 114 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 = 7169
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2235.3-4836_daily_bin260
RA = 338.841, Dec = -48.6015
tmin = 306720001, tmax = 306979201
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='380370', job_status='RUN', time_executed='2021-09-28 15:47:45.872858', time_epoch_executed='1632869265.87' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='260'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380370

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380370/ft1_4FGL_J2235.3-4836_daily_bin260.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380370/ft2_4FGL_J2235.3-4836_daily_bin260.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380370/ft1_4FGL_J2235.3-4836_daily_bin260.fits outfile=/scratch/kocevski/380370/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin260.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=306720001.0 tmax=306979201.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 5.06
user 4.70
sys 0.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380370/ft1_filtered_4FGL_J2235.3-4836_daily_bin260.fits" evtable="EVENTS" scfile=/scratch/kocevski/380370/ft2_4FGL_J2235.3-4836_daily_bin260.fits sctable="SC_DATA" outfile=/scratch/kocevski/380370/ltcube_306720001_306979201_4FGL_J2235.3-4836_daily_bin260.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/380370/ft2_4FGL_J2235.3-4836_daily_bin260.fits
.....................!
real 11.56
user 11.19
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380370/ft1_filtered_4FGL_J2235.3-4836_daily_bin260.fits evtable="EVENTS" scfile=/scratch/kocevski/380370/ft2_4FGL_J2235.3-4836_daily_bin260.fits sctable="SC_DATA" expcube=/scratch/kocevski/380370/ltcube_306720001_306979201_4FGL_J2235.3-4836_daily_bin260.fits outfile=/scratch/kocevski/380370/expmap_306720001_306979201_4FGL_J2235.3-4836_daily_bin260.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/380370/ltcube_306720001_306979201_4FGL_J2235.3-4836_daily_bin260.fits
.....................!
real 190.61
user 184.98
sys 5.24

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/380370/ft1_filtered_4FGL_J2235.3-4836_daily_bin260.fits scfile=/scratch/kocevski/380370/ft2_4FGL_J2235.3-4836_daily_bin260.fits outfile=/scratch/kocevski/380370/cmap_306720001_306979201_4FGL_J2235.3-4836_daily_bin260.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.542       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4411       1.0000         .10000E-03   10000.    
     4 'norm      '    7.3390       1.0000         .10000E-03   10000.    
     5 'Prefactor '    72.665       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.976       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11486E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    59.927       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.346       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    22.661       1.0000         .10000E-03   10000.    
    21 'norm      '    10.699       1.0000         .10000E-03   10000.    
    22 'norm      '    2.0832       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.0435       1.0000         .10000E-03   10000.    
    24 'Prefactor '    38.246       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .68127E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    23.789       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    47.323       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .87368       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1154       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=   4588.897     FROM MIGRAD    STATUS=CONVERGED    789 CALLS     4475 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.537        16.133        .78256E-07    .10755E-04
   2  Prefactor     .10000E-03    35.631       -.28825E-06** at limit **
   3  Prefactor     9.4412        6.6637        .86193E-07    .45125E-04
   4  norm          7.3391        6.0771       -.46953E-07    .53466E-05
   5  Prefactor     72.672        52.173        .49695E-07    .13091E-04
   6  Prefactor     11.973        12.932        .37684E-06    .83956E-04
   7  Prefactor     .10000E-03    2.5249       -.24926E-07** at limit **
   8  Prefactor     .10000E-03    64.239       -.17434E-05** at limit **
   9  norm          .10000E-03    4.7049        .10896E-07** at limit **
  10  Prefactor     .10000E-03    2.1266       -.33572E-07** at limit **
  11  Prefactor     .10000E-03    77.236        .85138E-06** at limit **
  12  Prefactor     .10000E-03    5.1343        .39938E-06** at limit **
  13  Prefactor     59.926        33.587       -.35543E-07   -.31136E-04
  14  Prefactor     12.352        30.631       -.24490E-06   -.13789E-04
  15  Prefactor     .10000E-03    3.9722        .13467E-06** at limit **
  16  Prefactor     .10000E-03    49.205        .89746E-06** at limit **
  17  Prefactor     .10000E-03    11.359       -.11512E-06** at limit **
  18  Prefactor     .10000E-03    18.278        .73328E-07** at limit **
  19  Prefactor     .10000E-03    9.8874        .65042E-07** at limit **
  20  norm          22.665        18.577       -.18599E-06   -.48329E-04
  21  norm          10.699        12.065        .82275E-07   -.45708E-04
  22  norm          2.0843        6.9849        .18291E-05    .73581E-03
  23  Prefactor     5.0487        9.0747       -.20323E-05   -.31131E-03
  24  Prefactor     38.178        59.649       -.16351E-05   -.16365E-04
  25  Prefactor     .13147E-03    55.028       -.62568E-05** at limit **
  26  norm          23.790        3.8740       -.16161E-06   -.11359E-02
  27  Prefactor     .10000E-03    3.0729        .18334E-06** at limit **
  28  Prefactor     47.371        46.470       -.81900E-06   -.44949E-04
  29  Normalizat    .87359        .24226       -.69170E-06   -.93055E-04
  30  Prefactor     1.1155        .21239        .74188E-07   -.13523E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.5371
  Prefactor  = 0.0001
  Prefactor  = 9.44118
  norm       = 7.33907
  Prefactor  = 72.6724
  Prefactor  = 11.9733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.9256
  Prefactor  = 12.352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.6654
  norm       = 10.6989
  norm       = 2.0843
  Prefactor  = 5.04871
  Prefactor  = 38.1779
  Prefactor  = 0.000131467
  norm       = 23.7896
  Prefactor  = 0.0001
  Prefactor  = 47.3706
  Normalizat = 0.873594
  Prefactor  = 1.1155
 **********
 **   18 **HESSE 
 **********

 FCN=   4588.897     FROM HESSE     STATUS=OK           586 CALLS     5061 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.537        16.130        .86299E-04   -1.4779    
   2  Prefactor     .10000E-03    35.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.4412        6.6762        .13043E-03   -1.5093    
   4  norm          7.3391        6.0707        .14672E-03   -1.5166    
   5  Prefactor     72.672        52.151        .47097E-04   -1.4001    
   6  Prefactor     11.973        12.910        .11576E-03   -1.5016    
   7  Prefactor     .10000E-03    2.5627        .10506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    63.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.7373        .14350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1457        .96427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    76.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.1712        .14964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     59.926        33.643        .51829E-04   -1.4158    
  14  Prefactor     12.352        30.726        .11401E-03   -1.5005    
  15  Prefactor     .10000E-03    3.9746        .13183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    48.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.9003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          22.665        18.590        .84144E-04   -1.4755    
  21  norm          10.699        12.069        .12249E-03   -1.5054    
  22  norm          2.0843        7.0776        .14304E-02   -1.5419    
  23  Prefactor     5.0487        9.6673        .17905E-03   -1.5259    
  24  Prefactor     38.178        59.802        .64810E-04   -1.4471    
  25  Prefactor     .13147E-03    40.649        .90786E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          23.790        3.9389        .49467E-04   -1.4732    
  27  Prefactor     .10000E-03    3.0817        .11598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     47.371        46.440        .58288E-04   -1.4330    
  29  Normalizat    .87359        .29088        .30582E-03   -.97394    
  30  Prefactor     1.1155        .25618        .24918E-03   -.88973    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78226e-09
Minuit parameter uncertainties:
  1  16.1335
  2  2.35104e-05
  3  6.6767
  4  6.07119
  5  52.1834
  6  12.913
  7  2.23398e-07
  8  6.80023e-06
  9  9.19863e-07
  10  3.94737e-07
  11  8.90014e-05
  12  3.42725e-05
  13  33.6535
  14  30.7654
  15  9.88674e-06
  16  2.70308e-05
  17  1.4546e-06
  18  1.49056e-05
  19  2.0398e-05
  20  18.5946
  21  12.0717
  22  7.08045
  23  9.67029
  24  59.8957
  25  0.0715776
  26  3.93897
  27  1.4944e-05
  28  46.4755
  29  0.291402
  30  0.256463
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.115e+00  2.565e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  8.736e-01  2.914e-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.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/380370/likelihoodResults_306720001_306979201_4FGL_J2235.3-4836_daily_bin260.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) = 4588.89754984
delta logL = -0.00092056901758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4588.89662945
delta logL = -1.75832610694e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5291       1.0000          .0000       10.000    
     3 'Normalizat'    .87349       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1156       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=   4588.895     FROM MIGRAD    STATUS=CONVERGED    174 CALLS      331 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48214E-01    3.4560        .29153E-01   -.47271E-03
   2  Index         4.2624        3.3601        .50000       -.13636E-04
   3  Normalizat    .86891        .14189E-01    .30581E-03   -.55139E-03
   4  Prefactor     1.1181        .12976E-01    .24918E-03   -.57850E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0482144
  Index      = 4.26239
  Normalizat = 0.868911
  Prefactor  = 1.11807
 **********
 **   18 **HESSE 
 **********

 FCN=   4588.895     FROM HESSE     STATUS=OK            31 CALLS      362 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48214E-01    6.2575        .10098E-02   -1.5752    
   2  Index         4.2624        7.0895        .20287E-01   -.14806    
   3  Normalizat    .86891        .28729        .61163E-04   -.97561    
   4  Prefactor     1.1181        .25513        .49836E-04   -.88891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95364e-08
Minuit parameter uncertainties:
  1  1.09752
  2  7.94036
  3  0.2878
  4  0.255411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380370': 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) = 4588.89548923
delta logL = 0.00114003439103

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.118e+00  2.554e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  8.689e-01  2.878e-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/380370/cmap_HighResolution_306720001_306979201_4FGL_J2235.3-4836_daily_bin260.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.87e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-28 16:00:33.029213', job_id='380370', GAL2='1.12', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632870033.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.14e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='260' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:00:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 380370: <4FGL_J2235.3-4836_daily_bin260> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin260> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:45:41 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:45:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 15:45:42 2021
Terminated at Tue Sep 28 16:00:33 2021
Results reported at Tue Sep 28 16:00:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin260 338.841 -48.6015 306720001 306979201 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 :                                   764.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            892 sec.

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

