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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1311
RA = 338.841, Dec = -48.6015
tmin = 579139201, tmax = 579398401
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='386187', job_status='RUN', time_executed='2021-09-28 16:07:21.811371', time_epoch_executed='1632870441.81' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386187

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386187/ft1_4FGL_J2235.3-4836_daily_bin1311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386187/ft2_4FGL_J2235.3-4836_daily_bin1311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386187/ft1_4FGL_J2235.3-4836_daily_bin1311.fits outfile=/scratch/kocevski/386187/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1311.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=579139201.0 tmax=579398401.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.52
user 3.30
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386187/ft1_filtered_4FGL_J2235.3-4836_daily_bin1311.fits" evtable="EVENTS" scfile=/scratch/kocevski/386187/ft2_4FGL_J2235.3-4836_daily_bin1311.fits sctable="SC_DATA" outfile=/scratch/kocevski/386187/ltcube_579139201_579398401_4FGL_J2235.3-4836_daily_bin1311.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/386187/ft2_4FGL_J2235.3-4836_daily_bin1311.fits
.....................!
real 11.98
user 11.53
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386187/ft1_filtered_4FGL_J2235.3-4836_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/386187/ft2_4FGL_J2235.3-4836_daily_bin1311.fits sctable="SC_DATA" expcube=/scratch/kocevski/386187/ltcube_579139201_579398401_4FGL_J2235.3-4836_daily_bin1311.fits outfile=/scratch/kocevski/386187/expmap_579139201_579398401_4FGL_J2235.3-4836_daily_bin1311.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/386187/ltcube_579139201_579398401_4FGL_J2235.3-4836_daily_bin1311.fits
.....................!
real 190.03
user 184.81
sys 4.74

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/386187/ft1_filtered_4FGL_J2235.3-4836_daily_bin1311.fits scfile=/scratch/kocevski/386187/ft2_4FGL_J2235.3-4836_daily_bin1311.fits outfile=/scratch/kocevski/386187/cmap_579139201_579398401_4FGL_J2235.3-4836_daily_bin1311.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386187/ft1_filtered_4FGL_J2235.3-4836_daily_bin1311.fits scfile=/scratch/kocevski/386187/ft2_4FGL_J2235.3-4836_daily_bin1311.fits outfile=/scratch/kocevski/386187/cmap_HighResolution_579139201_579398401_4FGL_J2235.3-4836_daily_bin1311.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.61
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386187/ft1_filtered_4FGL_J2235.3-4836_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/386187/ft2_4FGL_J2235.3-4836_daily_bin1311.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386187/Model_4FGL_J2235.3-4836_daily_bin1311.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/386187/ft1_filtered_4FGL_J2235.3-4836_daily_bin1311.fits.....................!
real 46.43
user 45.07
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19700E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    16.869       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.594       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5315       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    52.696       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0154       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .73234       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8790       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.282       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.723       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.9962       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.6742       1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.966       1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.824       1.0000         .10000E-03   10000.    
    26 'norm      '    .53876       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1475       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .59567       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=   6291.344     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     3903 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0470       -.20317E-06** at limit **
   2  Prefactor     .10003E-03    20.047        .40666E-05** at limit **
   3  Prefactor     .10000E-03    2.9021       -.38296E-07** at limit **
   4  norm          16.870        5.6199       -.31476E-08    .29040E-04
   5  Prefactor     38.592        26.619        .24383E-06    .70498E-04
   6  Prefactor     1.5318        5.2530        .18535E-06    .28133E-03
   7  Prefactor     .10000E-03    3.0824       -.64322E-07** at limit **
   8  Prefactor     52.690        57.492        .20871E-05    .12091E-03
   9  norm          .10000E-03    5.2666        .14089E-06** at limit **
  10  Prefactor     8.0156        3.7914       -.49684E-06   -.80230E-03
  11  Prefactor     .67192        85.443       -.12761E-04    .22851E-03
  12  Prefactor     8.8803        5.6326       -.36090E-07   -.40084E-04
  13  Prefactor     .10000E-03    13.447       -.27854E-05** at limit **
  14  Prefactor     .10000E-03    22.306        .24368E-05** at limit **
  15  Prefactor     .10000E-03    6.6522       -.19773E-06** at limit **
  16  Prefactor     .10000E-03    29.942       -.22321E-05** at limit **
  17  Prefactor     .10000E-03    1.4706        .29184E-08** at limit **
  18  Prefactor     21.283        29.883       -.22168E-06   -.14517E-04
  19  Prefactor     13.725        13.601        .25164E-06    .87958E-04
  20  norm          .10000E-03    2.6222        .26203E-08** at limit **
  21  norm          .10000E-03    5.1764        .10274E-06** at limit **
  22  norm          3.9961        3.6263       -.73970E-06   -.19330E-02
  23  Prefactor     5.6744        4.9835        .24951E-07    .54020E-04
  24  Prefactor     20.969        36.608       -.61455E-06   -.42759E-04
  25  Prefactor     20.825        14.212        .16401E-06    .77444E-04
  26  norm          .53889        .98999       -.11019E-06   -.11220E-03
  27  Prefactor     .10000E-03    1.4443        .53418E-08** at limit **
  28  Prefactor     .10000E-03    12.313        .20564E-05** at limit **
  29  Normalizat    1.1474        .16524       -.15256E-06    .23331E-04
  30  Prefactor     .59568        .14208        .57830E-06    .89359E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  norm       = 16.8696
  Prefactor  = 38.5924
  Prefactor  = 1.53176
  Prefactor  = 0.0001
  Prefactor  = 52.6904
  norm       = 0.0001
  Prefactor  = 8.01558
  Prefactor  = 0.671921
  Prefactor  = 8.88033
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 21.2834
  Prefactor  = 13.7253
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.9961
  Prefactor  = 5.67436
  Prefactor  = 20.9694
  Prefactor  = 20.8255
  norm       = 0.538891
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.14742
  Prefactor  = 0.595682
 **********
 **   18 **HESSE 
 **********

 FCN=   6291.344     FROM HESSE     STATUS=OK           590 CALLS     4493 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1024        .17404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10003E-03    79.183        .57481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.9855        .26363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          16.870        5.6195        .97514E-04   -1.4886    
   5  Prefactor     38.592        26.592        .64518E-04   -1.4465    
   6  Prefactor     1.5318        5.2380        .31568E-03   -1.5460    
   7  Prefactor     .10000E-03    3.1854        .27156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     52.690        57.408        .55251E-04   -1.4255    
   9  norm          .10000E-03    5.3655        .17771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.0156        3.8387        .10182E-03   -1.5142    
  11  Prefactor     .67192        159.33        .72867E-02   -1.5544    
  12  Prefactor     8.8803        5.6484        .13451E-03   -1.5112    
  13  Prefactor     .10000E-03    13.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.7255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.4729        .93933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.283        29.876        .86823E-04   -1.4785    
  19  Prefactor     13.725        13.477        .10813E-03   -1.4967    
  20  norm          .10000E-03    2.6227        .12544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.3017        .35205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.9961        3.8969        .74810E-03   -1.5308    
  23  Prefactor     5.6744        4.9716        .15158E-03   -1.5232    
  24  Prefactor     20.969        36.717        .87475E-04   -1.4792    
  25  Prefactor     20.825        14.159        .87773E-04   -1.4795    
  26  norm          .53889        .91537        .97076E-03   -1.5561    
  27  Prefactor     .10000E-03    1.4484        .93057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    12.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1474        .18900        .21230E-03   -.88243    
  30  Prefactor     .59568        .16174        .25628E-03   -1.0777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18721e-08
