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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1418
RA = 338.971, Dec = -36.4605
tmin = 606873601, tmax = 607132801
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='394802', job_status='RUN', time_executed='2021-09-28 16:30:53.286985', time_epoch_executed='1632871853.29' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394802

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394802/ft1_4FGL_J2235.8-3627_daily_bin1418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394802/ft2_4FGL_J2235.8-3627_daily_bin1418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394802/ft1_4FGL_J2235.8-3627_daily_bin1418.fits outfile=/scratch/kocevski/394802/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1418.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=606873601.0 tmax=607132801.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.33
user 5.08
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394802/ft1_filtered_4FGL_J2235.8-3627_daily_bin1418.fits" evtable="EVENTS" scfile=/scratch/kocevski/394802/ft2_4FGL_J2235.8-3627_daily_bin1418.fits sctable="SC_DATA" outfile=/scratch/kocevski/394802/ltcube_606873601_607132801_4FGL_J2235.8-3627_daily_bin1418.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/394802/ft2_4FGL_J2235.8-3627_daily_bin1418.fits
.....................!
real 11.41
user 11.01
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394802/ft1_filtered_4FGL_J2235.8-3627_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/394802/ft2_4FGL_J2235.8-3627_daily_bin1418.fits sctable="SC_DATA" expcube=/scratch/kocevski/394802/ltcube_606873601_607132801_4FGL_J2235.8-3627_daily_bin1418.fits outfile=/scratch/kocevski/394802/expmap_606873601_607132801_4FGL_J2235.8-3627_daily_bin1418.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/394802/ltcube_606873601_607132801_4FGL_J2235.8-3627_daily_bin1418.fits
.....................!
real 191.49
user 185.85
sys 5.09

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/394802/ft1_filtered_4FGL_J2235.8-3627_daily_bin1418.fits scfile=/scratch/kocevski/394802/ft2_4FGL_J2235.8-3627_daily_bin1418.fits outfile=/scratch/kocevski/394802/cmap_606873601_607132801_4FGL_J2235.8-3627_daily_bin1418.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394802/ft1_filtered_4FGL_J2235.8-3627_daily_bin1418.fits scfile=/scratch/kocevski/394802/ft2_4FGL_J2235.8-3627_daily_bin1418.fits outfile=/scratch/kocevski/394802/cmap_HighResolution_606873601_607132801_4FGL_J2235.8-3627_daily_bin1418.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394802/ft1_filtered_4FGL_J2235.8-3627_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/394802/ft2_4FGL_J2235.8-3627_daily_bin1418.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394802/Model_4FGL_J2235.8-3627_daily_bin1418.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/394802/ft1_filtered_4FGL_J2235.8-3627_daily_bin1418.fits.....................!
real 50.84
user 49.50
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0059       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .20168E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.9021       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0869       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1202       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5869       1.0000         .10000E-03   10000.    
     8 'norm      '    15.307       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.965       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .94859       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.969       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7624       1.0000         .10000E-03   10000.    
    16 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9228       1.0000         .10000E-03   10000.    
    19 'norm      '    1.2421       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10938E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .26627E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    21.526       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10848E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .11932E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .70532       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1229       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=   6868.461     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3733 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0053        7.4733       -.24674E-06   -.47516E-03
   2  Prefactor     .10000E-03    12.879        .10347E-04** at limit **
   3  norm          .10001E-03    3.3077        .74876E-06** at limit **
   4  norm          6.9017        5.0226       -.18280E-06   -.12650E-03
   5  norm          1.0869        .36556        .11470E-07   -.20796E-03
   6  Prefactor     7.1204        8.0100        .60000E-07   -.43104E-03
   7  Prefactor     2.5867        2.6662        .39749E-07    .69191E-04
   8  norm          15.310        22.571        .10745E-05    .15878E-04
   9  Prefactor     .10000E-03    16.798       -.19366E-04** at limit **
  10  Prefactor     37.965        20.127        .15968E-06    .39062E-05
  11  Prefactor     .10000E-03    5.7427       -.28708E-06** at limit **
  12  norm          .94850        1.5009       -.61270E-07   -.13010E-03
  13  Prefactor     .10000E-03    13.931        .36319E-05** at limit **
  14  Prefactor     13.961        10.527        .29516E-06    .48317E-04
  15  Prefactor     1.7609        2.8451       -.42769E-07   -.20687E-02
  16  norm          .10000E-03    2.7519       -.22854E-06** at limit **
  17  Prefactor     .10000E-03    9.9470       -.55289E-05** at limit **
  18  Prefactor     3.9365        9.3477        .99624E-06   -.20648E-03
  19  norm          1.2423        .69020        .25688E-07    .32534E-02
  20  Prefactor     .10000E-03    23.917        .11308E-04** at limit **
  21  Prefactor     .10001E-03    8.4659       -.14845E-05** at limit **
  22  norm          .10000E-03    6.4510        .91241E-06** at limit **
  23  norm          .10000E-03    1.7167       -.16341E-06** at limit **
  24  norm          .10000E-03    2.4102       -.94892E-07** at limit **
  25  Prefactor     21.533        24.316        .33663E-05    .22171E-03
  26  Prefactor     .10000E-03    70.801       -.61875E-05** at limit **
  27  norm          .10000E-03    2.0415       -.65531E-06** at limit **
  28  Normalizat    .70525        .16985       -.23591E-07    .87719E-04
  29  Prefactor     1.1230        .16425       -.34389E-06    .38579E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.00534
  Prefactor  = 0.0001
  norm       = 0.000100005
  norm       = 6.90165
  norm       = 1.08692
  Prefactor  = 7.12044
  Prefactor  = 2.58675
  norm       = 15.3098
  Prefactor  = 0.0001
  Prefactor  = 37.9653
  Prefactor  = 0.0001
  norm       = 0.948495
  Prefactor  = 0.0001
  Prefactor  = 13.9607
  Prefactor  = 1.76087
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.93654
  norm       = 1.24232
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 21.533
  Prefactor  = 0.0001
  norm       = 0.000100001
  Normalizat = 0.705245
  Prefactor  = 1.12303
 **********
 **   18 **HESSE 
 **********

 FCN=   6868.461     FROM HESSE     STATUS=OK           559 CALLS     4292 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0053        7.4783        .13356E-03   -1.5108    
   2  Prefactor     .10000E-03    13.111        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    10.294        .29187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.9017        5.0401        .14332E-03   -1.5182    
   5  norm          1.0869        .36804        .26656E-04   -1.5499    
   6  Prefactor     7.1204        8.1573        .75165E-03   -1.5174    
   7  Prefactor     2.5867        2.6587        .13113E-03   -1.5386    
   8  norm          15.310        22.511        .10237E-03   -1.4925    
   9  Prefactor     .10000E-03    16.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     37.965        20.130        .65048E-04   -1.4475    
  11  Prefactor     .10000E-03    5.7511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .94850        1.2298        .12305E-02   -1.5513    
  13  Prefactor     .10000E-03    13.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.961        10.562        .10717E-03   -1.4961    
  15  Prefactor     1.7609        5.5558        .15780E-02   -1.5443    
  16  norm          .10000E-03    2.8154        .26742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.9884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.9365        10.295        .10184E-02   -1.5311    
  19  norm          1.2423        .76028        .38876E-04   -1.5485    
  20  Prefactor     .10000E-03    23.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    22.540        .40643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.4575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.7210        .10592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.4210        .12564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     21.533        22.717        .86330E-04   -1.4780    
  26  Prefactor     .10000E-03    71.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    3.5939        .21355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .70525        .20717        .26893E-03   -1.0369    
  29  Prefactor     1.1230        .19731        .21902E-03   -.88734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08468e-08
