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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1334
RA = 338.841, Dec = -48.6015
tmin = 585100801, tmax = 585360001
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='386222', job_status='RUN', time_executed='2021-09-28 16:06:45.703146', time_epoch_executed='1632870405.7' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386222

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386222/ft1_4FGL_J2235.3-4836_daily_bin1334.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386222/ft2_4FGL_J2235.3-4836_daily_bin1334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386222/ft1_4FGL_J2235.3-4836_daily_bin1334.fits outfile=/scratch/kocevski/386222/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1334.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=585100801.0 tmax=585360001.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.06
user 2.80
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386222/ft2_4FGL_J2235.3-4836_daily_bin1334.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/386222/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1334.fits evtable="EVENTS" outfile="/scratch/kocevski/386222/ft1_filtered_4FGL_J2235.3-4836_daily_bin1334.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.75
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386222/ft1_filtered_4FGL_J2235.3-4836_daily_bin1334.fits" evtable="EVENTS" scfile=/scratch/kocevski/386222/ft2_4FGL_J2235.3-4836_daily_bin1334.fits sctable="SC_DATA" outfile=/scratch/kocevski/386222/ltcube_585100801_585360001_4FGL_J2235.3-4836_daily_bin1334.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/386222/ft2_4FGL_J2235.3-4836_daily_bin1334.fits
.....................!
real 12.49
user 12.11
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386222/ft1_filtered_4FGL_J2235.3-4836_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/386222/ft2_4FGL_J2235.3-4836_daily_bin1334.fits sctable="SC_DATA" expcube=/scratch/kocevski/386222/ltcube_585100801_585360001_4FGL_J2235.3-4836_daily_bin1334.fits outfile=/scratch/kocevski/386222/expmap_585100801_585360001_4FGL_J2235.3-4836_daily_bin1334.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/386222/ltcube_585100801_585360001_4FGL_J2235.3-4836_daily_bin1334.fits
.....................!
real 190.60
user 185.72
sys 4.43

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/386222/ft1_filtered_4FGL_J2235.3-4836_daily_bin1334.fits scfile=/scratch/kocevski/386222/ft2_4FGL_J2235.3-4836_daily_bin1334.fits outfile=/scratch/kocevski/386222/cmap_585100801_585360001_4FGL_J2235.3-4836_daily_bin1334.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/386222/ft1_filtered_4FGL_J2235.3-4836_daily_bin1334.fits scfile=/scratch/kocevski/386222/ft2_4FGL_J2235.3-4836_daily_bin1334.fits outfile=/scratch/kocevski/386222/cmap_HighResolution_585100801_585360001_4FGL_J2235.3-4836_daily_bin1334.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.446       1.0000         .10000E-03   10000.    
     2 'Prefactor '    102.21       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.8877       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9074       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12405E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5143       1.0000         .10000E-03   10000.    
    11 'Prefactor '    78.006       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3903       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-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 '    17.605       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.169       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.520       1.0000         .10000E-03   10000.    
    20 'norm      '    5.9219       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1614       1.0000         .10000E-03   10000.    
    24 'Prefactor '    44.657       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.1040       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    75.507       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .72887       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0171       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=   3683.064     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     4443 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.445        42.718        .30705E-06   -.16766E-04
   2  Prefactor     102.21        75.035       -.14906E-05   -.64261E-05
   3  Prefactor     .10000E-03    5.5776       -.39552E-07** at limit **
   4  norm          6.8879        10.305       -.45689E-06   -.15406E-04
   5  Prefactor     .10000E-03    48.157        .27193E-04** at limit **
   6  Prefactor     .10000E-03    5.1573        .15453E-06** at limit **
   7  Prefactor     3.9071        5.5283        .26713E-06   -.62822E-03
   8  Prefactor     .10000E-03    871.30       -.34707E-04** at limit **
   9  norm          .10000E-03    4.0130        .40306E-07** at limit **
  10  Prefactor     3.5138        5.5431        .29361E-05   -.15772E-05
  11  Prefactor     78.009        73.868        .11210E-06   -.10563E-04
  12  Prefactor     4.3898        6.3479       -.44989E-06   -.71150E-04
  13  Prefactor     .10000E-03    18.014       -.14584E-06** at limit **
  14  Prefactor     .10000E-03    64.629        .53768E-05** at limit **
  15  Prefactor     .10000E-03    8.1164        .64098E-08** at limit **
  16  Prefactor     .10000E-03    49.634       -.31864E-04** at limit **
  17  Prefactor     17.605        13.414       -.15053E-05   -.45144E-04
  18  Prefactor     26.164        38.590        .86434E-05    .76613E-05
  19  Prefactor     21.519        18.605        .47649E-06   -.16568E-05
  20  norm          5.9219        8.8480        .36301E-07   -.11972E-03
  21  norm          .10000E-03    4.3160       -.11008E-06** at limit **
  22  norm          .10000E-03    2.9634        .55532E-07** at limit **
  23  Prefactor     1.1615        1.8836        .29953E-06   -.18353E-02
  24  Prefactor     44.652        47.913        .38888E-05    .36175E-06
  25  Prefactor     .10000E-03    12.716       -.32352E-06** at limit **
  26  norm          2.1040        1.3309       -.13309E-06   -.53616E-04
  27  Prefactor     .10000E-03    2.1994        .55000E-07** at limit **
  28  Prefactor     75.505        39.689        .16975E-05    .37956E-05
  29  Normalizat    .72890        .23094       -.16168E-05   -.21480E-04
  30  Prefactor     1.0170        .20934       -.18511E-06   -.57933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.4452
  Prefactor  = 102.205
  Prefactor  = 0.0001
  norm       = 6.88794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.90708
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 3.51376
  Prefactor  = 78.0089
  Prefactor  = 4.38982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6051
  Prefactor  = 26.164
  Prefactor  = 21.5191
  norm       = 5.92192
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.16149
  Prefactor  = 44.652
  Prefactor  = 0.0001
  norm       = 2.10396
  Prefactor  = 0.0001
  Prefactor  = 75.5052
  Normalizat = 0.728898
  Prefactor  = 1.01701
 **********
 **   18 **HESSE 
 **********

 FCN=   3683.064     FROM HESSE     STATUS=OK           582 CALLS     5025 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.445        42.717        .54360E-04   -1.4231    
   2  Prefactor     102.21        75.032        .39769E-04   -1.3683    
   3  Prefactor     .10000E-03    5.5999        .13995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.8879        10.320        .15287E-03   -1.5183    
   5  Prefactor     .10000E-03    48.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.1647        .13459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.9071        5.6117        .81666E-03   -1.5313    
   8  Prefactor     .10000E-03    885.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.0151        .11873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5138        5.5344        .16720E-03   -1.5333    
  11  Prefactor     78.009        73.798        .45468E-04   -1.3939    
  12  Prefactor     4.3898        6.3393        .17580E-03   -1.5289    
  13  Prefactor     .10000E-03    18.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    65.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.1563        .16881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    49.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.605        13.457        .95456E-04   -1.4869    
  18  Prefactor     26.164        38.618        .78310E-04   -1.4685    
  19  Prefactor     21.519        18.710        .86343E-04   -1.4780    
  20  norm          5.9219        8.8410        .82508E-03   -1.5221    
  21  norm          .10000E-03    4.3515        .12310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.9646        .10201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1615        9.5301        .17047E-02   -1.5492    
  24  Prefactor     44.652        48.063        .59995E-04   -1.4371    
  25  Prefactor     .10000E-03    12.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.1040        1.3461        .50810E-04   -1.5418    
  27  Prefactor     .10000E-03    2.2193        .87840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     75.505        39.752        .46208E-04   -1.3968    
  29  Normalizat    .72890        .27197        .27844E-03   -1.0276    
  30  Prefactor     1.0170        .24498        .22910E-03   -.92165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28844e-08
