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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1588
RA = 338.971, Dec = -36.4605
tmin = 650937601, tmax = 651196801
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='395072', job_status='RUN', time_executed='2021-09-28 16:33:12.235272', time_epoch_executed='1632871992.24' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395072

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395072/ft1_4FGL_J2235.8-3627_daily_bin1588.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395072/ft2_4FGL_J2235.8-3627_daily_bin1588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395072/ft1_4FGL_J2235.8-3627_daily_bin1588.fits outfile=/scratch/kocevski/395072/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1588.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=650937601.0 tmax=651196801.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.68
user 3.44
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395072/ft1_filtered_4FGL_J2235.8-3627_daily_bin1588.fits" evtable="EVENTS" scfile=/scratch/kocevski/395072/ft2_4FGL_J2235.8-3627_daily_bin1588.fits sctable="SC_DATA" outfile=/scratch/kocevski/395072/ltcube_650937601_651196801_4FGL_J2235.8-3627_daily_bin1588.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/395072/ft2_4FGL_J2235.8-3627_daily_bin1588.fits
.....................!
real 11.82
user 11.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395072/ft1_filtered_4FGL_J2235.8-3627_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/395072/ft2_4FGL_J2235.8-3627_daily_bin1588.fits sctable="SC_DATA" expcube=/scratch/kocevski/395072/ltcube_650937601_651196801_4FGL_J2235.8-3627_daily_bin1588.fits outfile=/scratch/kocevski/395072/expmap_650937601_651196801_4FGL_J2235.8-3627_daily_bin1588.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/395072/ltcube_650937601_651196801_4FGL_J2235.8-3627_daily_bin1588.fits
.....................!
real 190.51
user 184.83
sys 5.23

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/395072/ft1_filtered_4FGL_J2235.8-3627_daily_bin1588.fits scfile=/scratch/kocevski/395072/ft2_4FGL_J2235.8-3627_daily_bin1588.fits outfile=/scratch/kocevski/395072/cmap_650937601_651196801_4FGL_J2235.8-3627_daily_bin1588.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/395072/ft1_filtered_4FGL_J2235.8-3627_daily_bin1588.fits scfile=/scratch/kocevski/395072/ft2_4FGL_J2235.8-3627_daily_bin1588.fits outfile=/scratch/kocevski/395072/cmap_HighResolution_650937601_651196801_4FGL_J2235.8-3627_daily_bin1588.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.55
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395072/ft1_filtered_4FGL_J2235.8-3627_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/395072/ft2_4FGL_J2235.8-3627_daily_bin1588.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395072/Model_4FGL_J2235.8-3627_daily_bin1588.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/395072/ft1_filtered_4FGL_J2235.8-3627_daily_bin1588.fits.....................!
real 36.57
user 35.18
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0718       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1693       1.0000         .10000E-03   10000.    
     3 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.7008       1.0000         .10000E-03   10000.    
     5 'norm      '    .86929       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2426       1.0000         .10000E-03   10000.    
     8 'norm      '    20.838       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .40346E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.032       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.119       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4723       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8139       1.0000         .10000E-03   10000.    
    19 'norm      '    .71142       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4687       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    12.136       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .74503       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2416       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=   4029.070     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3714 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0722        12.487       -.15823E-06    .41456E-05
   2  Prefactor     4.1665        12.280        .47566E-07    .37820E-05
   3  norm          .10000E-03    3.9026       -.37624E-07** at limit **
   4  norm          1.7021        10.818        .13307E-05    .30077E-05
   5  norm          .86925        .54782       -.88768E-07    .47230E-04
   6  Prefactor     .10000E-03    6.3979       -.62715E-07** at limit **
   7  Prefactor     1.2446        4.6494        .13586E-05   -.36794E-04
   8  norm          20.816        27.956       -.39757E-06    .49345E-05
   9  Prefactor     .10000E-03    542.98       -.35464E-05** at limit **
  10  Prefactor     17.030        17.858        .54227E-07    .15598E-05
  11  Prefactor     .10000E-03    12.428        .95155E-07** at limit **
  12  norm          .10000E-03    1.9852        .41961E-07** at limit **
  13  Prefactor     .10000E-03    118.20        .22374E-07** at limit **
  14  Prefactor     45.122        22.130       -.21577E-06    .11390E-04
  15  Prefactor     7.4708        10.162        .71249E-06   -.38571E-05
  16  norm          .10000E-03    2.6073        .52532E-07** at limit **
  17  Prefactor     .10000E-03    15.760        .98469E-07** at limit **
  18  Prefactor     7.8114        12.911       -.17271E-06   -.76271E-05
  19  norm          .71171        .89601       -.75518E-07   -.14039E-03
  20  Prefactor     .10000E-03    26.604        .24757E-06** at limit **
  21  Prefactor     1.4695        15.491        .15543E-05    .10337E-04
  22  norm          .10000E-03    43.855       -.13240E-05** at limit **
  23  norm          .10000E-03    2.4665       -.31874E-07** at limit **
  24  norm          12.137        12.757       -.25106E-06    .13413E-04
  25  Prefactor     .10000E-03    61.916        .10835E-05** at limit **
  26  Prefactor     .10000E-03    58.417        .75476E-06** at limit **
  27  norm          .10000E-03    2.9060       -.33427E-06** at limit **
  28  Normalizat    .74509        .23843        .11909E-05    .30206E-04
  29  Prefactor     1.2417        .22772        .43119E-06    .52494E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.07218
  Prefactor  = 4.16654
  norm       = 0.0001
  norm       = 1.70211
  norm       = 0.869255
  Prefactor  = 0.0001
  Prefactor  = 1.24455
  norm       = 20.8159
  Prefactor  = 0.000100001
  Prefactor  = 17.03
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.1217
  Prefactor  = 7.47077
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.81145
  norm       = 0.711709
  Prefactor  = 0.0001
  Prefactor  = 1.46954
  norm       = 0.0001
  norm       = 0.0001
  norm       = 12.1375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.745088
  Prefactor  = 1.24167
 **********
 **   18 **HESSE 
 **********

 FCN=   4029.070     FROM HESSE     STATUS=OK           555 CALLS     4269 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0722        12.407        .89270E-03   -1.5257    
   2  Prefactor     4.1665        12.237        .98693E-03   -1.5300    
   3  norm          .10000E-03    3.9094        .12247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7021        11.007        .16127E-02   -1.5447    
   5  norm          .86925        .55117        .30446E-04   -1.5522    
   6  Prefactor     .10000E-03    6.4382        .15680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2446        4.5692        .24458E-03   -1.5485    
   8  norm          20.816        27.948        .87742E-04   -1.4795    
   9  Prefactor     .10000E-03    547.27        .38967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.030        17.858        .97049E-04   -1.4882    
  11  Prefactor     .10000E-03    12.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.0342        .17446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    118.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     45.122        22.175        .59688E-04   -1.4363    
  15  Prefactor     7.4708        10.140        .14672E-03   -1.5161    
  16  norm          .10000E-03    2.6122        .99960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.8114        12.794        .71724E-03   -1.5149    
  19  norm          .71171        .85408        .53985E-03   -1.5539    
  20  Prefactor     .10000E-03    26.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.4695        15.401        .17734E-02   -1.5466    
  22  norm          .10000E-03    44.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.4713        .97340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          12.137        12.755        .11499E-03   -1.5011    
  25  Prefactor     .10000E-03    62.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    58.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    5.2002        .20980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .74509        .28995        .29757E-03   -1.0214    
  29  Prefactor     1.2417        .28023        .22863E-03   -.85058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17999e-10
