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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1430
RA = 338.971, Dec = -36.4605
tmin = 609984001, tmax = 610243201
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='394820', job_status='RUN', time_executed='2021-09-28 16:31:24.993793', time_epoch_executed='1632871884.99' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394820

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394820/ft1_4FGL_J2235.8-3627_daily_bin1430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394820/ft2_4FGL_J2235.8-3627_daily_bin1430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394820/ft1_4FGL_J2235.8-3627_daily_bin1430.fits outfile=/scratch/kocevski/394820/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1430.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=609984001.0 tmax=610243201.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 5.22
user 4.87
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/394820/ft2_4FGL_J2235.8-3627_daily_bin1430.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394820/ft2_4FGL_J2235.8-3627_daily_bin1430.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/394820/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1430.fits evtable="EVENTS" outfile="/scratch/kocevski/394820/ft1_filtered_4FGL_J2235.8-3627_daily_bin1430.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394820/ft1_filtered_4FGL_J2235.8-3627_daily_bin1430.fits" evtable="EVENTS" scfile=/scratch/kocevski/394820/ft2_4FGL_J2235.8-3627_daily_bin1430.fits sctable="SC_DATA" outfile=/scratch/kocevski/394820/ltcube_609984001_610243201_4FGL_J2235.8-3627_daily_bin1430.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/394820/ft2_4FGL_J2235.8-3627_daily_bin1430.fits
.....................!
real 11.89
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394820/ft1_filtered_4FGL_J2235.8-3627_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/394820/ft2_4FGL_J2235.8-3627_daily_bin1430.fits sctable="SC_DATA" expcube=/scratch/kocevski/394820/ltcube_609984001_610243201_4FGL_J2235.8-3627_daily_bin1430.fits outfile=/scratch/kocevski/394820/expmap_609984001_610243201_4FGL_J2235.8-3627_daily_bin1430.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/394820/ltcube_609984001_610243201_4FGL_J2235.8-3627_daily_bin1430.fits
.....................!
real 191.69
user 186.02
sys 5.18

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 176 point sources and 0 extended sources

