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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1260
RA = 338.971, Dec = -36.4605
tmin = 565920001, tmax = 566179201
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='393831', job_status='RUN', time_executed='2021-09-28 16:28:29.698479', time_epoch_executed='1632871709.7' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1260'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393831

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393831/ft1_4FGL_J2235.8-3627_daily_bin1260.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393831/ft2_4FGL_J2235.8-3627_daily_bin1260.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393831/ft1_4FGL_J2235.8-3627_daily_bin1260.fits outfile=/scratch/kocevski/393831/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1260.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=565920001.0 tmax=566179201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.62
user 3.40
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393831/ft1_filtered_4FGL_J2235.8-3627_daily_bin1260.fits" evtable="EVENTS" scfile=/scratch/kocevski/393831/ft2_4FGL_J2235.8-3627_daily_bin1260.fits sctable="SC_DATA" outfile=/scratch/kocevski/393831/ltcube_565920001_566179201_4FGL_J2235.8-3627_daily_bin1260.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/393831/ft2_4FGL_J2235.8-3627_daily_bin1260.fits
.....................!
real 12.14
user 11.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393831/ft1_filtered_4FGL_J2235.8-3627_daily_bin1260.fits evtable="EVENTS" scfile=/scratch/kocevski/393831/ft2_4FGL_J2235.8-3627_daily_bin1260.fits sctable="SC_DATA" expcube=/scratch/kocevski/393831/ltcube_565920001_566179201_4FGL_J2235.8-3627_daily_bin1260.fits outfile=/scratch/kocevski/393831/expmap_565920001_566179201_4FGL_J2235.8-3627_daily_bin1260.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/393831/ltcube_565920001_566179201_4FGL_J2235.8-3627_daily_bin1260.fits
.....................!
real 190.75
user 185.53
sys 4.88

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/393831/ft1_filtered_4FGL_J2235.8-3627_daily_bin1260.fits scfile=/scratch/kocevski/393831/ft2_4FGL_J2235.8-3627_daily_bin1260.fits outfile=/scratch/kocevski/393831/cmap_565920001_566179201_4FGL_J2235.8-3627_daily_bin1260.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.61
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393831/ft1_filtered_4FGL_J2235.8-3627_daily_bin1260.fits scfile=/scratch/kocevski/393831/ft2_4FGL_J2235.8-3627_daily_bin1260.fits outfile=/scratch/kocevski/393831/cmap_HighResolution_565920001_566179201_4FGL_J2235.8-3627_daily_bin1260.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393831/ft1_filtered_4FGL_J2235.8-3627_daily_bin1260.fits evtable="EVENTS" scfile=/scratch/kocevski/393831/ft2_4FGL_J2235.8-3627_daily_bin1260.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393831/Model_4FGL_J2235.8-3627_daily_bin1260.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/393831/ft1_filtered_4FGL_J2235.8-3627_daily_bin1260.fits....................!
real 36.12
user 34.84
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4571       1.0000         .10000E-03   10000.    
     4 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8782       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9962       1.0000         .10000E-03   10000.    
     8 'norm      '    14.206       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11697E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.441       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5201       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2506       1.0000         .10000E-03   10000.    
    19 'norm      '    3.2209       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .26531E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.3828       1.0000         .10000E-03   10000.    
    24 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    11.907       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .53771       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.4736       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=   4097.398     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3649 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8932       -.17630E-07** at limit **
   2  Prefactor     .10000E-03    3.3064        .42746E-08** at limit **
   3  norm          3.4563        7.7507        .67615E-05   -.96268E-03
   4  norm          .10000E-03    6.8853       -.52413E-06** at limit **
   5  norm          1.8785        .59649       -.38425E-07    .99679E-04
   6  Prefactor     .10000E-03    7.4647        .10177E-05** at limit **
   7  Prefactor     5.9955        5.1999       -.14421E-06   -.22785E-03
   8  norm          14.137        32.334       -.11231E-04   -.48347E-03
   9  Prefactor     .10001E-03    123.58        .60344E-05** at limit **
  10  Prefactor     45.428        36.342       -.14413E-05   -.17420E-03
  11  Prefactor     .10000E-03    17.359        .79757E-06** at limit **
  12  norm          .10000E-03    1.1928       -.13896E-06** at limit **
  13  Prefactor     .10000E-03    21.651       -.91605E-06** at limit **
  14  Prefactor     .10000E-03    12.263       -.13817E-05** at limit **
  15  Prefactor     .10000E-03    8.9077        .49305E-06** at limit **
  16  norm          1.5181        4.8857        .45232E-06   -.49552E-04
  17  Prefactor     .10000E-03    21.336       -.64577E-06** at limit **
  18  Prefactor     3.2700        26.558        .67775E-06   -.88401E-04
  19  norm          3.2196        1.7086       -.74339E-07   -.44688E-04
  20  Prefactor     .10001E-03    230.01       -.49410E-05** at limit **
  21  Prefactor     .10000E-03    20.200        .64582E-06** at limit **
  22  norm          .10000E-03    7.1949        .97641E-07** at limit **
  23  norm          4.3827        5.0317       -.11891E-06   -.57965E-04
  24  norm          .10000E-03    8.0235       -.78652E-06** at limit **
  25  Prefactor     .10000E-03    11.120        .11392E-05** at limit **
  26  Prefactor     .10000E-03    42.793       -.21665E-06** at limit **
  27  norm          11.907        6.4442       -.18602E-07   -.35021E-04
  28  Normalizat    .53754        .23050        .10687E-05    .10418E-04
  29  Prefactor     1.4737        .23280       -.33203E-06    .37340E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.45628
  norm       = 0.0001
  norm       = 1.87845
  Prefactor  = 0.0001
  Prefactor  = 5.99553
  norm       = 14.1374
  Prefactor  = 0.000100009
  Prefactor  = 45.4284
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.51809
  Prefactor  = 0.0001
  Prefactor  = 3.26996
  norm       = 3.21963
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.38269
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.9073
  Normalizat = 0.537542
  Prefactor  = 1.4737
 **********
 **   18 **HESSE 
 **********

 FCN=   4097.398     FROM HESSE     STATUS=OK           543 CALLS     4192 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9322        .13828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.3118        .11368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4563        8.3218        .10875E-02   -1.5336    
   4  norm          .10000E-03    7.1494        .32739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8785        .59557        .26847E-04   -1.5434    
   6  Prefactor     .10000E-03    7.5183        .17092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.9955        5.2074        .12904E-03   -1.5218    
   8  norm          14.137        34.823        .10627E-03   -1.4956    
   9  Prefactor     .10001E-03    125.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     45.428        36.599        .59478E-04   -1.4359    
  11  Prefactor     .10000E-03    17.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.2012        .68235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.1951        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5181        4.7274        .22255E-03   -1.5462    
  17  Prefactor     .10000E-03    21.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2700        22.798        .22464E-03   -1.5346    
  19  norm          3.2196        1.6120        .22572E-04   -1.5349    
  20  Prefactor     .10001E-03    233.26        .21441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.1951        .16771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.3827        5.0336        .14796E-03   -1.5289    
  24  norm          .10000E-03    8.1287        .17731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    42.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          11.907        6.4457        .11375E-03   -1.5018    
  28  Normalizat    .53754        .26729        .33023E-03   -1.1071    
  29  Prefactor     1.4737        .27429        .21810E-03   -.78279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63876e-09
