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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1527
RA = 338.841, Dec = -48.6015
tmin = 635126401, tmax = 635385601
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='386530', job_status='RUN', time_executed='2021-09-28 16:07:21.359509', time_epoch_executed='1632870441.36' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386530

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386530/ft1_4FGL_J2235.3-4836_daily_bin1527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386530/ft2_4FGL_J2235.3-4836_daily_bin1527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386530/ft1_4FGL_J2235.3-4836_daily_bin1527.fits outfile=/scratch/kocevski/386530/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1527.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=635126401.0 tmax=635385601.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 2.95
user 2.73
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386530/ft2_4FGL_J2235.3-4836_daily_bin1527.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/386530/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1527.fits evtable="EVENTS" outfile="/scratch/kocevski/386530/ft1_filtered_4FGL_J2235.3-4836_daily_bin1527.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/386530/ft1_filtered_4FGL_J2235.3-4836_daily_bin1527.fits" evtable="EVENTS" scfile=/scratch/kocevski/386530/ft2_4FGL_J2235.3-4836_daily_bin1527.fits sctable="SC_DATA" outfile=/scratch/kocevski/386530/ltcube_635126401_635385601_4FGL_J2235.3-4836_daily_bin1527.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/386530/ft2_4FGL_J2235.3-4836_daily_bin1527.fits
.....................!
real 12.91
user 12.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386530/ft1_filtered_4FGL_J2235.3-4836_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/386530/ft2_4FGL_J2235.3-4836_daily_bin1527.fits sctable="SC_DATA" expcube=/scratch/kocevski/386530/ltcube_635126401_635385601_4FGL_J2235.3-4836_daily_bin1527.fits outfile=/scratch/kocevski/386530/expmap_635126401_635385601_4FGL_J2235.3-4836_daily_bin1527.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/386530/ltcube_635126401_635385601_4FGL_J2235.3-4836_daily_bin1527.fits
.....................!
real 191.67
user 186.03
sys 5.32

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/386530/ft1_filtered_4FGL_J2235.3-4836_daily_bin1527.fits scfile=/scratch/kocevski/386530/ft2_4FGL_J2235.3-4836_daily_bin1527.fits outfile=/scratch/kocevski/386530/cmap_635126401_635385601_4FGL_J2235.3-4836_daily_bin1527.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386530/ft1_filtered_4FGL_J2235.3-4836_daily_bin1527.fits scfile=/scratch/kocevski/386530/ft2_4FGL_J2235.3-4836_daily_bin1527.fits outfile=/scratch/kocevski/386530/cmap_HighResolution_635126401_635385601_4FGL_J2235.3-4836_daily_bin1527.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386530/ft1_filtered_4FGL_J2235.3-4836_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/386530/ft2_4FGL_J2235.3-4836_daily_bin1527.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386530/Model_4FGL_J2235.3-4836_daily_bin1527.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/386530/ft1_filtered_4FGL_J2235.3-4836_daily_bin1527.fits.....................!
real 21.70
user 20.31
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1584.49565712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37893       1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.283       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4646.6       1.0000         .10000E-03   10000.    
     4 'norm      '    9989.5       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .33488E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23071E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10550E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .32543E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .12772E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .43112E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    59.078       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .70302E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .43278E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .40487E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.450       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11594E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3292       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .64124E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.646       1.0000         .10000E-03   10000.    
    20 'norm      '    7.2567       1.0000         .10000E-03   10000.    
    21 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11494E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .54670E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    35.909       1.0000         .10000E-03   10000.    
    26 'norm      '    1.3107       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.9558       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .27158E-02   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .72561E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4596       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1584.474     FROM MIGRAD    STATUS=CONVERGED    245 CALLS     3523 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    149.09        .16497E-06** at limit **
   2  Prefactor     .15521E-03    2113.3       -.76344E-05** at limit **
   3  Prefactor     4649.7        23.163        .62780E-07   -.65655E-01
   4  norm         10000.0        513.44       -.11282E-04** at limit **
   5  Prefactor     .10105E-03    101.43        .16157E-04** at limit **
   6  Prefactor     .10000E-03    15.845        .44199E-06** at limit **
   7  Prefactor     .10000E-03    6.1914       -.68427E-06** at limit **
   8  Prefactor     .10003E-03    2.8237       -.33846E-05** at limit **
   9  norm          .10000E-03    8.1984        .99639E-06** at limit **
  10  Prefactor     .10000E-03    11.139       -.74054E-05** at limit **
  11  Prefactor     54.135        39.419        .10493E-05    .19987E-01
  12  Prefactor     .10000E-03    6.4458       -.10275E-05** at limit **
  13  Prefactor     .10000E-03    38.566        .23782E-05** at limit **
  14  Prefactor     .10000E-03    27.638       -.40030E-05** at limit **
  15  Prefactor     15.553        13.867        .52575E-06    .89997E-02
  16  Prefactor     .10224E-03    86.010       -.19753E-04** at limit **
  17  Prefactor     6.4165        17.582       -.15990E-05    .28928E-03
  18  Prefactor     .10000E-03    23.795        .38492E-05** at limit **
  19  Prefactor     10.198        22.387        .56267E-05   -.12116E-02
  20  norm          7.6262        25.478       -.24528E-04   -.99709E-03
  21  norm          .10000E-03    3.4728       -.13811E-05** at limit **
  22  norm          .10000E-03    6.0600       -.12510E-05** at limit **
  23  Prefactor     .10000E-03    7.1007        .17052E-05** at limit **
  24  Prefactor     .10000E-03    69.203        .33868E-06** at limit **
  25  Prefactor     36.419        26.649        .46812E-05   -.22454E-02
  26  norm          1.3179        1.6587       -.60888E-06    .99280E-04
  27  Prefactor     5.8946        6.0215       -.33219E-06    .12723E-03
  28  Prefactor     .10000E-03    36.578       -.15633E-04** at limit **
  29  Normalizat    .69872E-01    .81634       -.62270E-04    .44031E-05
  30  Prefactor     1.4627        .44550        .49435E-05    .61847E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100104
  Prefactor  = 0.000155207
  Prefactor  = 4649.7
  norm       = 10000
  Prefactor  = 0.000101052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.1346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5533
  Prefactor  = 0.000102238
  Prefactor  = 6.41649
  Prefactor  = 0.0001
  Prefactor  = 10.1983
  norm       = 7.62618
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.4195
  norm       = 1.31786
  Prefactor  = 5.89465
  Prefactor  = 0.0001
  Normalizat = 0.0698724
  Prefactor  = 1.46275
 **********
 **   18 **HESSE 
 **********

 FCN=   1584.474     FROM HESSE     STATUS=NOT POSDEF   634 CALLS     4157 TOTAL
                     EDM=   .25E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10010E-03    128.78        .10766E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .15521E-03    1851.7        .15412E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4649.7        3421.2        .20050E-03   -.70117E-01
   4  norm         10000.0        475.99        .30859E-02    1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10105E-03    89.637        .10671E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.644        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.3392        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10003E-03    115.45        .10678E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.0675        .10296E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.4848        .10614E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     54.135        135.61        .13049E-02   -1.4235    
  12  Prefactor     .10000E-03    5.5331        .10489E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.207        .96974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.835        .10629E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.553        24.798        .25474E-02   -1.4919    
  16  Prefactor     .10224E-03    83.961        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.4165        33.408        .39887E-02   -1.5201    
  18  Prefactor     .10000E-03    20.501        .10514E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.198        52.846        .30699E-02   -1.5069    
  20  norm          7.6262        29.491        .37224E-02   -1.5156    
  21  norm          .10000E-03    2.9922        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.2174        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.1115        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    60.510        .10556E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     36.419        57.319        .16720E-02   -1.4500    
  26  norm          1.3179        2.1456        .96283E-02   -1.5478    
  27  Prefactor     5.8946        7.1838        .41135E-02   -1.5222    
  28  Prefactor     .10000E-03    31.604        .99669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .69872E-01    9.6853        .20258       -1.4158    
  30  Prefactor     1.4627        1.9540        .46658E-01   -.78588    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.00246413