Setting source of interest to:
4FGL J2235.8-3627 @ 338.971 -36.4605

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/394820/ft1_filtered_4FGL_J2235.8-3627_daily_bin1430.fits scfile=/scratch/kocevski/394820/ft2_4FGL_J2235.8-3627_daily_bin1430.fits outfile=/scratch/kocevski/394820/cmap_609984001_610243201_4FGL_J2235.8-3627_daily_bin1430.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.971 yref=-36.4605 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394820/ft1_filtered_4FGL_J2235.8-3627_daily_bin1430.fits scfile=/scratch/kocevski/394820/ft2_4FGL_J2235.8-3627_daily_bin1430.fits outfile=/scratch/kocevski/394820/cmap_HighResolution_609984001_610243201_4FGL_J2235.8-3627_daily_bin1430.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.971 yref=-36.4605 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/394820/ft1_filtered_4FGL_J2235.8-3627_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/394820/ft2_4FGL_J2235.8-3627_daily_bin1430.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394820/Model_4FGL_J2235.8-3627_daily_bin1430.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/394820/ft1_filtered_4FGL_J2235.8-3627_daily_bin1430.fits.....................!
real 40.44
user 39.09
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/394820/ft1_filtered_4FGL_J2235.8-3627_daily_bin1430.fits', '/scratch/kocevski/394820/ft2_4FGL_J2235.8-3627_daily_bin1430.fits', expMap='/scratch/kocevski/394820/expmap_609984001_610243201_4FGL_J2235.8-3627_daily_bin1430.fits', expCube='/scratch/kocevski/394820/ltcube_609984001_610243201_4FGL_J2235.8-3627_daily_bin1430.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/394820/Model_4FGL_J2235.8-3627_daily_bin1430.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.8-3627'

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  8.910e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.229e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/394820/ft1_filtered_4FGL_J2235.8-3627_daily_bin1430.fits
Spacecraft file(s): /scratch/kocevski/394820/ft2_4FGL_J2235.8-3627_daily_bin1430.fits
Exposure map: /scratch/kocevski/394820/expmap_609984001_610243201_4FGL_J2235.8-3627_daily_bin1430.fits
Exposure cube: /scratch/kocevski/394820/ltcube_609984001_610243201_4FGL_J2235.8-3627_daily_bin1430.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/394820/Model_4FGL_J2235.8-3627_daily_bin1430.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) = 4829.07205915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5675       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.7193       1.0000         .10000E-03   10000.    
     3 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1080       1.0000         .10000E-03   10000.    
     5 'norm      '    .82634       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    55.703       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.770       1.0000         .10000E-03   10000.    
    12 'norm      '    3.9742       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.391       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12272E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.0291       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.1977       1.0000         .10000E-03   10000.    
    19 'norm      '    .72033       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .28215E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10206E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.609       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .78039       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.4066       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4829.012     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     3677 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5666        8.6545       -.30610E-05    .83475E-04
   2  Prefactor     5.7192        9.3225        .79618E-06    .25280E-03
   3  norm          .10000E-03    9.3891        .25664E-06** at limit **
   4  norm          1.1089        5.4232       -.32335E-05    .20209E-03
   5  norm          .82626        .39460        .15243E-06    .28987E-02
   6  Prefactor     .10000E-03    9.1264       -.97724E-06** at limit **
   7  Prefactor     .10000E-03    2.5681       -.25398E-06** at limit **
   8  norm          55.714        38.165       -.11360E-05   -.13682E-03
   9  Prefactor     .10000E-03    15.833       -.26236E-06** at limit **
  10  Prefactor     .10000E-03    14.063       -.10929E-05** at limit **
  11  Prefactor     41.742        27.329        .18397E-05    .47706E-03
  12  norm          3.9740        2.9755        .38499E-07    .87629E-04
  13  Prefactor     .10000E-03    38.785       -.18373E-05** at limit **
  14  Prefactor     13.387        14.561       -.20011E-06    .58464E-04
  15  Prefactor     .10000E-03    9.6950        .41474E-06** at limit **
  16  norm          7.0283        6.3306        .11410E-06   -.71248E-04
  17  Prefactor     .10000E-03    18.997        .13719E-05** at limit **
  18  Prefactor     8.1954        13.547        .94862E-07   -.10280E-03
  19  norm          .72028        .84256       -.13510E-06   -.65769E-03
  20  Prefactor     .10000E-03    43.279       -.57607E-06** at limit **
  21  Prefactor     .10000E-03    5.8847        .12418E-08** at limit **
  22  norm          .10003E-03    202.58       -.57222E-04** at limit **
  23  norm          .10000E-03    2.3035        .54285E-06** at limit **
  24  norm          .10000E-03    9.7901        .30084E-06** at limit **
  25  Prefactor     22.574        32.475        .29721E-05    .23476E-03
  26  Prefactor     .10000E-03    28.294        .19209E-06** at limit **
  27  norm          .10000E-03    1.6602        .86730E-06** at limit **
  28  Normalizat    .78024        .22169        .22795E-05    .48464E-03
  29  Prefactor     1.4068        .21731       -.88312E-06    .14576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.56657
  Prefactor  = 5.71924
  norm       = 0.0001
  norm       = 1.10891
  norm       = 0.826256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 55.7136
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 41.7424
  norm       = 3.97401
  Prefactor  = 0.000100001
  Prefactor  = 13.3872
  Prefactor  = 0.0001
  norm       = 7.02835
  Prefactor  = 0.000100001
  Prefactor  = 8.19536
  norm       = 0.720279
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100032
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 22.5743
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.780237
  Prefactor  = 1.40679
 **********
 **   18 **HESSE 
 **********

 FCN=   4829.012     FROM HESSE     STATUS=OK           547 CALLS     4224 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5666        8.5917        .33964E-03   -1.5458    
   2  Prefactor     5.7192        9.2870        .16796E-03   -1.5230    
   3  norm          .10000E-03    9.5709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1089        5.5071        .30409E-03   -1.5497    
   5  norm          .82626        .39539        .28810E-04   -1.5526    
   6  Prefactor     .10000E-03    9.2337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6124        .10873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          55.714        38.208        .53747E-04   -1.4214    
   9  Prefactor     .10000E-03    15.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     41.742        27.547        .62025E-04   -1.4415    
  12  norm          3.9740        2.9750        .99985E-04   -1.5309    
  13  Prefactor     .10000E-03    38.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.387        14.590        .10946E-03   -1.4976    
  15  Prefactor     .10000E-03    10.075        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.0283        6.2989        .14694E-03   -1.5178    
  17  Prefactor     .10000E-03    19.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.1954        13.709        .14003E-03   -1.5135    
  19  norm          .72028        .80644        .56431E-03   -1.5538    
  20  Prefactor     .10000E-03    43.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.8932        .16451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10003E-03    196.36        .67535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.3033        .10285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    9.9650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     22.574        32.647        .84239E-04   -1.4757    
  26  Prefactor     .10000E-03    28.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.6503        .87037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .78024        .26724        .30305E-03   -1.0081    
  29  Prefactor     1.4068        .26166        .23171E-03   -.80185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7312e-09