Minuit parameter uncertainties:
  1  42.7412
  2  75.1017
  3  5.62132e-06
  4  10.3224
  5  9.05545e-05
  6  1.2428e-06
  7  5.61241
  8  0.00160364
  9  9.77791e-07
  10  5.53522
  11  73.885
  12  6.34025
  13  6.05724e-06
  14  6.52467e-05
  15  5.92923e-07
  16  0.000152193
  17  13.4591
  18  38.6549
  19  18.7146
  20  8.84295
  21  1.61198e-06
  22  5.59877e-06
  23  6.6552
  24  48.1049
  25  3.51657e-06
  26  1.3461
  27  3.08747e-06
  28  39.7657
  29  0.272477
  30  0.245245
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  4.390e+00  6.340e+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:  1.017e+00  2.452e-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:  7.289e-01  2.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.73
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 1.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386222/likelihoodResults_585100801_585360001_4FGL_J2235.3-4836_daily_bin1334.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) = 3682.87803751
delta logL = 0.185911146504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3682.84551624
delta logL = 0.218432415546

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1912       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9229       1.0000          .0000       10.000    
     3 'Normalizat'    .74206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0049       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=   3682.846     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 34.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1905        6.7468       -.29955E-05    .14330E-02
   2  Index         1.9229        .54585        .11438E-04    .40023E-03
   3  Normalizat    .74201        .21310       -.50834E-06   -.62684E-04
   4  Prefactor     1.0049        .20544        .70017E-06   -.13768E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.19046
  Index      = 1.92291
  Normalizat = 0.74201
  Prefactor  = 1.00491
 **********
 **   18 **HESSE 
 **********

 FCN=   3682.846     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1905        7.5843        .16134E-03   -1.5210    
   2  Index         1.9229        .74131        .87867E-02   -.66292    
   3  Normalizat    .74201        .24712        .27605E-03   -1.0226    
   4  Prefactor     1.0049        .23844        .23018E-03   -.92566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97456e-09
Minuit parameter uncertainties:
  1  7.58546
  2  0.745749
  3  0.247488
  4  0.238686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386222': 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) = 3682.84551621
delta logL = 0.218432447919

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  6.190e+00  7.585e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  1.923e+00  7.457e-01  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.005e+00  2.387e-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:  7.420e-01  2.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 1.92 +/- 0.75
Photon Flux (Free Index): 2.19e-08 +/- 3.00e-08
Energy Flux (Free Index): 1.85e-05 +/- 3.42e-05

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/386222/cmap_HighResolution_585100801_585360001_4FGL_J2235.3-4836_daily_bin1334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', energy_flux2='1.85e-05', dlogl='2.18e-01', photon_flux2='2.19e-08', job_status='DONE', time_completed='2021-09-28 16:17:35.469606', photon_index_error2='0.75', photon_index2='1.92', ts='0.73', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='3.42e-05', EG='0.73', time_epoch_completed='1632871055.47', return_code='0', job_id='386222', GAL2='1.00', EG2='0.74', return_code2='0', photon_flux_error2='3.00e-08', ts2='1.17', photon_index='2.51' WHERE bin_id='1334' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:17:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 386222: <4FGL_J2235.3-4836_daily_bin1334> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1334 338.841 -48.6015 585100801 585360001 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 :                                   645.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            740 sec.

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

