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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1594
RA = 338.971, Dec = -36.4605
tmin = 652492801, tmax = 652752001
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='395082', job_status='RUN', time_executed='2021-09-28 16:31:24.574466', time_epoch_executed='1632871884.57' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395082

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395082/ft1_4FGL_J2235.8-3627_daily_bin1594.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395082/ft2_4FGL_J2235.8-3627_daily_bin1594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395082/ft1_4FGL_J2235.8-3627_daily_bin1594.fits outfile=/scratch/kocevski/395082/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1594.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=652492801.0 tmax=652752001.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.42
user 4.19
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395082/ft1_filtered_4FGL_J2235.8-3627_daily_bin1594.fits" evtable="EVENTS" scfile=/scratch/kocevski/395082/ft2_4FGL_J2235.8-3627_daily_bin1594.fits sctable="SC_DATA" outfile=/scratch/kocevski/395082/ltcube_652492801_652752001_4FGL_J2235.8-3627_daily_bin1594.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/395082/ft2_4FGL_J2235.8-3627_daily_bin1594.fits
.....................!
real 15.37
user 14.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395082/ft1_filtered_4FGL_J2235.8-3627_daily_bin1594.fits evtable="EVENTS" scfile=/scratch/kocevski/395082/ft2_4FGL_J2235.8-3627_daily_bin1594.fits sctable="SC_DATA" expcube=/scratch/kocevski/395082/ltcube_652492801_652752001_4FGL_J2235.8-3627_daily_bin1594.fits outfile=/scratch/kocevski/395082/expmap_652492801_652752001_4FGL_J2235.8-3627_daily_bin1594.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/395082/ltcube_652492801_652752001_4FGL_J2235.8-3627_daily_bin1594.fits
.....................!
real 190.76
user 185.14
sys 5.25

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/395082/ft1_filtered_4FGL_J2235.8-3627_daily_bin1594.fits scfile=/scratch/kocevski/395082/ft2_4FGL_J2235.8-3627_daily_bin1594.fits outfile=/scratch/kocevski/395082/cmap_652492801_652752001_4FGL_J2235.8-3627_daily_bin1594.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395082/ft1_filtered_4FGL_J2235.8-3627_daily_bin1594.fits scfile=/scratch/kocevski/395082/ft2_4FGL_J2235.8-3627_daily_bin1594.fits outfile=/scratch/kocevski/395082/cmap_HighResolution_652492801_652752001_4FGL_J2235.8-3627_daily_bin1594.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.56
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395082/ft1_filtered_4FGL_J2235.8-3627_daily_bin1594.fits evtable="EVENTS" scfile=/scratch/kocevski/395082/ft2_4FGL_J2235.8-3627_daily_bin1594.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395082/Model_4FGL_J2235.8-3627_daily_bin1594.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/395082/ft1_filtered_4FGL_J2235.8-3627_daily_bin1594.fits.....................!
real 36.93
user 35.68
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.374       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8412       1.0000         .10000E-03   10000.    
     3 'norm      '    3.4777       1.0000         .10000E-03   10000.    
     4 'norm      '    2.5868       1.0000         .10000E-03   10000.    
     5 'norm      '    .88014       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .80888       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.423       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.371       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.138       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11538E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4526       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    36.675       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99432       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .71979       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=   4229.621     FROM MIGRAD    STATUS=CONVERGED    697 CALLS     3635 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.374        9.3721       -.63720E-07   -.42134E-03
   2  Prefactor     3.8402        6.1511        .11657E-05   -.13933E-02
   3  norm          3.4769        4.8378        .10788E-05   -.16709E-02
   4  norm          2.5879        4.6498        .17742E-07   -.10073E-03
   5  norm          .88011        .38734       -.80445E-08    .39396E-04
   6  Prefactor     .81553        5.0937       -.46724E-06    .41915E-05
   7  Prefactor     .10000E-03    1.3412        .27671E-08** at limit **
   8  norm          .10000E-03    15.479        .39773E-05** at limit **
   9  Prefactor     .10000E-03    11.700       -.52930E-07** at limit **
  10  Prefactor     14.424        16.705        .26279E-06    .71132E-04
  11  Prefactor     .10000E-03    10.292       -.16047E-05** at limit **
  12  norm          .10000E-03    1.0479        .48458E-07** at limit **
  13  Prefactor     30.365        46.225       -.42431E-05   -.11962E-03
  14  Prefactor     26.145        13.405        .15700E-05    .58222E-03
  15  Prefactor     .10000E-03    1.9807        .76526E-08** at limit **
  16  norm          .10000E-03    1.0785        .36349E-08** at limit **
  17  Prefactor     .10011E-03    9.7041       -.23800E-05** at limit **
  18  Prefactor     4.4404        5.4144       -.20627E-06    .72915E-03
  19  norm          .10000E-03    .13970        .10230E-07** at limit **
  20  Prefactor     .10000E-03    17.465       -.66131E-06** at limit **
  21  Prefactor     .10000E-03    5.2241        .39575E-08** at limit **
  22  norm          .10000E-03    8.7301        .17225E-05** at limit **
  23  norm          .10000E-03    1.5306        .10315E-07** at limit **
  24  norm          .10000E-03    3.4351        .36203E-07** at limit **
  25  Prefactor     .10000E-03    10.391       -.15995E-05** at limit **
  26  Prefactor     36.665        46.213       -.81675E-05   -.30519E-03
  27  norm          .10000E-03    1.1062        .26154E-07** at limit **
  28  Normalizat    .99381        .19141        .39417E-06    .75843E-04
  29  Prefactor     .72027        .17799       -.27150E-06    .90212E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3742
  Prefactor  = 3.84015
  norm       = 3.47687
  norm       = 2.58792
  norm       = 0.880108
  Prefactor  = 0.815528
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 14.4239
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.3655
  Prefactor  = 26.1452
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100114
  Prefactor  = 4.4404
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.6654
  norm       = 0.0001
  Normalizat = 0.993808
  Prefactor  = 0.720268
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.374        9.3557        .59395E-03   -1.5033    
   2  Prefactor     3.8402        7.2256        .10296E-02   -1.5316    
   3  norm          3.4769        5.7836        .97745E-03   -1.5335    
   4  norm          2.5879        4.6360        .17420E-03   -1.5386    
   5  norm          .88011        .38769        .25231E-04   -1.5520    
   6  Prefactor     .81553        15.631        .27453E-02   -1.5527    
   7  Prefactor     .10000E-03    1.3582        .73534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    15.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.424        16.696        .10547E-03   -1.4948    
  11  Prefactor     .10000E-03    10.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.0527        .64859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     30.365        46.556        .72703E-04   -1.4605    
  14  Prefactor     26.145        13.568        .78356E-04   -1.4685    
  15  Prefactor     .10000E-03    1.9836        .89385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.0798        .65949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10011E-03    26.891        .33754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.4404        4.7888        .14147E-03   -1.5286    
  19  norm          .10000E-03    .14156        .23659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.2671        .14511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.7565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.5310        .78581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.4474        .11771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     36.665        47.359        .66178E-04   -1.4496    
  27  norm          .10000E-03    1.1086        .66799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .99381        .23103        .21298E-03   -.93238    
  29  Prefactor     .72027        .21436        .23857E-03   -1.0274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07821e-08
