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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1577
RA = 338.971, Dec = -36.4605
tmin = 648086401, tmax = 648345601
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='395055', job_status='RUN', time_executed='2021-09-28 16:31:12.014833', time_epoch_executed='1632871872.01' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395055

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395055/ft1_4FGL_J2235.8-3627_daily_bin1577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395055/ft2_4FGL_J2235.8-3627_daily_bin1577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395055/ft1_4FGL_J2235.8-3627_daily_bin1577.fits outfile=/scratch/kocevski/395055/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1577.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=648086401.0 tmax=648345601.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 4.23
user 3.98
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395055/ft2_4FGL_J2235.8-3627_daily_bin1577.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/395055/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1577.fits evtable="EVENTS" outfile="/scratch/kocevski/395055/ft1_filtered_4FGL_J2235.8-3627_daily_bin1577.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.51
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395055/ft1_filtered_4FGL_J2235.8-3627_daily_bin1577.fits" evtable="EVENTS" scfile=/scratch/kocevski/395055/ft2_4FGL_J2235.8-3627_daily_bin1577.fits sctable="SC_DATA" outfile=/scratch/kocevski/395055/ltcube_648086401_648345601_4FGL_J2235.8-3627_daily_bin1577.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/395055/ft2_4FGL_J2235.8-3627_daily_bin1577.fits
.....................!
real 12.17
user 11.77
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395055/ft1_filtered_4FGL_J2235.8-3627_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/395055/ft2_4FGL_J2235.8-3627_daily_bin1577.fits sctable="SC_DATA" expcube=/scratch/kocevski/395055/ltcube_648086401_648345601_4FGL_J2235.8-3627_daily_bin1577.fits outfile=/scratch/kocevski/395055/expmap_648086401_648345601_4FGL_J2235.8-3627_daily_bin1577.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/395055/ltcube_648086401_648345601_4FGL_J2235.8-3627_daily_bin1577.fits
.....................!
real 191.45
user 186.20
sys 4.91

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/395055/ft1_filtered_4FGL_J2235.8-3627_daily_bin1577.fits scfile=/scratch/kocevski/395055/ft2_4FGL_J2235.8-3627_daily_bin1577.fits outfile=/scratch/kocevski/395055/cmap_648086401_648345601_4FGL_J2235.8-3627_daily_bin1577.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395055/ft1_filtered_4FGL_J2235.8-3627_daily_bin1577.fits scfile=/scratch/kocevski/395055/ft2_4FGL_J2235.8-3627_daily_bin1577.fits outfile=/scratch/kocevski/395055/cmap_HighResolution_648086401_648345601_4FGL_J2235.8-3627_daily_bin1577.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395055/ft1_filtered_4FGL_J2235.8-3627_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/395055/ft2_4FGL_J2235.8-3627_daily_bin1577.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395055/Model_4FGL_J2235.8-3627_daily_bin1577.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/395055/ft1_filtered_4FGL_J2235.8-3627_daily_bin1577.fits.....................!
real 36.09
user 34.86
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/395055/ft1_filtered_4FGL_J2235.8-3627_daily_bin1577.fits', '/scratch/kocevski/395055/ft2_4FGL_J2235.8-3627_daily_bin1577.fits', expMap='/scratch/kocevski/395055/expmap_648086401_648345601_4FGL_J2235.8-3627_daily_bin1577.fits', expCube='/scratch/kocevski/395055/ltcube_648086401_648345601_4FGL_J2235.8-3627_daily_bin1577.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/395055/Model_4FGL_J2235.8-3627_daily_bin1577.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/395055/ft1_filtered_4FGL_J2235.8-3627_daily_bin1577.fits
Spacecraft file(s): /scratch/kocevski/395055/ft2_4FGL_J2235.8-3627_daily_bin1577.fits
Exposure map: /scratch/kocevski/395055/expmap_648086401_648345601_4FGL_J2235.8-3627_daily_bin1577.fits
Exposure cube: /scratch/kocevski/395055/ltcube_648086401_648345601_4FGL_J2235.8-3627_daily_bin1577.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/395055/Model_4FGL_J2235.8-3627_daily_bin1577.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) = 4242.40172739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9722       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.5128       1.0000         .10000E-03   10000.    
     4 'norm      '    .34759E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .49678       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    15.446       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.745       1.0000         .10000E-03   10000.    
    12 'norm      '    2.7449       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.769       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .64302       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3863       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1211       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0469       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.1331       1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.7734       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88868       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .75322       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=   4242.383     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     3695 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9726        8.0493        .21282E-05    .12313E-03
   2  Prefactor     .10000E-03    8.1266       -.40422E-06** at limit **
   3  norm          3.5147        6.6050        .11197E-06   -.29685E-04
   4  norm          .10010E-03    2.7692        .60200E-06** at limit **
   5  norm          .49665        .33023        .20795E-07   -.82947E-03
   6  Prefactor     .10000E-03    3.9540        .15320E-06** at limit **
   7  Prefactor     .10000E-03    1.7345       -.22081E-08** at limit **
   8  norm          15.450        15.057       -.16858E-06   -.45240E-05
   9  Prefactor     .10000E-03    10.589        .55041E-06** at limit **
  10  Prefactor     .10000E-03    10.162        .29837E-06** at limit **
  11  Prefactor     13.757        16.835       -.20489E-06   -.99332E-05
  12  norm          2.7482        2.7919       -.53113E-06    .25223E-03
  13  Prefactor     21.716        50.635        .70359E-05    .13197E-04
  14  Prefactor     .52317        8.2707       -.62991E-06    .16411E-03
  15  Prefactor     3.3854        4.2845        .64574E-07    .28392E-05
  16  norm          .10000E-03    2.5618       -.44384E-06** at limit **
  17  Prefactor     .10000E-03    4.6234       -.29494E-06** at limit **
  18  Prefactor     6.1235        9.2390        .14633E-05    .33866E-04
  19  norm          1.0466        .71226       -.30671E-06   -.31555E-03
  20  Prefactor     .10000E-03    14.345        .46515E-06** at limit **
  21  Prefactor     .10000E-03    5.7525        .52186E-06** at limit **
  22  norm          1.1314        115.81        .31421E-05    .14055E-05
  23  norm          .10000E-03    1.5136       -.32683E-08** at limit **
  24  norm          .10000E-03    3.1794       -.30125E-07** at limit **
  25  Prefactor     5.7771        37.739        .46096E-06   -.40148E-06
  26  Prefactor     .10000E-03    16.267       -.87659E-06** at limit **
  27  norm          .10000E-03    2.4827       -.87996E-08** at limit **
  28  Normalizat    .88919        .17637       -.62733E-06   -.13710E-04
  29  Prefactor     .75276        .16631       -.24423E-06   -.69608E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.97259
  Prefactor  = 0.0001
  norm       = 3.51471
  norm       = 0.000100099
  norm       = 0.496652
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.4501
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7572
  norm       = 2.74819
  Prefactor  = 21.7164
  Prefactor  = 0.52317
  Prefactor  = 3.3854
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.12352
  norm       = 1.04659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.13145
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.77714
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.889192
  Prefactor  = 0.752756
 **********
 **   18 **HESSE 
 **********

 FCN=   4242.383     FROM HESSE     STATUS=OK           561 CALLS     4256 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9726        8.1507        .10119E-02   -1.5309    
   2  Prefactor     .10000E-03    8.2089        .18135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.5147        6.5883        .21570E-03   -1.5333    
   4  norm          .10010E-03    35.036        .19526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .49665        .31482        .28511E-04   -1.5567    
   6  Prefactor     .10000E-03    3.9793        .12646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.7811        .16747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          15.450        15.059        .10191E-03   -1.4922    
   9  Prefactor     .10000E-03    10.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.757        16.852        .10804E-03   -1.4966    
  12  norm          2.7482        2.7950        .86575E-04   -1.5376    
  13  Prefactor     21.716        50.699        .85847E-04   -1.4776    
  14  Prefactor     .52317        61.729        .33759E-02   -1.5563    
  15  Prefactor     3.3854        4.2755        .14742E-03   -1.5340    
  16  norm          .10000E-03    5.4983        .19537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.6255        .13672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.1235        9.4648        .81136E-03   -1.5213    
  19  norm          1.0466        .72630        .35059E-04   -1.5503    
  20  Prefactor     .10000E-03    14.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.7976        .15256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1314        120.76        .43834E-02   -1.5495    
  23  norm          .10000E-03    1.5140        .78256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.1924        .11341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.7771        37.752        .16716E-03   -1.5227    
  26  Prefactor     .10000E-03    16.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.5214        .99964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .88919        .21054        .21060E-03   -.96841    
  29  Prefactor     .75276        .19835        .22376E-03   -1.0149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70989e-09
