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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1225
RA = 338.841, Dec = -48.6015
tmin = 556848001, tmax = 557107201
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='384961', job_status='RUN', time_executed='2021-09-28 16:00:57.688495', time_epoch_executed='1632870057.69' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384961

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384961/ft1_4FGL_J2235.3-4836_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384961/ft2_4FGL_J2235.3-4836_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384961/ft1_4FGL_J2235.3-4836_daily_bin1225.fits outfile=/scratch/kocevski/384961/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1225.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=556848001.0 tmax=557107201.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.58
user 3.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384961/ft1_filtered_4FGL_J2235.3-4836_daily_bin1225.fits" evtable="EVENTS" scfile=/scratch/kocevski/384961/ft2_4FGL_J2235.3-4836_daily_bin1225.fits sctable="SC_DATA" outfile=/scratch/kocevski/384961/ltcube_556848001_557107201_4FGL_J2235.3-4836_daily_bin1225.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/384961/ft2_4FGL_J2235.3-4836_daily_bin1225.fits
.....................!
real 12.28
user 11.93
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384961/ft1_filtered_4FGL_J2235.3-4836_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/384961/ft2_4FGL_J2235.3-4836_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/384961/ltcube_556848001_557107201_4FGL_J2235.3-4836_daily_bin1225.fits outfile=/scratch/kocevski/384961/expmap_556848001_557107201_4FGL_J2235.3-4836_daily_bin1225.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/384961/ltcube_556848001_557107201_4FGL_J2235.3-4836_daily_bin1225.fits
.....................!
real 190.11
user 185.10
sys 4.69

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/384961/ft1_filtered_4FGL_J2235.3-4836_daily_bin1225.fits scfile=/scratch/kocevski/384961/ft2_4FGL_J2235.3-4836_daily_bin1225.fits outfile=/scratch/kocevski/384961/cmap_556848001_557107201_4FGL_J2235.3-4836_daily_bin1225.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384961/ft1_filtered_4FGL_J2235.3-4836_daily_bin1225.fits scfile=/scratch/kocevski/384961/ft2_4FGL_J2235.3-4836_daily_bin1225.fits outfile=/scratch/kocevski/384961/cmap_HighResolution_556848001_557107201_4FGL_J2235.3-4836_daily_bin1225.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.51
user 0.37
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384961/ft1_filtered_4FGL_J2235.3-4836_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/384961/ft2_4FGL_J2235.3-4836_daily_bin1225.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384961/Model_4FGL_J2235.3-4836_daily_bin1225.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/384961/ft1_filtered_4FGL_J2235.3-4836_daily_bin1225.fits................................!
real 15.89
user 14.66
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3759       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12538E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .14352E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23321E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.990       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11838E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11539E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .83145E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .28092E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    20 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    21 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    22 'norm      '    7.3876       1.0000         .10000E-03   10000.    
    23 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    24 'Prefactor '    44.790       1.0000         .10000E-03   10000.    
    25 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    26 'norm      '    10000.       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .30233       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .14203       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0658       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=   357.9716     FROM MIGRAD    STATUS=CONVERGED    874 CALLS     4779 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.406        .11975E-05** at limit **
   2  Prefactor     1.6337        1171.9        .15852E-04   -.58651E-05
   3  Prefactor     .10000E-03    12.903        .60502E-09** at limit **
   4  norm          .10000E-03    20.105        .16293E-05** at limit **
   5  Prefactor     .10000E-03    168.29        .52811E-05** at limit **
   6  Prefactor     .10000E-03    36.798       -.10855E-05** at limit **
   7  Prefactor     16.983        18.942       -.78963E-06    .32471E-04
   8  Prefactor     .10000E-03    234.00       -.31309E-05** at limit **
   9  norm          .10000E-03    26.892       -.29815E-06** at limit **
  10  Prefactor     .10000E-03    130.08       -.31212E-06** at limit **
  11  Prefactor     .10004E-03    7965.9        .27403E-04** at limit **
  12  Prefactor     .10000E-03    78.296        .27035E-07** at limit **
  13  Prefactor    10000.0        9622.3        .20230E-04** at limit **
  14  Prefactor     .10000E-03    172.27       -.46040E-05** at limit **
  15  Prefactor     .10000E-03    60.075        .26648E-06** at limit **
  16  Prefactor     .10006E-03    686.49       -.27855E-06** at limit **
  17  Prefactor    10000.0        7407.1        .93892E-05** at limit **
  18  Prefactor     .10011E-03    839.71        .14614E-04** at limit **
  19  Prefactor    10000.0        6352.3        .84468E-05** at limit **
  20  norm         10000.0        8294.7        .89274E-04** at limit **
  21  norm         10000.0        6864.1        .19760E-04** at limit **
  22  norm         10000.0        5543.4        .24860E-03** at limit **
  23  Prefactor    10000.0        6380.2       -.41197E-04** at limit **
  24  Prefactor    10000.0        5180.4        .39744E-04** at limit **
  25  Prefactor    10000.0        9413.1        .12568E-04** at limit **
  26  norm         10000.0        681.63       -.87714E-05** at limit **
  27  Prefactor     .10023E-03    6763.5        .45028E-04** at limit **
  28  Prefactor     .10002E-03    8877.1        .82425E-05** at limit **
  29  Normalizat    .10000E-01    .58739       -.10312E-04** at limit **
  30  Prefactor     1.0660        .34566       -.96172E-06    .53172E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.6337
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.9827
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100041
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100063
  Prefactor  = 10000
  Prefactor  = 0.000100106
  Prefactor  = 10000
  norm       = 10000
  norm       = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.000100226
  Prefactor  = 0.000100015
  Normalizat = 0.01
  Prefactor  = 1.06597
 **********
 **   18 **HESSE 
 **********

 FCN=   357.9716     FROM HESSE     STATUS=OK           570 CALLS     5349 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.698        .93690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.6337        1329.1        .26579E-02   -1.5452    
   3  Prefactor     .10000E-03    13.079        .66583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    20.285        .83239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    174.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.299        .11307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.983        18.968        .81015E-04   -1.4884    
   8  Prefactor     .10000E-03    255.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    27.196        .96453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    136.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10004E-03    7981.6        .18861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    80.827        .16648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        9797.6        .18390E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    181.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    61.563        .14523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10006E-03    784.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        7410.0        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10011E-03    1117.5        .21417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor    10000.0        6340.6        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm         10000.0        8324.6        .18197E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm         10000.0        9793.6        .19111E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm         10000.0        5438.8        .73781E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor    10000.0        7578.8        .21111E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor    10000.0        5003.9        .29953E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor    10000.0        9419.5        .18223E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm         10000.0        744.23        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10023E-03    7072.4        .20870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10002E-03    8852.8        .19420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .58871        .79766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.0660        .35435        .17943E-03   -.90562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35816e-09