Minuit parameter uncertainties:
  1  1.48839e-05
  2  4.14286e-06
  3  8.32463
  4  7.1578e-05
  5  0.595571
  6  9.84447e-05
  7  5.20776
  8  34.8728
  9  0.00213785
  10  36.6167
  11  0.000127876
  12  1.0622e-05
  13  9.43665e-05
  14  0.000168092
  15  1.07457e-05
  16  4.72859
  17  4.87186e-05
  18  17.2775
  19  1.61206
  20  0.00327843
  21  0.00011946
  22  8.52264e-06
  23  5.03408
  24  0.000104837
  25  0.000135985
  26  0.000114073
  27  6.44605
  28  0.267935
  29  0.274567
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  4.543e+01  3.662e+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:  1.474e+00  2.746e-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:  5.375e-01  2.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.24
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 6.35e-08 +/- 5.12e-08
Energy Flux (Fixed Index): 2.71e-05 +/- 2.18e-05

TS (Fixed Index): 2.24
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 1.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393831/likelihoodResults_565920001_566179201_4FGL_J2235.8-3627_daily_bin1260.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) = 4096.14460577
delta logL = 1.25329446725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4096.1349157
delta logL = 1.26298453908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.963       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3091       1.0000          .0000       10.000    
     3 'Normalizat'    .44397       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5344       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=   4096.135     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      310 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.966        31.084        .10719E-03    .49425E-03
   2  Index         3.3093        1.1795        .34968E-02    .12801E-03
   3  Normalizat    .44375        .26821        .36170E-03    .31111E-03
   4  Prefactor     1.5346        .27447        .21426E-03    .54086E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.9657
  Index      = 3.30925
  Normalizat = 0.443754
  Prefactor  = 1.53455
 **********
 **   18 **HESSE 
 **********

 FCN=   4096.135     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.966        21.635        .42876E-05   -1.4960    
   2  Index         3.3093        .82399        .13987E-03   -.34495    
   3  Normalizat    .44375        .26739        .14468E-04   -1.1510    
   4  Prefactor     1.5346        .27320        .42853E-04   -.76577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33083e-10
Minuit parameter uncertainties:
  1  21.6467
  2  0.828259
  3  0.268163
  4  0.273464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393831': 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) = 4096.13491521
delta logL = 1.26298502794

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.397e+01  2.165e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  3.309e+00  8.283e-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:  1.535e+00  2.735e-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:  4.438e-01  2.682e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.03
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 3.31 +/- 0.83
Photon Flux (Free Index): 1.26e-07 +/- 7.38e-08
Energy Flux (Free Index): 2.22e-05 +/- 1.32e-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/393831/cmap_HighResolution_565920001_566179201_4FGL_J2235.8-3627_daily_bin1260.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', comment='SUCCESS', photon_flux='6.35e-08', energy_flux2='2.22e-05', photon_flux_error='5.12e-08', dlogl='1.26e+00', energy_flux='2.71e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-09-28 16:39:08.176733', photon_index_error2='0.83', photon_index2='3.31', ts='2.24', fit_tolerance='1e-08', GAL='1.47', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='1.32e-05', EG='0.54', time_epoch_completed='1632872348.18', return_code='0', job_id='393831', GAL2='1.53', EG2='0.44', return_code2='0', energy_flux_error='2.18e-05', photon_flux_error2='7.38e-08', ts2='5.03', photon_index='2.23' WHERE bin_id='1260' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:39:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 393831: <4FGL_J2235.8-3627_daily_bin1260> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1260> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 16:25:58 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:25:59 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:25:59 2021
Terminated at Tue Sep 28 16:39:08 2021
Results reported at Tue Sep 28 16:39:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1260 338.971 -36.4605 565920001 566179201 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 :                                   634.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            790 sec.

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

