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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1431
RA = 338.971, Dec = -36.4605
tmin = 610243201, tmax = 610502401
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='394821', job_status='RUN', time_executed='2021-09-28 16:31:28.249347', time_epoch_executed='1632871888.25' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394821

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394821/ft1_4FGL_J2235.8-3627_daily_bin1431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394821/ft2_4FGL_J2235.8-3627_daily_bin1431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394821/ft1_4FGL_J2235.8-3627_daily_bin1431.fits outfile=/scratch/kocevski/394821/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1431.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=610243201.0 tmax=610502401.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.91
user 3.66
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394821/ft1_filtered_4FGL_J2235.8-3627_daily_bin1431.fits" evtable="EVENTS" scfile=/scratch/kocevski/394821/ft2_4FGL_J2235.8-3627_daily_bin1431.fits sctable="SC_DATA" outfile=/scratch/kocevski/394821/ltcube_610243201_610502401_4FGL_J2235.8-3627_daily_bin1431.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/394821/ft2_4FGL_J2235.8-3627_daily_bin1431.fits
.....................!
real 11.80
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394821/ft1_filtered_4FGL_J2235.8-3627_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/394821/ft2_4FGL_J2235.8-3627_daily_bin1431.fits sctable="SC_DATA" expcube=/scratch/kocevski/394821/ltcube_610243201_610502401_4FGL_J2235.8-3627_daily_bin1431.fits outfile=/scratch/kocevski/394821/expmap_610243201_610502401_4FGL_J2235.8-3627_daily_bin1431.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/394821/ltcube_610243201_610502401_4FGL_J2235.8-3627_daily_bin1431.fits
.....................!
real 190.98
user 186.02
sys 4.65

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/394821/ft1_filtered_4FGL_J2235.8-3627_daily_bin1431.fits scfile=/scratch/kocevski/394821/ft2_4FGL_J2235.8-3627_daily_bin1431.fits outfile=/scratch/kocevski/394821/cmap_610243201_610502401_4FGL_J2235.8-3627_daily_bin1431.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.69
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394821/ft1_filtered_4FGL_J2235.8-3627_daily_bin1431.fits scfile=/scratch/kocevski/394821/ft2_4FGL_J2235.8-3627_daily_bin1431.fits outfile=/scratch/kocevski/394821/cmap_HighResolution_610243201_610502401_4FGL_J2235.8-3627_daily_bin1431.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/394821/ft1_filtered_4FGL_J2235.8-3627_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/394821/ft2_4FGL_J2235.8-3627_daily_bin1431.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394821/Model_4FGL_J2235.8-3627_daily_bin1431.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/394821/ft1_filtered_4FGL_J2235.8-3627_daily_bin1431.fits.....................!
real 40.18
user 38.91
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11460E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5515       1.0000         .10000E-03   10000.    
     3 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1156       1.0000         .10000E-03   10000.    
     5 'norm      '    .14812       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.149       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.311       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .28568E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .97096E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.153       1.0000         .10000E-03   10000.    
    19 'norm      '    1.3775       1.0000         .10000E-03   10000.    
    20 'Prefactor '    76.540       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.0270       1.0000         .10000E-03   10000.    
    23 'norm      '    4.1138       1.0000         .10000E-03   10000.    
    24 'norm      '    18.593       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.4508       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .95941       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0461       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=   4810.566     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3711 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.364        .12474E-05** at limit **
   2  Prefactor     5.5521        9.1940        .35889E-05   -.12507E-03
   3  norm          .10000E-03    9.4075       -.27000E-06** at limit **
   4  norm          1.1164        4.2823        .14063E-05   -.24054E-04
   5  norm          .14809        .21368       -.48333E-07   -.84413E-03
   6  Prefactor     .10000E-03    4.8305        .36716E-07** at limit **
   7  Prefactor     .10000E-03    2.0876        .34911E-07** at limit **
   8  norm          .10000E-03    25.742       -.30739E-06** at limit **
   9  Prefactor     .10001E-03    59.820       -.41054E-05** at limit **
  10  Prefactor     11.150        11.995       -.42406E-06    .17157E-04
  11  Prefactor     .10000E-03    19.540       -.17507E-05** at limit **
  12  norm          .10000E-03    1.6816        .59269E-07** at limit **
  13  Prefactor     .10001E-03    42.367        .50186E-05** at limit **
  14  Prefactor     22.314        17.139        .80483E-07   -.28370E-04
  15  Prefactor     .10000E-03    4.4178        .23221E-07** at limit **
  16  norm          .10007E-03    4.3682       -.21519E-06** at limit **
  17  Prefactor     .10018E-03    14.073        .11450E-05** at limit **
  18  Prefactor     14.155        18.186        .67436E-06   -.17499E-03
  19  norm          1.3774        1.0810        .52587E-07   -.50439E-03
  20  Prefactor     76.524        61.057       -.14028E-05   -.11154E-03
  21  Prefactor     .10000E-03    7.9604        .64314E-08** at limit **
  22  norm          7.0281        19.115        .27489E-06    .60899E-06
  23  norm          4.1134        4.2877        .20008E-06    .19020E-03
  24  norm          18.590        11.258        .69557E-07   -.73101E-06
  25  Prefactor     6.4482        21.359        .11526E-06    .70621E-05
  26  Prefactor     .10000E-03    56.943       -.12187E-05** at limit **
  27  norm          .10000E-03    1.3833        .19227E-07** at limit **
  28  Normalizat    .95925        .21583       -.34752E-07   -.71173E-04
  29  Prefactor     1.0462        .20333       -.78656E-06   -.44915E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.55211
  norm       = 0.0001
  norm       = 1.11635
  norm       = 0.148093
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 11.1499
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 22.3144
  Prefactor  = 0.0001
  norm       = 0.000100069
  Prefactor  = 0.000100178
  Prefactor  = 14.1548
  norm       = 1.37741
  Prefactor  = 76.5238
  Prefactor  = 0.0001
  norm       = 7.02812
  norm       = 4.11337
  norm       = 18.5898
  Prefactor  = 6.44823
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.95925
  Prefactor  = 1.04623
 **********
 **   18 **HESSE 
 **********

 FCN=   4810.566     FROM HESSE     STATUS=OK           555 CALLS     4266 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.021        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.5521        9.2705        .85257E-03   -1.5237    
   3  norm          .10000E-03    9.5570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1164        4.2347        .26397E-03   -1.5497    
   5  norm          .14809        .18934        .36731E-03   -1.5631    
   6  Prefactor     .10000E-03    4.8544        .14884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.1127        .97810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    25.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    61.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.150        11.999        .59991E-03   -1.5040    
  11  Prefactor     .10000E-03    19.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.7139        .87764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    44.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.314        17.181        .84801E-04   -1.4763    
  15  Prefactor     .10000E-03    4.4473        .14235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10007E-03    46.006        .24257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10018E-03    61.527        .44319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.155        17.348        .10647E-03   -1.4955    
  19  norm          1.3774        1.1145        .46971E-04   -1.5473    
  20  Prefactor     76.524        61.578        .45898E-04   -1.3956    
  21  Prefactor     .10000E-03    8.0098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.0281        19.106        .15133E-03   -1.5178    
  23  norm          4.1134        4.3053        .13679E-03   -1.5302    
  24  norm          18.590        11.257        .92886E-04   -1.4845    
  25  Prefactor     6.4482        21.378        .15802E-03   -1.5200    
  26  Prefactor     .10000E-03    57.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.3872        .79628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .95925        .25740        .25737E-03   -.94408    
  29  Prefactor     1.0462        .24140        .23857E-03   -.91204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68638e-09
