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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1022
RA = 338.841, Dec = -48.6015
tmin = 504230401, tmax = 504489601
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='383660', job_status='RUN', time_executed='2021-09-28 15:58:26.215372', time_epoch_executed='1632869906.22' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383660

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383660/ft1_4FGL_J2235.3-4836_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383660/ft2_4FGL_J2235.3-4836_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383660/ft1_4FGL_J2235.3-4836_daily_bin1022.fits outfile=/scratch/kocevski/383660/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1022.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=504230401.0 tmax=504489601.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.57
user 3.33
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/383660/ft1_filtered_4FGL_J2235.3-4836_daily_bin1022.fits" evtable="EVENTS" scfile=/scratch/kocevski/383660/ft2_4FGL_J2235.3-4836_daily_bin1022.fits sctable="SC_DATA" outfile=/scratch/kocevski/383660/ltcube_504230401_504489601_4FGL_J2235.3-4836_daily_bin1022.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/383660/ft2_4FGL_J2235.3-4836_daily_bin1022.fits
.....................!
real 12.23
user 11.89
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383660/ft1_filtered_4FGL_J2235.3-4836_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/383660/ft2_4FGL_J2235.3-4836_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/383660/ltcube_504230401_504489601_4FGL_J2235.3-4836_daily_bin1022.fits outfile=/scratch/kocevski/383660/expmap_504230401_504489601_4FGL_J2235.3-4836_daily_bin1022.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/383660/ltcube_504230401_504489601_4FGL_J2235.3-4836_daily_bin1022.fits
.....................!
real 191.47
user 186.62
sys 4.52

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/383660/ft1_filtered_4FGL_J2235.3-4836_daily_bin1022.fits scfile=/scratch/kocevski/383660/ft2_4FGL_J2235.3-4836_daily_bin1022.fits outfile=/scratch/kocevski/383660/cmap_504230401_504489601_4FGL_J2235.3-4836_daily_bin1022.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383660/ft1_filtered_4FGL_J2235.3-4836_daily_bin1022.fits scfile=/scratch/kocevski/383660/ft2_4FGL_J2235.3-4836_daily_bin1022.fits outfile=/scratch/kocevski/383660/cmap_HighResolution_504230401_504489601_4FGL_J2235.3-4836_daily_bin1022.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/383660/ft1_filtered_4FGL_J2235.3-4836_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/383660/ft2_4FGL_J2235.3-4836_daily_bin1022.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/383660/Model_4FGL_J2235.3-4836_daily_bin1022.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/383660/ft1_filtered_4FGL_J2235.3-4836_daily_bin1022.fits.....................!
real 44.82
user 43.55
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.621       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9835       1.0000         .10000E-03   10000.    
     4 'norm      '    2.4763       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0144       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .75397       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .67734       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4609       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.811       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21353E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2551       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.950       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    12.214       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12199E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    57.365       1.0000         .10000E-03   10000.    
    25 'Prefactor '    38.042       1.0000         .10000E-03   10000.    
    26 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10875E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4948       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .74298       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=   5740.993     FROM MIGRAD    STATUS=CONVERGED    767 CALLS     4019 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.620        15.750        .63889E-07   -.17766E-04
   2  Prefactor     .10000E-03    89.619        .26332E-05** at limit **
   3  Prefactor     3.9837        4.8644        .34346E-06   -.55776E-04
   4  norm          2.4763        2.4848       -.46076E-07    .11331E-04
   5  Prefactor     4.0166        55.956        .55897E-06   -.34614E-05
   6  Prefactor     .10000E-03    6.7099        .41540E-07** at limit **
   7  Prefactor     .75347        2.2850        .68046E-06   -.54863E-05
   8  Prefactor     .10000E-03    54.160       -.76904E-07** at limit **
   9  norm          .67768        9.3829        .46018E-05   -.76630E-04
  10  Prefactor     7.4601        5.2514        .11539E-06   -.14541E-04
  11  Prefactor     .10000E-03    16.520       -.22574E-07** at limit **
  12  Prefactor     10.804        8.6282       -.48330E-06   -.76585E-05
  13  Prefactor     .10000E-03    38.779       -.25666E-06** at limit **
  14  Prefactor     .10000E-03    139.09       -.29807E-05** at limit **
  15  Prefactor     3.2447        10.767       -.11459E-05    .15069E-04
  16  Prefactor     .10000E-03    34.088        .34337E-06** at limit **
  17  Prefactor     .10000E-03    7.2912        .51184E-07** at limit **
  18  Prefactor     35.917        45.943       -.64607E-06   -.71846E-04
  19  Prefactor     .10000E-03    47.256       -.88203E-06** at limit **
  20  norm          .10000E-03    6.1923       -.99232E-08** at limit **
  21  norm          .10000E-03    2.1870       -.41464E-08** at limit **
  22  norm          12.214        7.7511       -.45112E-06    .37281E-04
  23  Prefactor     .10000E-03    13.060       -.97228E-07** at limit **
  24  Prefactor     57.355        51.522        .21251E-06   -.27872E-04
  25  Prefactor     38.056        22.474        .19933E-06   -.10842E-04
  26  norm          .10000E-03    .54377        .13051E-07** at limit **
  27  Prefactor     .10000E-03    5.5567        .16885E-06** at limit **
  28  Prefactor     .10000E-03    91.772        .15193E-05** at limit **
  29  Normalizat    1.4951        .20508       -.36960E-06   -.94906E-04
  30  Prefactor     .74275        .17322       -.65026E-06   -.64314E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.6199
  Prefactor  = 0.000100002
  Prefactor  = 3.98366
  norm       = 2.4763
  Prefactor  = 4.01656
  Prefactor  = 0.0001
  Prefactor  = 0.753466
  Prefactor  = 0.0001
  norm       = 0.677679
  Prefactor  = 7.46012
  Prefactor  = 0.0001
  Prefactor  = 10.8042
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 3.24468
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.9174
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 12.2138
  Prefactor  = 0.0001
  Prefactor  = 57.3554
  Prefactor  = 38.0562
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.49508
  Prefactor  = 0.742747
 **********
 **   18 **HESSE 
 **********

 FCN=   5740.993     FROM HESSE     STATUS=OK           582 CALLS     4601 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.620        15.738        .84217E-04   -1.4756    
   2  Prefactor     .10000E-03    92.425        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.9837        4.8500        .17418E-03   -1.5309    
   4  norm          2.4763        2.4959        .11673E-03   -1.5393    
   5  Prefactor     4.0166        55.846        .20128E-03   -1.5307    
   6  Prefactor     .10000E-03    6.7664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .75347        2.2787        .19156E-03   -1.5534    
   8  Prefactor     .10000E-03    54.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .67768        9.3912        .44546E-03   -1.5543    
  10  Prefactor     7.4601        5.2581        .13790E-03   -1.5162    
  11  Prefactor     .10000E-03    16.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.804        8.6426        .12185E-03   -1.5050    
  13  Prefactor     .10000E-03    39.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    141.05        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.2447        10.738        .22448E-03   -1.5348    
  16  Prefactor     .10000E-03    34.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.3980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     35.917        45.975        .66840E-04   -1.4509    
  19  Prefactor     .10000E-03    48.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.1963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.1873        .10943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.214        7.7506        .57311E-03   -1.5009    
  23  Prefactor     .10000E-03    13.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     57.355        51.639        .52967E-04   -1.4192    
  25  Prefactor     38.056        22.125        .64982E-04   -1.4473    
  26  norm          .10000E-03    .81535        .10638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.7220        .34862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    93.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4951        .24297        .23639E-03   -.77917    
  30  Prefactor     .74275        .20333        .28179E-03   -1.0187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34071e-10