Minuit parameter uncertainties:
  1  6.94985e-05
  2  95.3999
  3  2.11659e-05
  4  7.23636e-05
  5  0.00062014
  6  9.11122e-05
  7  18.9751
  8  0.00100124
  9  3.07177e-05
  10  9.57231e-05
  11  0.0357613
  12  3.27509e-06
  13  0.197236
  14  0.000685607
  15  1.32959e-05
  16  0.0142276
  17  0.0234343
  18  0.0222147
  19  0.00187975
  20  0.111863
  21  0.798445
  22  0.172751
  23  0.292422
  24  0.626048
  25  0.0402573
  26  0.0128505
  27  0.0665015
  28  0.0263566
  29  4.59734e-06
  30  0.355137
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  3.275e-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:  1.066e+00  3.551e-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.000e-02  4.597e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 2.77e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.16e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384961/likelihoodResults_556848001_557107201_4FGL_J2235.3-4836_daily_bin1225.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) = 357.971672371
delta logL = -5.85331810612e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 357.971671261
delta logL = -5.74234101123e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94054E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5109       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0660       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=   357.9716     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      238 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    102.63        .16646E-02** at limit **
   2  Index         2.4627        7.0914        .50000        .12549E-06
   3  Normalizat    .10000E-01    .58870        .79723E-02** at limit **
   4  Prefactor     1.0660        .29908        .17944E-03   -.36624E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100101
  Index      = 2.46267
  Normalizat = 0.01
  Prefactor  = 1.06596
 **********
 **   18 **HESSE 
 **********

 FCN=   357.9716     FROM HESSE     STATUS=OK            29 CALLS      267 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10010E-03    81.724        .33293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4627        6.1617        .50000       -.53224    
   3  Normalizat    .10000E-01    .58875        .15945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0660        .29903        .35888E-04   -.90562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39245e-09
Minuit parameter uncertainties:
  1  0.00575844
  2  1194.55
  3  1.40067e-05
  4  0.299498
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384961': 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) = 357.971613836
delta logL = 1.20894583233e-09

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.001e-04  5.758e-03  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.463e+00  1.195e+03  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.066e+00  2.995e-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.000e-02  1.401e-05  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/384961/cmap_HighResolution_556848001_557107201_4FGL_J2235.3-4836_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.16e-01', job_status='DONE', photon_flux_upper_limit='2.77e-06', time_completed='2021-09-28 16:07:06.418191', job_id='384961', GAL2='1.07', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632870426.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.21e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1225' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:07:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 384961: <4FGL_J2235.3-4836_daily_bin1225> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1225> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 16:00:26 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:00:28 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:00:28 2021
Terminated at Tue Sep 28 16:07:07 2021
Results reported at Tue Sep 28 16:07:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1225 338.841 -48.6015 556848001 557107201 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 :                                   367.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   398 sec.
    Turnaround time :                            401 sec.

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

