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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1320
RA = 338.971, Dec = -36.4605
tmin = 581472001, tmax = 581731201
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='393919', job_status='RUN', time_executed='2021-09-28 16:27:33.067687', time_epoch_executed='1632871653.07' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393919

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393919/ft1_4FGL_J2235.8-3627_daily_bin1320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393919/ft2_4FGL_J2235.8-3627_daily_bin1320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393919/ft1_4FGL_J2235.8-3627_daily_bin1320.fits outfile=/scratch/kocevski/393919/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1320.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=581472001.0 tmax=581731201.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 2.82
user 2.56
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393919/ft1_filtered_4FGL_J2235.8-3627_daily_bin1320.fits" evtable="EVENTS" scfile=/scratch/kocevski/393919/ft2_4FGL_J2235.8-3627_daily_bin1320.fits sctable="SC_DATA" outfile=/scratch/kocevski/393919/ltcube_581472001_581731201_4FGL_J2235.8-3627_daily_bin1320.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/393919/ft2_4FGL_J2235.8-3627_daily_bin1320.fits
.....................!
real 12.74
user 12.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393919/ft1_filtered_4FGL_J2235.8-3627_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/393919/ft2_4FGL_J2235.8-3627_daily_bin1320.fits sctable="SC_DATA" expcube=/scratch/kocevski/393919/ltcube_581472001_581731201_4FGL_J2235.8-3627_daily_bin1320.fits outfile=/scratch/kocevski/393919/expmap_581472001_581731201_4FGL_J2235.8-3627_daily_bin1320.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/393919/ltcube_581472001_581731201_4FGL_J2235.8-3627_daily_bin1320.fits
.....................!
real 193.53
user 188.12
sys 4.96

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/393919/ft1_filtered_4FGL_J2235.8-3627_daily_bin1320.fits scfile=/scratch/kocevski/393919/ft2_4FGL_J2235.8-3627_daily_bin1320.fits outfile=/scratch/kocevski/393919/cmap_581472001_581731201_4FGL_J2235.8-3627_daily_bin1320.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393919/ft1_filtered_4FGL_J2235.8-3627_daily_bin1320.fits scfile=/scratch/kocevski/393919/ft2_4FGL_J2235.8-3627_daily_bin1320.fits outfile=/scratch/kocevski/393919/cmap_HighResolution_581472001_581731201_4FGL_J2235.8-3627_daily_bin1320.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.58
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393919/ft1_filtered_4FGL_J2235.8-3627_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/393919/ft2_4FGL_J2235.8-3627_daily_bin1320.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393919/Model_4FGL_J2235.8-3627_daily_bin1320.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/393919/ft1_filtered_4FGL_J2235.8-3627_daily_bin1320.fits.....................!
real 53.29
user 51.81
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.476       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.9885       1.0000         .10000E-03   10000.    
     4 'norm      '    2.1896       1.0000         .10000E-03   10000.    
     5 'norm      '    .63837       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9073       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.7631       1.0000         .10000E-03   10000.    
     8 'norm      '    59.159       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.458       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.843       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.106       1.0000         .10000E-03   10000.    
    16 'norm      '    3.8563       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19879E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.250       1.0000         .10000E-03   10000.    
    19 'norm      '    2.5416       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.2986       1.0000         .10000E-03   10000.    
    23 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.5708       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    80.174       1.0000         .10000E-03   10000.    
    27 'norm      '    11.209       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5638       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88673       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=   6926.986     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     3127 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.479        13.879        .88156E-07    .28582E-04
   2  Prefactor     .10000E-03    3.7186        .65967E-08** at limit **
   3  norm          9.9876        9.4188        .54852E-07    .34458E-04
   4  norm          2.1895        4.4822       -.69025E-07    .48999E-04
   5  norm          .63836        .34196        .36681E-08    .64152E-04
   6  Prefactor     7.9095        9.7749        .10504E-05   -.55581E-04
   7  Prefactor     7.7643        5.3221        .28286E-06   -.13791E-03
   8  norm          59.156        30.840        .13699E-06   -.35684E-04
   9  Prefactor     30.460        38.388       -.68965E-07    .87245E-05
  10  Prefactor     14.845        14.141       -.95857E-08    .13373E-04
  11  Prefactor     .10000E-03    24.774       -.56210E-06** at limit **
  12  norm          .10000E-03    .63190        .74286E-08** at limit **
  13  Prefactor     .10000E-03    17.650       -.11283E-06** at limit **
  14  Prefactor     .10000E-03    5.8852        .53471E-07** at limit **
  15  Prefactor     11.107        8.0672        .79295E-07   -.19202E-05
  16  norm          3.8556        4.6314        .12753E-05   -.25400E-03
  17  Prefactor     .10000E-03    40.386        .14830E-05** at limit **
  18  Prefactor     11.276        15.563        .26799E-06    .40601E-04
  19  norm          2.5371        1.1816       -.20949E-06   -.18222E-02
  20  Prefactor     .10000E-03    20.177        .79753E-06** at limit **
  21  Prefactor     .10000E-03    3.5017        .12797E-06** at limit **
  22  norm          2.2979        24.834        .72570E-05   -.65058E-04
  23  norm          .10000E-03    7.9008        .18127E-05** at limit **
  24  norm          9.5705        9.0054        .97020E-07    .20884E-04
  25  Prefactor     .10000E-03    25.601        .11120E-06** at limit **
  26  Prefactor     80.177        46.413       -.10014E-06    .29761E-04
  27  norm          11.211        5.7019       -.19516E-06    .19821E-03
  28  Normalizat    1.5634        .22332       -.11581E-05    .26123E-04
  29  Prefactor     .88707        .20371        .76168E-06    .39218E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4793
  Prefactor  = 0.0001
  norm       = 9.98763
  norm       = 2.18949
  norm       = 0.638357
  Prefactor  = 7.90946
  Prefactor  = 7.76429
  norm       = 59.1564
  Prefactor  = 30.4599
  Prefactor  = 14.8451
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1069
  norm       = 3.85558
  Prefactor  = 0.000100001
  Prefactor  = 11.2764
  norm       = 2.5371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.29794
  norm       = 0.000100002
  norm       = 9.57053
  Prefactor  = 0.000100001
  Prefactor  = 80.1767
  norm       = 11.2109
  Normalizat = 1.56341
  Prefactor  = 0.887073
 **********
 **   18 **HESSE 
 **********

 FCN=   6926.986     FROM HESSE     STATUS=OK           555 CALLS     3682 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.479        13.889        .88514E-04   -1.4803    
   2  Prefactor     .10000E-03    3.7237        .15670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.9876        9.4130        .12679E-03   -1.5076    
   4  norm          2.1895        4.4693        .23459E-03   -1.5412    
   5  norm          .63836        .34383        .33384E-04   -1.5548    
   6  Prefactor     7.9095        9.8073        .71296E-03   -1.5145    
   7  Prefactor     7.7643        5.3379        .14392E-03   -1.5151    
   8  norm          59.156        30.848        .52162E-04   -1.4168    
   9  Prefactor     30.460        38.380        .72598E-04   -1.4604    
  10  Prefactor     14.845        14.147        .10396E-03   -1.4937    
  11  Prefactor     .10000E-03    24.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .63300        .64602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.9003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.107        8.0689        .12022E-03   -1.5041    
  16  norm          3.8556        4.6309        .89085E-03   -1.5315    
  17  Prefactor     .10000E-03    41.641        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.276        16.686        .11944E-03   -1.5036    
  19  norm          2.5371        1.2660        .43342E-04   -1.5389    
  20  Prefactor     .10000E-03    20.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.5065        .15210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.2979        25.267        .13535E-02   -1.5405    
  23  norm          .10000E-03    8.5137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.5705        9.0037        .12954E-03   -1.5089    
  25  Prefactor     .10000E-03    25.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     80.177        46.460        .22427E-03   -1.3915    
  27  norm          11.211        5.7014        .11966E-03   -1.5038    
  28  Normalizat    1.5634        .27151        .26271E-03   -.76012    
  29  Prefactor     .88707        .24624        .32072E-03   -.96594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.17834e-10
