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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1365
RA = 338.971, Dec = -36.4605
tmin = 593136001, tmax = 593395201
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='394719', job_status='RUN', time_executed='2021-09-28 16:30:47.051058', time_epoch_executed='1632871847.05' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394719

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394719/ft1_4FGL_J2235.8-3627_daily_bin1365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394719/ft2_4FGL_J2235.8-3627_daily_bin1365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394719/ft1_4FGL_J2235.8-3627_daily_bin1365.fits outfile=/scratch/kocevski/394719/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1365.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=593136001.0 tmax=593395201.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.21
user 4.94
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394719/ft2_4FGL_J2235.8-3627_daily_bin1365.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/394719/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1365.fits evtable="EVENTS" outfile="/scratch/kocevski/394719/ft1_filtered_4FGL_J2235.8-3627_daily_bin1365.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394719/ft1_filtered_4FGL_J2235.8-3627_daily_bin1365.fits" evtable="EVENTS" scfile=/scratch/kocevski/394719/ft2_4FGL_J2235.8-3627_daily_bin1365.fits sctable="SC_DATA" outfile=/scratch/kocevski/394719/ltcube_593136001_593395201_4FGL_J2235.8-3627_daily_bin1365.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/394719/ft2_4FGL_J2235.8-3627_daily_bin1365.fits
.....................!
real 13.31
user 12.89
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394719/ft1_filtered_4FGL_J2235.8-3627_daily_bin1365.fits evtable="EVENTS" scfile=/scratch/kocevski/394719/ft2_4FGL_J2235.8-3627_daily_bin1365.fits sctable="SC_DATA" expcube=/scratch/kocevski/394719/ltcube_593136001_593395201_4FGL_J2235.8-3627_daily_bin1365.fits outfile=/scratch/kocevski/394719/expmap_593136001_593395201_4FGL_J2235.8-3627_daily_bin1365.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/394719/ltcube_593136001_593395201_4FGL_J2235.8-3627_daily_bin1365.fits
.....................!
real 191.93
user 185.83
sys 5.78

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/394719/ft1_filtered_4FGL_J2235.8-3627_daily_bin1365.fits scfile=/scratch/kocevski/394719/ft2_4FGL_J2235.8-3627_daily_bin1365.fits outfile=/scratch/kocevski/394719/cmap_593136001_593395201_4FGL_J2235.8-3627_daily_bin1365.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.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394719/ft1_filtered_4FGL_J2235.8-3627_daily_bin1365.fits evtable="EVENTS" scfile=/scratch/kocevski/394719/ft2_4FGL_J2235.8-3627_daily_bin1365.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394719/Model_4FGL_J2235.8-3627_daily_bin1365.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/394719/ft1_filtered_4FGL_J2235.8-3627_daily_bin1365.fits.....................!
real 49.79
user 48.43
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.9911       1.0000         .10000E-03   10000.    
     3 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.2596       1.0000         .10000E-03   10000.    
     5 'norm      '    .89432       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .65881E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5103       1.0000         .10000E-03   10000.    
     8 'norm      '    11.965       1.0000         .10000E-03   10000.    
     9 'Prefactor '    102.43       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8895       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3421       1.0000         .10000E-03   10000.    
    12 'norm      '    .10442E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2099       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.8858       1.0000         .10000E-03   10000.    
    20 'Prefactor '    51.764       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4612       1.0000         .10000E-03   10000.    
    22 'norm      '    18.413       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.6571       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .16883E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    22.483       1.0000         .10000E-03   10000.    
    27 'norm      '    .22662E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .77572       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0291       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=   6719.670     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3779 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4692        .53913E-07** at limit **
   2  Prefactor     9.9910        8.7666        .39881E-07    .31228E-04
   3  norm          .10000E-03    9.4591       -.20071E-07** at limit **
   4  norm          3.2604        3.8885       -.57827E-07    .13795E-03
   5  norm          .89433        .33382        .43463E-08    .10432E-04
   6  Prefactor     .10000E-03    50.974        .75746E-05** at limit **
   7  Prefactor     2.5112        2.9227       -.88693E-08    .33734E-04
   8  norm          11.966        11.730       -.94142E-07    .38552E-04
   9  Prefactor     102.42        47.370        .25526E-06   -.33535E-04
  10  Prefactor     9.8881        9.7583        .10181E-06   -.11117E-03
  11  Prefactor     1.3440        18.403       -.73129E-05    .10396E-03
  12  norm          .10000E-03    1.2570        .28745E-06** at limit **
  13  Prefactor     .10000E-03    35.408       -.40507E-06** at limit **
  14  Prefactor     .10000E-03    15.821        .36575E-06** at limit **
  15  Prefactor     4.2104        5.5419        .23131E-07    .10027E-04
  16  norm          .10000E-03    1.4875       -.18942E-06** at limit **
  17  Prefactor     .10000E-03    4.2799       -.29882E-06** at limit **
  18  Prefactor     .10000E-03    9.0157       -.19537E-05** at limit **
  19  norm          1.8861        .67892        .11825E-06    .50443E-03
  20  Prefactor     51.767        46.842        .70357E-07   -.29652E-05
  21  Prefactor     1.4664        14.144        .51958E-06    .37847E-04
  22  norm          18.410        16.950       -.76275E-07    .43022E-04
  23  norm          .10000E-03    1.7834       -.22276E-08** at limit **
  24  norm          4.6576        4.3580       -.20558E-07   -.48474E-04
  25  Prefactor     .10000E-03    101.17       -.13457E-05** at limit **
  26  Prefactor     22.486        25.869       -.41101E-07   -.27434E-05
  27  norm          .10000E-03    1.7457        .18229E-06** at limit **
  28  Normalizat    .77557        .16225        .12910E-05    .12999E-03
  29  Prefactor     1.0292        .15679       -.12295E-05   -.20108E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.99105
  norm       = 0.0001
  norm       = 3.2604
  norm       = 0.894327
  Prefactor  = 0.000100001
  Prefactor  = 2.51118
  norm       = 11.9659
  Prefactor  = 102.425
  Prefactor  = 9.88811
  Prefactor  = 1.34403
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 4.21043
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 1.88608
  Prefactor  = 51.7674
  Prefactor  = 1.46643
  norm       = 18.4104
  norm       = 0.0001
  norm       = 4.65762
  Prefactor  = 0.000100002
  Prefactor  = 22.4862
  norm       = 0.0001
  Normalizat = 0.775574
  Prefactor  = 1.02916
 **********
 **   18 **HESSE 
 **********

 FCN=   6719.670     FROM HESSE     STATUS=OK           567 CALLS     4346 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4986        .14901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.9910        8.7618        .12677E-03   -1.5076    
   3  norm          .10000E-03    9.6605        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2604        3.8871        .16226E-03   -1.5347    
   5  norm          .89433        .33442        .26836E-04   -1.5519    
   6  Prefactor     .10000E-03    5.2565        .51404E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5112        2.9049        .14275E-03   -1.5391    
   8  norm          11.966        11.718        .11581E-03   -1.5016    
   9  Prefactor     102.42        47.312        .39728E-04   -1.3680    
  10  Prefactor     9.8881        9.7585        .12742E-03   -1.5079    
  11  Prefactor     1.3440        18.868        .18912E-02   -1.5476    
  12  norm          .10000E-03    5.1794        .17699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    35.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.474        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2104        5.5296        .19640E-03   -1.5298    
  16  norm          .10000E-03    1.5105        .97720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.2985        .16583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.8484        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.8861        .67932        .35034E-04   -1.5433    
  20  Prefactor     51.767        46.841        .55743E-04   -1.4268    
  21  Prefactor     1.4664        14.156        .35591E-03   -1.5466    
  22  norm          18.410        16.949        .93339E-04   -1.4850    
  23  norm          .10000E-03    1.7899        .10686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.6576        4.3590        .16092E-03   -1.5276    
  25  Prefactor     .10000E-03    101.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     22.486        25.868        .84475E-04   -1.4759    
  27  norm          .10000E-03    7.0598        .20797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .77557        .18661        .25141E-03   -1.0098    
  29  Prefactor     1.0292        .18532        .22304E-03   -.91764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04663e-09
