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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1424
RA = 338.971, Dec = -36.4605
tmin = 608428801, tmax = 608688001
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='394811', job_status='RUN', time_executed='2021-09-28 16:30:57.407301', time_epoch_executed='1632871857.41' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394811

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394811/ft1_4FGL_J2235.8-3627_daily_bin1424.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394811/ft2_4FGL_J2235.8-3627_daily_bin1424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394811/ft1_4FGL_J2235.8-3627_daily_bin1424.fits outfile=/scratch/kocevski/394811/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1424.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=608428801.0 tmax=608688001.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.98
user 4.75
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394811/ft1_filtered_4FGL_J2235.8-3627_daily_bin1424.fits" evtable="EVENTS" scfile=/scratch/kocevski/394811/ft2_4FGL_J2235.8-3627_daily_bin1424.fits sctable="SC_DATA" outfile=/scratch/kocevski/394811/ltcube_608428801_608688001_4FGL_J2235.8-3627_daily_bin1424.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/394811/ft2_4FGL_J2235.8-3627_daily_bin1424.fits
.....................!
real 11.93
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394811/ft1_filtered_4FGL_J2235.8-3627_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/394811/ft2_4FGL_J2235.8-3627_daily_bin1424.fits sctable="SC_DATA" expcube=/scratch/kocevski/394811/ltcube_608428801_608688001_4FGL_J2235.8-3627_daily_bin1424.fits outfile=/scratch/kocevski/394811/expmap_608428801_608688001_4FGL_J2235.8-3627_daily_bin1424.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/394811/ltcube_608428801_608688001_4FGL_J2235.8-3627_daily_bin1424.fits
.....................!
real 191.00
user 185.77
sys 4.90

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/394811/ft1_filtered_4FGL_J2235.8-3627_daily_bin1424.fits scfile=/scratch/kocevski/394811/ft2_4FGL_J2235.8-3627_daily_bin1424.fits outfile=/scratch/kocevski/394811/cmap_608428801_608688001_4FGL_J2235.8-3627_daily_bin1424.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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394811/ft1_filtered_4FGL_J2235.8-3627_daily_bin1424.fits scfile=/scratch/kocevski/394811/ft2_4FGL_J2235.8-3627_daily_bin1424.fits outfile=/scratch/kocevski/394811/cmap_HighResolution_608428801_608688001_4FGL_J2235.8-3627_daily_bin1424.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394811/ft1_filtered_4FGL_J2235.8-3627_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/394811/ft2_4FGL_J2235.8-3627_daily_bin1424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394811/Model_4FGL_J2235.8-3627_daily_bin1424.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/394811/ft1_filtered_4FGL_J2235.8-3627_daily_bin1424.fits....................!
real 48.77
user 47.56
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8802       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.3296       1.0000         .10000E-03   10000.    
     3 'norm      '    .13563E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.3595       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4477       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8094       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4222       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4253       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.475       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10570E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.293       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5190       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0322       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .40813E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.2259       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .18748E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2728       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .64038       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=   6267.470     FROM MIGRAD    STATUS=CONVERGED   1360 CALLS     4370 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8828        7.2215        .18208E-03    .16646E-03
   2  Prefactor     7.3298        7.7368        .14815E-03    .10152E-03
   3  norm          .10002E-03    24.887        .31414E-02** at limit **
   4  norm          4.3608        4.4552        .15115E-03    .12485E-03
   5  norm          1.4478        .43529        .25656E-04    .83899E-03
   6  Prefactor     3.8105        4.6586        .18265E-03   -.77619E-04
   7  Prefactor     3.4230        2.7218        .56101E-03    .72933E-04
   8  norm          .10000E-03    6.5360        .18142E-02** at limit **
   9  Prefactor     9.4263        22.799        .13054E-03    .34837E-06
  10  Prefactor     18.470        14.507        .93181E-04   -.16320E-03
  11  Prefactor     .10000E-03    3.9195        .15302E-02** at limit **
  12  norm          .10011E-03    2.2231        .29754E-01** at limit **
  13  Prefactor     13.256        43.240        .10986E-03   -.18006E-04
  14  Prefactor     2.5134        12.796        .25741E-03   -.23633E-03
  15  Prefactor     .10000E-03    1.5624        .96525E-03** at limit **
  16  norm          .10000E-03    1.6195        .97687E-03** at limit **
  17  Prefactor     .10000E-03    3.7275        .14918E-02** at limit **
  18  Prefactor     .10000E-03    4.3020        .15928E-02** at limit **
  19  norm          1.0324        .48106        .36275E-04   -.10562E-03
  20  Prefactor     .42699        49.044        .15932        .74485E-04
  21  Prefactor     .10000E-03    2.6396        .12551E-02** at limit **
  22  norm          .10000E-03    6.7549        .18142E-02** at limit **
  23  norm          .10000E-03    1.7218        .10134E-02** at limit **
  24  norm          3.2254        5.1450        .11046E-02    .18762E-03
  25  Prefactor     .10000E-03    91.654        .18142E-02** at limit **
  26  Prefactor     .10000E-03    33.510        .18142E-02** at limit **
  27  norm          .10013E-03    14.593        .21390E-02** at limit **
  28  Normalizat    1.2724        .20382        .21228E-03    .10074E-03
  29  Prefactor     .64060        .18932        .27590E-03    .30080E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.8828
  Prefactor  = 7.32983
  norm       = 0.000100019
  norm       = 4.36081
  norm       = 1.44777
  Prefactor  = 3.81049
  Prefactor  = 3.42301
  norm       = 0.0001
  Prefactor  = 9.4263
  Prefactor  = 18.4697
  Prefactor  = 0.0001
  norm       = 0.00010011
  Prefactor  = 13.2561
  Prefactor  = 2.5134
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.03239
  Prefactor  = 0.426993
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.22539
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  norm       = 0.000100125
  Normalizat = 1.27242
  Prefactor  = 0.640596
 **********
 **   18 **HESSE 
 **********

 FCN=   6267.470     FROM HESSE     STATUS=OK           547 CALLS     4917 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8828        7.2199        .72833E-05   -1.5266    
   2  Prefactor     7.3298        7.7356        .59259E-05   -1.5166    
   3  norm          .10002E-03    25.550        .12566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.3608        4.4548        .60462E-05   -1.5290    
   5  norm          1.4478        .43527        .51313E-05   -1.5467    
   6  Prefactor     3.8105        4.6585        .73058E-05   -1.5318    
   7  Prefactor     3.4230        2.7215        .22440E-04   -1.5338    
   8  norm          .10000E-03    6.5362        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.4263        22.797        .52215E-05   -1.5094    
  10  Prefactor     18.470        14.507        .18636E-04   -1.4848    
  11  Prefactor     .10000E-03    3.9196        .30605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10011E-03    2.0487        .31374E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.256        42.760        .43945E-05   -1.4980    
  14  Prefactor     2.5134        12.787        .10296E-04   -1.5391    
  15  Prefactor     .10000E-03    1.5624        .19305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6197        .19537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.7276        .29837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3031        .31857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0324        .48103        .14510E-05   -1.5505    
  20  Prefactor     .42699        51.860        .15340       -1.5577    
  21  Prefactor     .10000E-03    2.6397        .25103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.7551        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.7218        .20267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.2254        5.1443        .44183E-04   -1.5349    
  25  Prefactor     .10000E-03    91.731        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    33.512        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10013E-03    14.791        .42779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2724        .20394        .42456E-04   -.84393    
  29  Prefactor     .64060        .18944        .11036E-04   -1.0590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06063e-08