Minuit parameter uncertainties:
  1  7.47912
  2  7.79105e-05
  3  0.000464193
  4  5.04039
  5  0.368043
  6  8.15853
  7  2.65882
  8  22.5235
  9  4.4803e-05
  10  20.134
  11  8.58997e-07
  12  1.22984
  13  5.77901e-06
  14  10.5638
  15  5.5574
  16  5.36445e-06
  17  1.34936e-05
  18  10.2992
  19  0.760284
  20  3.28037e-05
  21  0.000804813
  22  7.6561e-07
  23  1.04425e-05
  24  4.61068e-08
  25  22.7259
  26  3.56419e-05
  27  0.000141939
  28  0.207399
  29  0.197434
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.797e+01  2.013e+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.123e+00  1.974e-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.052e-01  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.25
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 5.31e-08 +/- 2.81e-08
Energy Flux (Fixed Index): 2.26e-05 +/- 1.20e-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) = 6868.45423795
delta logL = 0.00660359731046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6868.45187089
delta logL = 0.00897066011294

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.612       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2886       1.0000          .0000       10.000    
     3 'Normalizat'    .70114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1255       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=   6868.452     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      263 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.610        22.342        .66234E-04    .10427E-02
   2  Index         2.2886        .45425        .58016E-02    .39170E-03
   3  Normalizat    .70137        .19341        .26960E-03   -.14692E-03
   4  Prefactor     1.1253        .19331        .21881E-03   -.10760E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.6103
  Index      = 2.28861
  Normalizat = 0.701366
  Prefactor  = 1.12533
 **********
 **   18 **HESSE 
 **********

 FCN=   6868.452     FROM HESSE     STATUS=OK            23 CALLS      286 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.610        21.820        .13247E-04   -1.4497    
   2  Index         2.2886        .44333        .23206E-03   -.57315    
   3  Normalizat    .70137        .19351        .10784E-04   -1.0384    
   4  Prefactor     1.1253        .19345        .43762E-04   -.88661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65199e-09
Minuit parameter uncertainties:
  1  21.8251
  2  0.444159
  3  0.193701
  4  0.193575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394802': 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) = 6868.45187019
delta logL = 0.00897136150343

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.661e+01  2.183e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.289e+00  4.442e-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.125e+00  1.936e-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.014e-01  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.26
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 2.29 +/- 0.44
Photon Flux (Free Index): 5.60e-08 +/- 3.59e-08
Energy Flux (Free Index): 2.16e-05 +/- 1.32e-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/394802/cmap_HighResolution_606873601_607132801_4FGL_J2235.8-3627_daily_bin1418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.31e-08', energy_flux2='2.16e-05', photon_flux_error='2.81e-08', dlogl='8.97e-03', energy_flux='2.26e-05', photon_flux2='5.60e-08', job_status='DONE', time_completed='2021-09-28 16:43:29.452490', photon_index_error2='0.44', photon_index2='2.29', ts='9.25', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.32e-05', EG='0.71', time_epoch_completed='1632872609.45', return_code='0', job_id='394802', GAL2='1.13', EG2='0.70', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='3.59e-08', ts2='9.26', photon_index='2.23' WHERE bin_id='1418' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:43:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 394802: <4FGL_J2235.8-3627_daily_bin1418> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1418> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:30:24 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:30:25 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:25 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_bin1418 338.971 -36.4605 606873601 607132801 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 :                                   751.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            786 sec.

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