Minuit parameter uncertainties:
  1  13.8913
  2  1.67998e-07
  3  9.41438
  4  4.46997
  5  0.343828
  6  9.8093
  7  5.33824
  8  30.8567
  9  38.4109
  10  14.1503
  11  5.10944e-05
  12  1.49193e-07
  13  3.27112e-05
  14  6.34823e-06
  15  8.06971
  16  4.63135
  17  0.000321106
  18  16.6924
  19  1.26602
  20  0.000131439
  21  1.32817e-05
  22  15.2476
  23  0.000287408
  24  9.00495
  25  0.000353764
  26  46.4809
  27  5.70166
  28  0.271764
  29  0.246548
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.485e+01  1.415e+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.871e-01  2.465e-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.563e+00  2.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.12
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.08e-08 +/- 1.98e-08
Energy Flux (Fixed Index): 8.84e-06 +/- 8.43e-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) = 6925.49475595
delta logL = 1.49162209917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6925.35000926
delta logL = 1.63636878969

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7239       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0088       1.0000          .0000       10.000    
     3 'Normalizat'    1.5790       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88199       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=   6925.350     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      219 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7239        7.0938        .38686E-02    .78365E-03
   2  Index         1.0088        .38778        .23897       -.60105E-04
   3  Normalizat    1.5790        .20964        .59150E-01    .40212E-05
   4  Prefactor     .88198        .20097        .72660E-01    .19848E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.72389
  Index      = 1.00877
  Normalizat = 1.57903
  Prefactor  = 0.881977
 **********
 **   18 **HESSE 
 **********

 FCN=   6925.350     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7239        10.661        .15474E-03   -1.5189    
   2  Index         1.0088        .61720        .99482E-02   -.92438    
   3  Normalizat    1.5790        .25199        .26157E-03   -.75581    
   4  Prefactor     .88198        .24126        .32151E-03   -.96774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01953e-09