Minuit parameter uncertainties:
  1  9.35685
  2  7.22725
  3  5.78448
  4  4.63663
  5  0.387691
  6  7.1425
  7  8.19404e-07
  8  0.00037556
  9  5.30498e-06
  10  16.7018
  11  0.00012179
  12  9.68255e-06
  13  46.6113
  14  13.5698
  15  3.83802e-07
  16  1.17142e-06
  17  0.00350988
  18  4.78923
  19  7.17615e-07
  20  6.70584e-05
  21  9.42481e-06
  22  0.00011574
  23  2.6059e-07
  24  1.33845e-05
  25  0.00011846
  26  47.4076
  27  7.06616e-07
  28  0.231265
  29  0.214606
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.442e+01  1.670e+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:  7.203e-01  2.146e-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.938e-01  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.38
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.02e-08 +/- 2.33e-08
Energy Flux (Fixed Index): 8.59e-06 +/- 9.95e-06

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

Saving results to:
/scratch/kocevski/395082/likelihoodResults_652492801_652752001_4FGL_J2235.8-3627_daily_bin1594.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) = 4229.43374778
delta logL = 0.187060288841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4229.39674208
delta logL = 0.224065988546

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.859       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7011       1.0000          .0000       10.000    
     3 'Normalizat'    1.0052       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71112       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=   4229.397     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      248 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.853        21.538        .89878E-04   -.12649E-06
   2  Index         1.7011        .67311        .89475E-02   -.53255E-04
   3  Normalizat    1.0052        .21638        .21188E-03    .23072E-05
   4  Prefactor     .71112        .21032        .23987E-03   -.36494E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8527
  Index      = 1.70112
  Normalizat = 1.0052
  Prefactor  = 0.711125
 **********
 **   18 **HESSE 
 **********

 FCN=   4229.397     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.853        21.534        .35951E-05   -1.4817    
   2  Index         1.7011        .67308        .17895E-02   -.72052    
   3  Normalizat    1.0052        .21659        .84752E-05   -.92856    
   4  Prefactor     .71112        .21052        .95948E-05   -1.0309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66344e-13
Minuit parameter uncertainties:
  1  21.5419
  2  0.676733
  3  0.216783
  4  0.210754
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395082': 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) = 4229.39674204
delta logL = 0.224066027748

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.985e+01  2.154e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.701e+00  6.767e-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.111e-01  2.108e-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.005e+00  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.84
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 1.70 +/- 0.68
Photon Flux (Free Index): 1.43e-08 +/- 1.80e-08
Energy Flux (Free Index): 2.32e-05 +/- 4.34e-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/395082/cmap_HighResolution_652492801_652752001_4FGL_J2235.8-3627_daily_bin1594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.41e-03', comment='SUCCESS', photon_flux='2.02e-08', energy_flux2='2.32e-05', photon_flux_error='2.33e-08', dlogl='2.24e-01', energy_flux='8.59e-06', photon_flux2='1.43e-08', job_status='DONE', time_completed='2021-09-28 16:42:17.108455', photon_index_error2='0.68', photon_index2='1.70', ts='1.38', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='8.40e-08', energy_flux_error2='4.34e-05', EG='0.99', time_epoch_completed='1632872537.11', return_code='0', job_id='395082', GAL2='0.71', EG2='1.01', return_code2='0', energy_flux_error='9.95e-06', photon_flux_error2='1.80e-08', ts2='1.84', photon_index='2.23' WHERE bin_id='1594' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:42:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 395082: <4FGL_J2235.8-3627_daily_bin1594> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1594 338.971 -36.4605 652492801 652752001 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 :                                   648.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            688 sec.

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