Minuit parameter uncertainties:
  1  7.33881
  2  9.2893
  3  6.80076e-05
  4  4.94293
  5  0.395395
  6  9.27333e-05
  7  1.76941e-05
  8  38.2249
  9  7.46328e-05
  10  0.000206727
  11  27.5555
  12  2.9751
  13  0.00036679
  14  14.5943
  15  6.1599e-05
  16  6.29947
  17  0.000225698
  18  13.7139
  19  0.80645
  20  0.000183068
  21  1.81576e-06
  22  0.00506707
  23  2.45862e-05
  24  2.90206e-06
  25  32.6723
  26  4.02514e-05
  27  2.87155e-05
  28  0.267691
  29  0.26191
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  2.067e-04  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.229e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  1.407e+00  2.619e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  7.802e-01  2.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 7.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394820/likelihoodResults_609984001_610243201_4FGL_J2235.8-3627_daily_bin1430.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) = 4829.01244895
delta logL = -0.000337217623382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4829.01211175
delta logL = -1.54841472977e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2244       1.0000          .0000       10.000    
     3 'Normalizat'    .78021       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4068       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+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=   4829.012     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      249 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    197.32        .18142E-02** at limit **
   2  Index         2.2047        7.7064        .50000        .23557E-05
   3  Normalizat    .78023        .20145E-01    .30305E-03    .12642E-04
   4  Prefactor     1.4068        .20126E-01    .23171E-03    .24169E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010012
  Index      = 2.20473
  Normalizat = 0.780227
  Prefactor  = 1.4068
 **********
 **   18 **HESSE 
 **********

 FCN=   4829.012     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    848.32        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2047        5.5425        .50000       -.59324    
   3  Normalizat    .78023        .44802E-01    .12122E-04   -1.0081    
   4  Prefactor     1.4068        .44759E-01    .46342E-04   -.80184    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.27537e-09
Minuit parameter uncertainties:
  1  0.0204423
  2  1283.23
  3  0.0448044
  4  0.0447603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394820': 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) = 4829.01211172
delta logL = 1.21217453852e-08

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.001e-04  2.044e-02  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.205e+00  1.283e+03  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  1.407e+00  4.476e-02  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  7.802e-01  4.480e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.971 -36.461

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/394820/cmap_HighResolution_609984001_610243201_4FGL_J2235.8-3627_daily_bin1430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.88e-03', job_status='DONE', photon_flux_upper_limit='7.70e-08', time_completed='2021-09-28 16:42:50.035493', job_id='394820', GAL2='1.41', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632872570.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='1.21e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1430' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:42:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 394820: <4FGL_J2235.8-3627_daily_bin1430> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1430> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:30:26 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:30: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:30:28 2021
Terminated at Tue Sep 28 16:42:50 2021
Results reported at Tue Sep 28 16:42:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1430 338.971 -36.4605 609984001 610243201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.8-3627 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   680.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            744 sec.

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