Minuit parameter uncertainties:
  1  7.22122
  2  7.73664
  3  0.00139134
  4  4.45514
  5  0.435275
  6  4.65892
  7  2.72159
  8  3.3309e-05
  9  22.8178
  10  14.5095
  11  2.01105e-05
  12  0.000947325
  13  42.8593
  14  11.342
  15  1.3115e-05
  16  2.06405e-05
  17  1.04353e-05
  18  5.05503e-05
  19  0.481032
  20  9.41874
  21  8.35836e-06
  22  1.12467e-05
  23  2.94245e-06
  24  5.14501
  25  0.00110007
  26  0.00030793
  27  0.0027234
  28  0.204064
  29  0.189633
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.847e+01  1.451e+01  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:  6.406e-01  1.896e-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:  1.272e+00  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.51
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.58e-08 +/- 2.03e-08
Energy Flux (Fixed Index): 1.10e-05 +/- 8.64e-06

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

Saving results to:
/scratch/kocevski/394811/likelihoodResults_608428801_608688001_4FGL_J2235.8-3627_daily_bin1424.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) = 6267.00149889
delta logL = 0.468307283149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6267.00146581
delta logL = 0.46834035907

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.491       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7260       1.0000          .0000       10.000    
     3 'Normalizat'    1.2850       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63151       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=   6267.001     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      266 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.483        18.384        .40472E-03    .11099E-03
   2  Index         1.7262        .46719        .82095E-02    .44465E-04
   3  Normalizat    1.2851        .19326        .21136E-03    .10292E-02
   4  Prefactor     .63140        .18478        .27761E-03    .69968E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.4834
  Index      = 1.72624
  Normalizat = 1.28512
  Prefactor  = 0.631396
 **********
 **   18 **HESSE 
 **********

 FCN=   6267.001     FROM HESSE     STATUS=OK            23 CALLS      289 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.483        18.394        .16189E-04   -1.4718    
   2  Index         1.7262        .46750        .32838E-03   -.71385    
   3  Normalizat    1.2851        .19341        .42272E-04   -.84012    
   4  Prefactor     .63140        .18493        .55521E-04   -1.0628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.12906e-10
Minuit parameter uncertainties:
  1  18.3982
  2  0.4687
  3  0.193514
  4  0.185104
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394811': 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) = 6267.00146541
delta logL = 0.468340763588

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.448e+01  1.840e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.726e+00  4.687e-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:  6.314e-01  1.851e-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:  1.285e+00  1.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.46
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 1.73 +/- 0.47
Photon Flux (Free Index): 1.80e-08 +/- 1.61e-08
Energy Flux (Free Index): 2.71e-05 +/- 3.37e-05

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/394811/cmap_HighResolution_608428801_608688001_4FGL_J2235.8-3627_daily_bin1424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.85e-03', comment='SUCCESS', photon_flux='2.58e-08', energy_flux2='2.71e-05', photon_flux_error='2.03e-08', dlogl='4.68e-01', energy_flux='1.10e-05', photon_flux2='1.80e-08', job_status='DONE', time_completed='2021-09-28 16:45:29.095686', photon_index_error2='0.47', photon_index2='1.73', ts='3.51', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='7.66e-08', energy_flux_error2='3.37e-05', EG='1.27', time_epoch_completed='1632872729.1', return_code='0', job_id='394811', GAL2='0.63', EG2='1.29', return_code2='0', energy_flux_error='8.64e-06', photon_flux_error2='1.61e-08', ts2='4.46', photon_index='2.23' WHERE bin_id='1424' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:45:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 394811: <4FGL_J2235.8-3627_daily_bin1424> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1424 338.971 -36.4605 608428801 608688001 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 :                                   867.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            904 sec.

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