Minuit parameter uncertainties:
  1  12.4132
  2  12.2441
  3  2.93531e-06
  4  8.65897
  5  0.55117
  6  1.34951e-05
  7  4.57046
  8  27.9654
  9  0.00109431
  10  17.8638
  11  1.91042e-05
  12  2.94942e-06
  13  8.76731e-05
  14  22.1789
  15  10.1426
  16  1.15309e-06
  17  1.81179e-06
  18  12.7983
  19  0.854098
  20  2.30642e-05
  21  9.51752
  22  4.55925e-05
  23  1.95566e-07
  24  12.7576
  25  0.000135152
  26  9.25111e-05
  27  2.04234e-05
  28  0.290552
  29  0.280569
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.703e+01  1.786e+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.242e+00  2.806e-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:  7.451e-01  2.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.88
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.38e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 1.06e-05

TS (Fixed Index): 2.88
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/395072/likelihoodResults_650937601_651196801_4FGL_J2235.8-3627_daily_bin1588.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) = 4028.33768828
delta logL = 0.732571917971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4028.32199966
delta logL = 0.748260540289

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.705       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4593       1.0000          .0000       10.000    
     3 'Normalizat'    .75840       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2327       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=   4028.322     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      216 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.720        22.824        .85134E-05   -.78228E-04
   2  Index         1.4597        .56252        .53391E-04    .84076E-05
   3  Normalizat    .75854        .22666       -.39717E-06   -.20307E-03
   4  Prefactor     1.2326        .22038       -.65655E-06   -.21974E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.7201
  Index      = 1.45972
  Normalizat = 0.758538
  Prefactor  = 1.2326
 **********
 **   18 **HESSE 
 **********

 FCN=   4028.322     FROM HESSE     STATUS=OK            29 CALLS      245 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.720        22.529        .88023E-04   -1.4797    
   2  Index         1.4597        .55529        .80938E-02   -.78674    
   3  Normalizat    .75854        .27444        .29507E-03   -1.0163    
   4  Prefactor     1.2326        .26720        .22928E-03   -.85334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44158e-10
Minuit parameter uncertainties:
  1  22.5381
  2  0.557605
  3  0.27494
  4  0.267499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395072': 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) = 4028.32199923
delta logL = 0.748260965132

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.072e+01  2.254e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.460e+00  5.576e-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.233e+00  2.675e-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:  7.585e-01  2.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.38
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 1.46 +/- 0.56
Photon Flux (Free Index): 1.26e-08 +/- 1.51e-08
Energy Flux (Free Index): 4.55e-05 +/- 7.12e-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/395072/cmap_HighResolution_650937601_651196801_4FGL_J2235.8-3627_daily_bin1588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.76e-03', comment='SUCCESS', photon_flux='2.38e-08', energy_flux2='4.55e-05', photon_flux_error='2.50e-08', dlogl='7.48e-01', energy_flux='1.01e-05', photon_flux2='1.26e-08', job_status='DONE', time_completed='2021-09-28 16:43:27.286568', photon_index_error2='0.56', photon_index2='1.46', ts='2.88', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='7.12e-05', EG='0.75', time_epoch_completed='1632872607.29', return_code='0', job_id='395072', GAL2='1.23', EG2='0.76', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='1.51e-08', ts2='4.38', photon_index='2.23' WHERE bin_id='1588' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:43:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 395072: <4FGL_J2235.8-3627_daily_bin1588> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1588 338.971 -36.4605 650937601 651196801 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 :                                   607.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            762 sec.

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

