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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1410
RA = 338.971, Dec = -36.4605
tmin = 604800001, tmax = 605059201
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='394790', job_status='RUN', time_executed='2021-09-28 16:31:26.305530', time_epoch_executed='1632871886.31' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394790

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394790/ft1_4FGL_J2235.8-3627_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394790/ft2_4FGL_J2235.8-3627_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394790/ft1_4FGL_J2235.8-3627_daily_bin1410.fits outfile=/scratch/kocevski/394790/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1410.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=604800001.0 tmax=605059201.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 5.12
user 4.85
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394790/ft1_filtered_4FGL_J2235.8-3627_daily_bin1410.fits" evtable="EVENTS" scfile=/scratch/kocevski/394790/ft2_4FGL_J2235.8-3627_daily_bin1410.fits sctable="SC_DATA" outfile=/scratch/kocevski/394790/ltcube_604800001_605059201_4FGL_J2235.8-3627_daily_bin1410.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/394790/ft2_4FGL_J2235.8-3627_daily_bin1410.fits
.....................!
real 11.74
user 11.24
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394790/ft1_filtered_4FGL_J2235.8-3627_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/394790/ft2_4FGL_J2235.8-3627_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/394790/ltcube_604800001_605059201_4FGL_J2235.8-3627_daily_bin1410.fits outfile=/scratch/kocevski/394790/expmap_604800001_605059201_4FGL_J2235.8-3627_daily_bin1410.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/394790/ltcube_604800001_605059201_4FGL_J2235.8-3627_daily_bin1410.fits
.....................!
real 190.11
user 185.56
sys 3.98

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/394790/ft1_filtered_4FGL_J2235.8-3627_daily_bin1410.fits scfile=/scratch/kocevski/394790/ft2_4FGL_J2235.8-3627_daily_bin1410.fits outfile=/scratch/kocevski/394790/cmap_604800001_605059201_4FGL_J2235.8-3627_daily_bin1410.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.54
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394790/ft1_filtered_4FGL_J2235.8-3627_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/394790/ft2_4FGL_J2235.8-3627_daily_bin1410.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394790/Model_4FGL_J2235.8-3627_daily_bin1410.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/394790/ft1_filtered_4FGL_J2235.8-3627_daily_bin1410.fits......................!
real 33.79
user 32.52
sys 1.06

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .20668       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3043       1.0000         .10000E-03   10000.    
     8 'norm      '    43.693       1.0000         .10000E-03   10000.    
     9 'Prefactor '    60.280       1.0000         .10000E-03   10000.    
    10 'Prefactor '    58.182       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.344       1.0000         .10000E-03   10000.    
    12 'norm      '    .10768E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10191E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7929       1.0000         .10000E-03   10000.    
    19 'norm      '    .78814       1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.039       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .38483E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    17.289       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    16.569       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    66.211       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1789       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .82281       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=   3837.587     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3682 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8521        .49564E-05** at limit **
   2  Prefactor     .10000E-03    4.5801        .16225E-05** at limit **
   3  norm          .10000E-03    8.2357       -.67209E-05** at limit **
   4  norm          .10000E-03    1.3603       -.15699E-06** at limit **
   5  norm          .20667        .26175       -.45091E-07   -.80902E-03
   6  Prefactor     .10000E-03    4.3089       -.11314E-05** at limit **
   7  Prefactor     3.3035        4.3574       -.85153E-06   -.24613E-03
   8  norm          43.695        31.101       -.85622E-06   -.58777E-04
   9  Prefactor     60.285        55.925        .64867E-05    .28495E-04
  10  Prefactor     58.182        38.012        .30422E-05    .20438E-04
  11  Prefactor     15.319        36.161       -.17078E-04    .14702E-04
  12  norm          .10000E-03    2.7134        .22410E-06** at limit **
  13  Prefactor     .10000E-03    33.220        .11002E-05** at limit **
  14  Prefactor     .10000E-03    9.8801        .71586E-05** at limit **
  15  Prefactor     .10000E-03    5.7397       -.25635E-05** at limit **
  16  norm          .10000E-03    3.4209        .38875E-06** at limit **
  17  Prefactor     .10000E-03    9.1667       -.21705E-05** at limit **
  18  Prefactor     8.8047        17.105       -.10865E-04   -.88937E-03
  19  norm          .78659        1.0778        .10280E-05   -.14395E-02
  20  Prefactor     39.016        82.988       -.30897E-04    .20631E-05
  21  Prefactor     .10006E-03    26.596        .56527E-05** at limit **
  22  norm          17.289        20.850       -.33447E-06    .74935E-05
  23  norm          .10000E-03    2.5119        .10602E-06** at limit **
  24  norm          16.569        15.225        .11744E-05   -.35641E-05
  25  Prefactor     .10000E-03    13.056       -.20698E-05** at limit **
  26  Prefactor     66.199        94.074       -.13660E-04   -.11649E-04
  27  norm          .10000E-03    1.6840        .18593E-07** at limit **
  28  Normalizat    1.1791        .25284        .72741E-05   -.52407E-03
  29  Prefactor     .82269        .22671       -.22220E-05   -.16483E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.206673
  Prefactor  = 0.0001
  Prefactor  = 3.30354
  norm       = 43.6945
  Prefactor  = 60.2846
  Prefactor  = 58.1824
  Prefactor  = 15.3192
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.80472
  norm       = 0.786591
  Prefactor  = 39.0159
  Prefactor  = 0.000100059
  norm       = 17.2892
  norm       = 0.0001
  norm       = 16.5692
  Prefactor  = 0.0001
  Prefactor  = 66.1988
  norm       = 0.0001
  Normalizat = 1.17908
  Prefactor  = 0.822692
 **********
 **   18 **HESSE 
 **********

 FCN=   3837.587     FROM HESSE     STATUS=OK           549 CALLS     4231 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8769        .15792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.5901        .12940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.4730        .34630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.3627        .70554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .20667        .24328        .34644E-03   -1.5617    
   6  Prefactor     .10000E-03    4.3288        .12557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.3035        4.3482        .14060E-03   -1.5344    
   8  norm          43.695        31.058        .60651E-04   -1.4385    
   9  Prefactor     60.285        55.888        .51678E-04   -1.4154    
  10  Prefactor     58.182        38.051        .52595E-04   -1.4181    
  11  Prefactor     15.319        35.966        .10225E-03   -1.4925    
  12  norm          .10000E-03    2.7942        .19892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.9070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.7729        .14482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.4357        .11179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.1560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.8047        16.152        .13517E-03   -1.5114    
  19  norm          .78659        .98339        .60372E-03   -1.5531    
  20  Prefactor     39.016        82.377        .64150E-04   -1.4458    
  21  Prefactor     .10006E-03    156.52        .52786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.289        20.849        .96323E-04   -1.4876    
  23  norm          .10000E-03    2.5172        .95888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          16.569        15.216        .98395E-04   -1.4894    
  25  Prefactor     .10000E-03    13.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     66.199        93.941        .49323E-04   -1.4079    
  27  norm          .10000E-03    1.6860        .78508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1791        .30924        .24137E-03   -.87252    
  29  Prefactor     .82269        .27791        .26506E-03   -.98897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82928e-09