Minuit parameter uncertainties:
  1  0.00734098
  2  0.66105
  3  3770.07
  4  1.14121
  5  0.0194486
  6  4.69307e-07
  7  3.74237e-06
  8  0.00345307
  9  7.35588e-06
  10  7.45399e-05
  11  136.391
  12  5.72603e-06
  13  3.35515e-05
  14  4.28389e-05
  15  24.8147
  16  0.0274522
  17  29.3076
  18  6.64248e-05
  19  46.4949
  20  29.5472
  21  6.24987e-06
  22  8.96939e-06
  23  1.95528e-05
  24  0.00019302
  25  57.4061
  26  2.14568
  27  7.18484
  28  0.00021194
  29  2.17676
  30  2.07047
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1584.47422817

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  5.726e-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.463e+00  2.070e+00  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:  6.987e-02  2.177e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/386530/likelihoodResults_635126401_635385601_4FGL_J2235.3-4836_daily_bin1527.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): 102
logL (Free Index) = 1584.47487919
delta logL = -0.000651023845194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1584.47422811
delta logL = 6.00809926254e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4948       1.0000          .0000       10.000    
     3 'Normalizat'    .69922E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4627       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=   1584.474     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      264 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.356        .99814E-02** at limit **
   2  Index         2.0493        7.0607        .50000        .12517E-06
   3  Normalizat    .69871E-01    .19080E-01    .79253E-02   -.16707E-03
   4  Prefactor     1.4627        .20066E-01    .20622E-03   -.76735E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0493
  Normalizat = 0.0698713
  Prefactor  = 1.46274
 **********
 **   18 **HESSE 
 **********

 FCN=   1584.474     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      293 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    373.20        .10877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0493        6.0114        .50000       -.63123    
   3  Normalizat    .69871E-01    .58343E-01    .31701E-03   -1.4158    
   4  Prefactor     1.4627        .61395E-01    .41243E-04   -.78589    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.92874e-10
Minuit parameter uncertainties:
  1  0.000177926
  2  992.499
  3  0.0583988
  4  0.0613979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386530': 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): 102
logL (Free Index) = 1584.47422678
delta logL = 1.39184362524e-06

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  1.779e-04  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.049e+00  9.925e+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:  1.463e+00  6.140e-02  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:  6.987e-02  5.840e-02  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/386530/cmap_HighResolution_635126401_635385601_4FGL_J2235.3-4836_daily_bin1527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', job_status='DONE', photon_flux_upper_limit='1.68e-07', time_completed='2021-09-28 16:15:06.107188', job_id='386530', GAL2='1.46', fit_tolerance='1e-08', EG2='0.07', EG='0.07', time_epoch_completed='1632870906.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='102', GAL='1.46', dlogl='1.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1527' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:15:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 386530: <4FGL_J2235.3-4836_daily_bin1527> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1527 338.841 -48.6015 635126401 635385601 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 :                                   452.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   561 sec.
    Turnaround time :                            564 sec.

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