Minuit parameter uncertainties:
  1  10.6639
  2  0.621609
  3  0.252195
  4  0.241556
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393919': 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) = 6925.35000926
delta logL = 1.63636879196

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  6.724e+00  1.066e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.009e+00  6.216e-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.820e-01  2.416e-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.579e+00  2.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.38
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 1.01 +/- 0.62
Photon Flux (Free Index): 4.63e-09 +/- 5.26e-09
Energy Flux (Free Index): 6.55e-05 +/- 9.29e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/393919/cmap_HighResolution_581472001_581731201_4FGL_J2235.8-3627_daily_bin1320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.08e-08', energy_flux2='6.55e-05', photon_flux_error='1.98e-08', dlogl='1.64e+00', energy_flux='8.84e-06', photon_flux2='4.63e-09', job_status='DONE', time_completed='2021-09-28 16:39:18.997893', photon_index_error2='0.62', photon_index2='1.01', ts='7.12', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='9.29e-05', EG='1.56', time_epoch_completed='1632872359.0', return_code='0', job_id='393919', GAL2='0.88', EG2='1.58', return_code2='0', energy_flux_error='8.43e-06', photon_flux_error2='5.26e-09', ts2='10.38', photon_index='2.23' WHERE bin_id='1320' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:39:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 393919: <4FGL_J2235.8-3627_daily_bin1320> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1320> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 16:26:06 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:26:08 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:26:08 2021
Terminated at Tue Sep 28 16:39:19 2021
Results reported at Tue Sep 28 16:39:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1320 338.971 -36.4605 581472001 581731201 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 :                                   706.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            793 sec.

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