Minuit parameter uncertainties:
  1  2.4495e-05
  2  8.76291
  3  0.000133171
  4  3.88744
  5  0.33442
  6  0.000175713
  7  2.90505
  8  11.7202
  9  47.3296
  10  9.76007
  11  10.0751
  12  6.29092e-06
  13  0.0006189
  14  0.000108049
  15  5.53027
  16  1.19679e-05
  17  3.48176e-05
  18  0.00031754
  19  0.679326
  20  46.8748
  21  9.11496
  22  16.953
  23  4.34147e-06
  24  4.35926
  25  0.000866823
  26  25.8808
  27  2.47106e-05
  28  0.186768
  29  0.185433
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  9.888e+00  9.760e+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

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  1.029e+00  1.854e-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.756e-01  1.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.65
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.38e-08 +/- 1.36e-08
Energy Flux (Fixed Index): 5.89e-06 +/- 5.81e-06

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) = 6718.49476924
delta logL = 1.17489444732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6718.45346103
delta logL = 1.21620265835

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8995       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1788       1.0000          .0000       10.000    
     3 'Normalizat'    .78669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0241       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=   6718.453     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8667        7.0125        .38185E-02   -.25706E-02
   2  Index         1.1764        .41089        .25146       -.59433E-04
   3  Normalizat    .78682        .15437        .43436E-01    .17598E-04
   4  Prefactor     1.0240        .15659        .41754E-01    .82181E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.86667
  Index      = 1.17644
  Normalizat = 0.786824
  Prefactor  = 1.02398
 **********
 **   18 **HESSE 
 **********

 FCN=   6718.453     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8667        9.2951        .76370E-03   -1.5184    
   2  Index         1.1764        .60051        .10063E-01   -.87060    
   3  Normalizat    .78682        .18161        .24968E-03   -1.0056    
   4  Prefactor     1.0240        .18431        .22350E-03   -.91935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58252e-11