Minuit parameter uncertainties:
  1  5.34252e-05
  2  9.27289
  3  3.53852e-05
  4  4.2358
  5  0.189339
  6  2.44587e-06
  7  2.57874e-06
  8  6.45275e-05
  9  0.0011212
  10  12.0013
  11  0.000260426
  12  1.8009e-06
  13  0.00117804
  14  17.185
  15  5.12885e-06
  16  0.00355678
  17  0.00662808
  18  17.3537
  19  1.11448
  20  61.6291
  21  1.19493e-05
  22  19.1227
  23  4.30558
  24  11.2584
  25  21.4033
  26  0.000326472
  27  9.5957e-08
  28  0.257737
  29  0.241655
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.115e+01  1.200e+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.046e+00  2.417e-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:  9.593e-01  2.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.11
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.56e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 6.64e-06 +/- 7.15e-06

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

Saving results to:
/scratch/kocevski/394821/likelihoodResults_610243201_610502401_4FGL_J2235.8-3627_daily_bin1431.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) = 4810.02229045
delta logL = 0.543399073643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4810.01850184
delta logL = 0.547187679391

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.144       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4463       1.0000          .0000       10.000    
     3 'Normalizat'    .97010       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0395       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=   4810.019     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      202 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.154        12.935        .28738E-02   -.46886E-03
   2  Index         1.4459        .52162        .26039       -.36931E-04
   3  Normalizat    .96994        .20567        .45791E-01    .14211E-04
   4  Prefactor     1.0397        .19907        .40570E-01   -.10370E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.1541
  Index      = 1.44591
  Normalizat = 0.969944
  Prefactor  = 1.03968
 **********
 **   18 **HESSE 
 **********

 FCN=   4810.019     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.154        13.697        .57476E-03   -1.5011    
   2  Index         1.4459        .64162        .98982E-02   -.79066    
   3  Normalizat    .96994        .24272        .25606E-03   -.94044    
   4  Prefactor     1.0397        .23509        .23917E-03   -.91418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53387e-12
Minuit parameter uncertainties:
  1  13.7007
  2  0.645237
  3  0.242996
  4  0.235326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394821': 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) = 4810.01850067
delta logL = 0.547188850808

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.215e+01  1.370e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.446e+00  6.452e-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.040e+00  2.353e-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:  9.699e-01  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.21
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 1.45 +/- 0.65
Photon Flux (Free Index): 7.33e-09 +/- 9.13e-09
Energy Flux (Free Index): 2.78e-05 +/- 5.04e-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/394821/cmap_HighResolution_610243201_610502401_4FGL_J2235.8-3627_daily_bin1431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.60e-03', comment='SUCCESS', photon_flux='1.56e-08', energy_flux2='2.78e-05', photon_flux_error='1.68e-08', dlogl='5.47e-01', energy_flux='6.64e-06', photon_flux2='7.33e-09', job_status='DONE', time_completed='2021-09-28 16:42:37.284853', photon_index_error2='0.65', photon_index2='1.45', ts='3.11', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='7.33e-08', energy_flux_error2='5.04e-05', EG='0.96', time_epoch_completed='1632872557.28', return_code='0', job_id='394821', GAL2='1.04', EG2='0.97', return_code2='0', energy_flux_error='7.15e-06', photon_flux_error2='9.13e-09', ts2='4.21', photon_index='2.23' WHERE bin_id='1431' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:42:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 394821: <4FGL_J2235.8-3627_daily_bin1431> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1431> 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) <bullet0274>, 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:38 2021
Results reported at Tue Sep 28 16:42:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1431 338.971 -36.4605 610243201 610502401 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 :                                   666.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            732 sec.

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

