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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1644
RA = 338.841, Dec = -48.6015
tmin = 665452801, tmax = 665712001
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='574883', job_status='RUN', time_executed='2022-02-05 00:54:04.064644', time_epoch_executed='1644051244.06' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574883

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574883/ft1_4FGL_J2235.3-4836_daily_bin1644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574883/ft2_4FGL_J2235.3-4836_daily_bin1644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574883/ft1_4FGL_J2235.3-4836_daily_bin1644.fits outfile=/scratch/kocevski/574883/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1644.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=665452801.0 tmax=665712001.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.73
user 3.46
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574883/ft2_4FGL_J2235.3-4836_daily_bin1644.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/574883/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1644.fits evtable="EVENTS" outfile="/scratch/kocevski/574883/ft1_filtered_4FGL_J2235.3-4836_daily_bin1644.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.65
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574883/ft1_filtered_4FGL_J2235.3-4836_daily_bin1644.fits" evtable="EVENTS" scfile=/scratch/kocevski/574883/ft2_4FGL_J2235.3-4836_daily_bin1644.fits sctable="SC_DATA" outfile=/scratch/kocevski/574883/ltcube_665452801_665712001_4FGL_J2235.3-4836_daily_bin1644.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/574883/ft2_4FGL_J2235.3-4836_daily_bin1644.fits
.....................!
real 13.01
user 12.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574883/ft1_filtered_4FGL_J2235.3-4836_daily_bin1644.fits evtable="EVENTS" scfile=/scratch/kocevski/574883/ft2_4FGL_J2235.3-4836_daily_bin1644.fits sctable="SC_DATA" expcube=/scratch/kocevski/574883/ltcube_665452801_665712001_4FGL_J2235.3-4836_daily_bin1644.fits outfile=/scratch/kocevski/574883/expmap_665452801_665712001_4FGL_J2235.3-4836_daily_bin1644.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/574883/ltcube_665452801_665712001_4FGL_J2235.3-4836_daily_bin1644.fits
.....................!
real 191.95
user 184.97
sys 5.50

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/574883/ft1_filtered_4FGL_J2235.3-4836_daily_bin1644.fits scfile=/scratch/kocevski/574883/ft2_4FGL_J2235.3-4836_daily_bin1644.fits outfile=/scratch/kocevski/574883/cmap_665452801_665712001_4FGL_J2235.3-4836_daily_bin1644.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/574883/ft1_filtered_4FGL_J2235.3-4836_daily_bin1644.fits scfile=/scratch/kocevski/574883/ft2_4FGL_J2235.3-4836_daily_bin1644.fits outfile=/scratch/kocevski/574883/cmap_HighResolution_665452801_665712001_4FGL_J2235.3-4836_daily_bin1644.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/574883/ft1_filtered_4FGL_J2235.3-4836_daily_bin1644.fits evtable="EVENTS" scfile=/scratch/kocevski/574883/ft2_4FGL_J2235.3-4836_daily_bin1644.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574883/Model_4FGL_J2235.3-4836_daily_bin1644.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/574883/ft1_filtered_4FGL_J2235.3-4836_daily_bin1644.fits.....................!
real 44.69
user 43.40
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    11.583       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11733E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4302       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.934       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0190       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9870       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.729       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.556       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10446E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10182E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.554       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .24044E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .83009       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .46757       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .98281       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98024       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=   5692.166     FROM MIGRAD    STATUS=CONVERGED   1358 CALLS     4486 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.717        .18142E-02** at limit **
   2  Prefactor     .10000E-03    25.348        .18142E-02** at limit **
   3  Prefactor     .10000E-03    1.9100        .10127E-02** at limit **
   4  norm          11.584        6.1560        .11771E-03   -.25402E-04
   5  Prefactor     .10000E-03    80.204        .18142E-02** at limit **
   6  Prefactor     4.4350        7.5513        .19132E-03   -.19526E-03
   7  Prefactor     10.934        5.2787        .56752E-03   -.73598E-04
   8  Prefactor     .10000E-03    50.963        .18142E-02** at limit **
   9  norm          .10000E-03    5.5533        .17218E-02** at limit **
  10  Prefactor     4.0194        3.8203        .68632E-03    .22275E-03
  11  Prefactor     .10000E-03    22.161        .18142E-02** at limit **
  12  Prefactor     .10000E-03    2.1234        .10714E-02** at limit **
  13  Prefactor     2.9873        15.160        .23489E-03   -.73083E-05
  14  Prefactor     .10000E-03    12.379        .18142E-02** at limit **
  15  Prefactor     22.727        13.825        .84017E-04   -.60891E-04
  16  Prefactor     .10000E-03    30.078        .18142E-02** at limit **
  17  Prefactor     .10000E-03    2.1578        .10809E-02** at limit **
  18  Prefactor     44.547        37.923        .60063E-04   -.17376E-04
  19  Prefactor     .10000E-03    6.6658        .18142E-02** at limit **
  20  norm          .10000E-03    36.755        .36285E-03** at limit **
  21  norm          .10000E-03    1.8087        .99087E-03** at limit **
  22  norm          .10000E-03    3.2723        .13291E-02** at limit **
  23  Prefactor     20.556        8.0576        .88346E-04    .24519E-03
  24  Prefactor     .10001E-03    219.85        .71410E-02** at limit **
  25  Prefactor     .10000E-03    6.4189        .18142E-02** at limit **
  26  norm          .82988        .84050        .66637E-04    .37738E-03
  27  Prefactor     .47574        13.441        .24462E-02    .48116E-03
  28  Prefactor     .10000E-03    18.278        .18142E-02** at limit **
  29  Normalizat    .98273        .22288        .25044E-03   -.54654E-04
  30  Prefactor     .98024        .19903        .23487E-03   -.60167E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.5842
  Prefactor  = 0.0001
  Prefactor  = 4.43502
  Prefactor  = 10.9335
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.01943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.98732
  Prefactor  = 0.0001
  Prefactor  = 22.7267
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.5466
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 20.5561
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.829878
  Prefactor  = 0.475736
  Prefactor  = 0.0001
  Normalizat = 0.982733
  Prefactor  = 0.980245
 **********
 **   18 **HESSE 
 **********

 FCN=   5692.166     FROM HESSE     STATUS=OK           562 CALLS     5048 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.724        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.354        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.9102        .20254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.584        6.1558        .47083E-05   -1.5027    
   5  Prefactor     .10000E-03    80.231        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.4350        7.5493        .76529E-05   -1.5287    
   7  Prefactor     10.934        5.2777        .22701E-04   -1.5047    
   8  Prefactor     .10000E-03    50.963        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.5566        .34437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.0194        3.8190        .13726E-03   -1.5307    
  11  Prefactor     .10000E-03    22.161        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.1235        .21427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9873        15.157        .93957E-05   -1.5362    
  14  Prefactor     .10000E-03    12.380        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.727        13.822        .33607E-05   -1.4754    
  16  Prefactor     .10000E-03    30.078        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.1578        .21618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     44.547        37.922        .12013E-04   -1.4372    
  19  Prefactor     .10000E-03    6.6665        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    36.758        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.8087        .19817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.2727        .26581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     20.556        8.0569        .17669E-04   -1.4801    
  24  Prefactor     .10001E-03    228.73        .28564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.4194        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .82988        .83917        .26655E-05   -1.5526    
  27  Prefactor     .47574        13.319        .97847E-04   -1.5570    
  28  Prefactor     .10000E-03    18.279        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .98273        .22228        .10018E-04   -.93611    
  30  Prefactor     .98024        .19903        .93946E-05   -.93391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0025e-09