Minuit parameter uncertainties:
  1  9.29707
  2  0.604037
  3  0.181751
  4  0.184422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394719': 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) = 6718.45345297
delta logL = 1.21621071847

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  6.867e+00  9.297e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.176e+00  6.040e-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.024e+00  1.844e-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.868e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.08
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 1.18 +/- 0.60
Photon Flux (Free Index): 4.15e-09 +/- 4.91e-09
Energy Flux (Free Index): 3.71e-05 +/- 5.68e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/394719/cmap_HighResolution_593136001_593395201_4FGL_J2235.8-3627_daily_bin1365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.38e-08', energy_flux2='3.71e-05', photon_flux_error='1.36e-08', dlogl='1.22e+00', energy_flux='5.89e-06', photon_flux2='4.15e-09', job_status='DONE', time_completed='2021-09-28 16:43:16.430583', photon_index_error2='0.60', photon_index2='1.18', ts='5.65', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='5.68e-05', EG='0.78', time_epoch_completed='1632872596.43', return_code='0', job_id='394719', GAL2='1.02', EG2='0.79', return_code2='0', energy_flux_error='5.81e-06', photon_flux_error2='4.91e-09', ts2='8.08', photon_index='2.23' WHERE bin_id='1365' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:43:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 394719: <4FGL_J2235.8-3627_daily_bin1365> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1365 338.971 -36.4605 593136001 593395201 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 :                                   745.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            781 sec.

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