Minuit parameter uncertainties:
  1  15.7408
  2  0.000775593
  3  4.85043
  4  2.49605
  5  29.9874
  6  2.98029e-06
  7  2.279
  8  5.93082e-05
  9  5.04606
  10  5.2584
  11  9.91549e-06
  12  8.64363
  13  0.000118444
  14  0.00113571
  15  10.7444
  16  0.000202783
  17  7.07424e-06
  18  46.0209
  19  0.000118105
  20  9.35183e-08
  21  2.91666e-07
  22  7.75121
  23  1.42858e-05
  24  51.6793
  25  22.1296
  26  3.31755e-06
  27  3.50765e-06
  28  0.000826971
  29  0.243157
  30  0.203539
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.080e+01  8.644e+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:  7.427e-01  2.035e-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.495e+00  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 6.80e-08 +/- 5.43e-08
Energy Flux (Fixed Index): 1.95e-05 +/- 1.56e-05

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

Saving results to:
/scratch/kocevski/383660/likelihoodResults_504230401_504489601_4FGL_J2235.3-4836_daily_bin1022.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) = 5740.84681796
delta logL = 0.145957705845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5740.8402073
delta logL = 0.152568365865

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9948       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9728       1.0000          .0000       10.000    
     3 'Normalizat'    1.4661       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76134       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.

 FCN=   5740.840     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      269 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9987        132.04        .35451E-02    .30948E-03
   2  Index         2.9731        6.4864        .14765        .11239E-03
   3  Normalizat    1.4663        .81784E-01    .53878E-01   -.15310E-05
   4  Prefactor     .76092        .68907E-01    .63036E-01    .93452E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.99875
  Index      = 2.97306
  Normalizat = 1.46629
  Prefactor  = 0.760922
 **********
 **   18 **HESSE 
 **********

 FCN=   5740.840     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9987        11.351        .14180E-03   -1.5142    
   2  Index         2.9731        1.0960        .73058E-02   -.41740    
   3  Normalizat    1.4663        .23686        .23822E-03   -.78730    
   4  Prefactor     .76092        .20290        .27883E-03   -1.0119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48763e-11
Minuit parameter uncertainties:
  1  11.3542
  2  1.10678
  3  0.237043
  4  0.203095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383660': 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) = 5740.84020327
delta logL = 0.152572394441

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  7.999e+00  1.135e+01  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.973e+00  1.107e+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:  7.609e-01  2.031e-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.466e+00  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.45
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 2.97 +/- 1.11
Photon Flux (Free Index): 8.92e-08 +/- 6.82e-08
Energy Flux (Free Index): 1.80e-05 +/- 1.45e-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/383660/cmap_HighResolution_504230401_504489601_4FGL_J2235.3-4836_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-02', comment='SUCCESS', photon_flux='6.80e-08', energy_flux2='1.80e-05', photon_flux_error='5.43e-08', dlogl='1.53e-01', energy_flux='1.95e-05', photon_flux2='8.92e-08', job_status='DONE', time_completed='2021-09-28 16:12:07.772433', photon_index_error2='1.11', photon_index2='2.97', ts='2.10', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.74e-07', energy_flux_error2='1.45e-05', EG='1.50', time_epoch_completed='1632870727.77', return_code='0', job_id='383660', GAL2='0.76', EG2='1.47', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='6.82e-08', ts2='2.45', photon_index='2.51' WHERE bin_id='1022' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:12:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 383660: <4FGL_J2235.3-4836_daily_bin1022> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1022> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:55:46 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:55:47 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:55:47 2021
Terminated at Tue Sep 28 16:12:08 2021
Results reported at Tue Sep 28 16:12:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1022 338.841 -48.6015 504230401 504489601 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 :                                   819.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            982 sec.

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