Minuit parameter uncertainties:
  1  8.15301
  2  9.9813e-06
  3  6.58969
  4  0.00371948
  5  0.314823
  6  3.58987e-06
  7  1.5952e-06
  8  15.0623
  9  1.02303e-05
  10  1.07875e-05
  11  16.8583
  12  2.79516
  13  50.7997
  14  11.3766
  15  4.2759
  16  4.83037e-05
  17  7.54592e-07
  18  9.46713
  19  0.726303
  20  1.13434e-05
  21  9.8649e-06
  22  23.4259
  23  6.39645e-08
  24  1.26166e-06
  25  29.5631
  26  1.38246e-05
  27  1.00602e-06
  28  0.210731
  29  0.198541
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.079e-05  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:  7.528e-01  1.985e-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:  8.892e-01  2.107e-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: 5.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/395055/likelihoodResults_648086401_648345601_4FGL_J2235.8-3627_daily_bin1577.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) = 4242.38376709
delta logL = -0.000467902169476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4242.38329972
delta logL = -5.29264980287e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10789E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2404       1.0000          .0000       10.000    
     3 'Normalizat'    .88909       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75287       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.

 FCN=   4242.383     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1092.8        .90712E-02** at limit **
   2  Index         2.2513        8.8549        .50000       -.92965E-05
   3  Normalizat    .88919        .51533E-01    .44762E-01    .12040E-04
   4  Prefactor     .75276        .50962E-01    .43101E-01    .13490E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.2513
  Normalizat = 0.889191
  Prefactor  = 0.752757
 **********
 **   18 **HESSE 
 **********

 FCN=   4242.383     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      233 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2069.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2513        5.4778        .50000       -.58205    
   3  Normalizat    .88919        .11106        .21060E-03   -.96841    
   4  Prefactor     .75276        .10994        .22377E-03   -1.0149    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.86771e-08
Minuit parameter uncertainties:
  1  1.13682e-05
  2  61.6441
  3  0.111088
  4  0.109976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395055': 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) = 4242.38329914
delta logL = 4.77684807265e-08

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.137e-05  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.251e+00  6.164e+01  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:  7.528e-01  1.100e-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:  8.892e-01  1.111e-01  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/395055/cmap_HighResolution_648086401_648345601_4FGL_J2235.8-3627_daily_bin1577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-03', job_status='DONE', photon_flux_upper_limit='5.86e-08', time_completed='2021-09-28 16:41:55.670833', job_id='395055', GAL2='0.75', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1632872515.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='4.78e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1577' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:41:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 395055: <4FGL_J2235.8-3627_daily_bin1577> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1577 338.971 -36.4605 648086401 648345601 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 :                                   639.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            670 sec.

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