Minuit parameter uncertainties:
  1  4.63527e-05
  2  1.79559e-05
  3  2.49566e-05
  4  2.33706e-06
  5  0.243279
  6  1.2795e-05
  7  4.34865
  8  31.0694
  9  55.937
  10  38.0665
  11  36.0165
  12  1.27532e-05
  13  7.54074e-05
  14  2.0039e-05
  15  9.41217e-06
  16  3.82972e-05
  17  4.09113e-05
  18  16.1604
  19  0.983408
  20  82.6183
  21  0.0060721
  22  20.858
  23  1.78378e-06
  24  15.2198
  25  8.56347e-06
  26  94.152
  27  2.0454e-06
  28  0.309723
  29  0.278382
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  5.818e+01  3.807e+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:  8.227e-01  2.784e-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.179e+00  3.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.89
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 8.14e-08 +/- 5.32e-08
Energy Flux (Fixed Index): 3.47e-05 +/- 2.27e-05

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) = 3837.52158361
delta logL = 0.0653529368929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3837.51889301
delta logL = 0.0680435348791

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.845       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4226       1.0000          .0000       10.000    
     3 'Normalizat'    1.1626       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83350       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=   3837.519     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      260 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.845        42.266        .56801E-04   -.44153E-04
   2  Index         2.4231        .55900        .49508E-02   -.53121E-04
   3  Normalizat    1.1623        .29397        .24283E-03    .40966E-04
   4  Prefactor     .83367        .27239        .26348E-03    .40840E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.8454
  Index      = 2.42306
  Normalizat = 1.16232
  Prefactor  = 0.83367
 **********
 **   18 **HESSE 
 **********

 FCN=   3837.519     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.845        40.802        .11360E-04   -1.4295    
   2  Index         2.4231        .53927        .19803E-03   -.54146    
   3  Normalizat    1.1623        .29414        .97131E-05   -.87775    
   4  Prefactor     .83367        .27256        .10539E-04   -.98499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99113e-11
Minuit parameter uncertainties:
  1  40.8251
  2  0.540709
  3  0.294555
  4  0.273002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394790': 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) = 3837.51889221
delta logL = 0.0680443341766

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  4.985e+01  4.083e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.423e+00  5.407e-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:  8.337e-01  2.730e-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.162e+00  2.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.01
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 2.42 +/- 0.54
Photon Flux (Free Index): 9.42e-08 +/- 6.70e-08
Energy Flux (Free Index): 3.00e-05 +/- 2.14e-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/394790/cmap_HighResolution_604800001_605059201_4FGL_J2235.8-3627_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.14e-08', energy_flux2='3.00e-05', photon_flux_error='5.32e-08', dlogl='6.80e-02', energy_flux='3.47e-05', photon_flux2='9.42e-08', job_status='DONE', time_completed='2021-09-28 16:40:36.670519', photon_index_error2='0.54', photon_index2='2.42', ts='4.89', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.14e-05', EG='1.18', time_epoch_completed='1632872436.67', return_code='0', job_id='394790', GAL2='0.83', EG2='1.16', return_code2='0', energy_flux_error='2.27e-05', photon_flux_error2='6.70e-08', ts2='5.01', photon_index='2.23' WHERE bin_id='1410' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:40:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 394790: <4FGL_J2235.8-3627_daily_bin1410> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1410 338.971 -36.4605 604800001 605059201 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 :                                   544.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            614 sec.

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