Minuit parameter uncertainties:
  1  2.37672e-06
  2  2.48878e-05
  3  1.31178e-07
  4  6.15616
  5  0.00011674
  6  7.55094
  7  5.27791
  8  1.88249e-05
  9  3.5585e-07
  10  3.81924
  11  1.94768e-05
  12  1.74498e-06
  13  13.4633
  14  2.38437e-05
  15  13.8243
  16  3.54825e-06
  17  1.69252e-06
  18  37.9424
  19  6.23349e-06
  20  0.000328995
  21  2.27444e-07
  22  9.96474e-07
  23  8.05737
  24  0.00232098
  25  2.65563e-06
  26  0.83918
  27  5.03508
  28  2.40661e-05
  29  0.22249
  30  0.199181
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.802e-01  1.992e-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:  9.827e-01  2.225e-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: 6.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574883/likelihoodResults_665452801_665712001_4FGL_J2235.3-4836_daily_bin1644.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) = 5692.16869359
delta logL = -0.00223620074576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5692.16645746
delta logL = -6.70352164889e-08

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 'Index     '    2.5105       1.0000          .0000       10.000    
     3 'Normalizat'    .98270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98031       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=   5692.166     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      210 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    2.1464        .10714E-02** at limit **
   2  Index         2.4945        8.1068        .93994E-02    .91221E-06
   3  Normalizat    .98273        .20844        .25044E-03   -.80756E-04
   4  Prefactor     .98024        .19629        .23487E-03   -.78755E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 2.49455
  Normalizat = 0.982733
  Prefactor  = 0.980245
 **********
 **   18 **HESSE 
 **********

 FCN=   5692.166     FROM HESSE     STATUS=OK            23 CALLS      233 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    2.1243        .21427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4945        7.4139        .18799E-02   -.52486    
   3  Normalizat    .98273        .20866        .10018E-04   -.93611    
   4  Prefactor     .98024        .19650        .93946E-05   -.93391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64715e-09
Minuit parameter uncertainties:
  1  0.000235903
  2  285.284
  3  0.208836
  4  0.196648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574883': 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) = 5692.16645739
delta logL = 3.52156348526e-09

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  2.359e-04  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.495e+00  2.853e+02  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:  9.802e-01  1.966e-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:  9.827e-01  2.088e-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/574883/cmap_HighResolution_665452801_665712001_4FGL_J2235.3-4836_daily_bin1644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.83e-03', job_status='DONE', photon_flux_upper_limit='6.21e-08', time_completed='2022-02-05 01:08:18.698980', job_id='574883', GAL2='0.98', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1644052098.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.52e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1644' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb  5 01:08:18 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 574883: <4FGL_J2235.3-4836_daily_bin1644> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1644> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Feb  5 00:51:42 2022
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb  5 00:53:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb  5 00:53:06 2022
Terminated at Sat Feb  5 01:08:19 2022
Results reported at Sat Feb  5 01:08:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1644 338.841 -48.6015 665452801 665712001 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 :                                   854.00 sec.
    Max Memory :                                 1177 MB
    Average Memory :                             338.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            997 sec.

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