Minuit parameter uncertainties:
  1  1.66633e-05
  2  0.00290092
  3  7.61661e-06
  4  5.61968
  5  26.5999
  6  5.23956
  7  1.58732e-05
  8  57.4684
  9  1.39426e-06
  10  3.83882
  11  20.7479
  12  5.64876
  13  0.000303328
  14  0.000345252
  15  2.39039e-05
  16  0.000393215
  17  1.48038e-06
  18  29.8968
  19  13.4804
  20  1.37969e-07
  21  7.05338e-06
  22  3.89718
  23  4.97192
  24  36.7569
  25  14.1617
  26  0.915394
  27  1.33966e-07
  28  0.000230186
  29  0.189107
  30  0.161863
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  8.880e+00  5.649e+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:  5.957e-01  1.619e-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.147e+00  1.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.41
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 5.59e-08 +/- 3.55e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.02e-05

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) = 6290.64244054
delta logL = 0.70121298629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6290.63358036
delta logL = 0.710073161291

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9201       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3876       1.0000          .0000       10.000    
     3 'Normalizat'    1.0947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62702       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=   6290.634     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      270 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9202        6.3401        .83517E-04    .12024E-02
   2  Index         3.3876        1.0104        .53101E-02    .19850E-03
   3  Normalizat    1.0947        .18590        .21641E-03    .22107E-03
   4  Prefactor     .62700        .16285        .25041E-03    .64468E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.92019
  Index      = 3.38762
  Normalizat = 1.09474
  Prefactor  = 0.626998
 **********
 **   18 **HESSE 
 **********

 FCN=   6290.634     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9202        5.1858        .33407E-05   -1.5264    
   2  Index         3.3876        .82748        .21240E-03   -.32834    
   3  Normalizat    1.0947        .18528        .43282E-04   -.89921    
   4  Prefactor     .62700        .16242        .10016E-04   -1.0646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7834e-10
Minuit parameter uncertainties:
  1  5.18626
  2  0.831757
  3  0.185393
  4  0.162537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386187': 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) = 6290.63358035
delta logL = 0.710073174637

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  4.920e+00  5.186e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  3.388e+00  8.318e-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:  6.270e-01  1.625e-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.095e+00  1.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.98
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 3.39 +/- 0.83
Photon Flux (Free Index): 9.62e-08 +/- 5.39e-08
Energy Flux (Free Index): 1.65e-05 +/- 8.41e-06

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/386187/cmap_HighResolution_579139201_579398401_4FGL_J2235.3-4836_daily_bin1311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.59e-08', energy_flux2='1.65e-05', photon_flux_error='3.55e-08', dlogl='7.10e-01', energy_flux='1.60e-05', photon_flux2='9.62e-08', job_status='DONE', time_completed='2021-09-28 16:20:09.552828', photon_index_error2='0.83', photon_index2='3.39', ts='4.41', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', energy_flux_error2='8.41e-06', EG='1.15', time_epoch_completed='1632871209.55', return_code='0', job_id='386187', GAL2='0.63', EG2='1.09', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='5.39e-08', ts2='5.98', photon_index='2.51' WHERE bin_id='1311' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:20:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 386187: <4FGL_J2235.3-4836_daily_bin1311> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1311 338.841 -48.6015 579139201 579398401 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 :                                   755.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            896 sec.

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

