/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 80 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 = 7444
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1427
RA = 338.971, Dec = -36.4605
tmin = 609206401, tmax = 609465601
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='394815', job_status='RUN', time_executed='2021-09-28 16:32:04.846533', time_epoch_executed='1632871924.85' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394815

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394815/ft1_4FGL_J2235.8-3627_daily_bin1427.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394815/ft2_4FGL_J2235.8-3627_daily_bin1427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394815/ft1_4FGL_J2235.8-3627_daily_bin1427.fits outfile=/scratch/kocevski/394815/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1427.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=609206401.0 tmax=609465601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.08
user 2.81
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394815/ft1_filtered_4FGL_J2235.8-3627_daily_bin1427.fits" evtable="EVENTS" scfile=/scratch/kocevski/394815/ft2_4FGL_J2235.8-3627_daily_bin1427.fits sctable="SC_DATA" outfile=/scratch/kocevski/394815/ltcube_609206401_609465601_4FGL_J2235.8-3627_daily_bin1427.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/394815/ft2_4FGL_J2235.8-3627_daily_bin1427.fits
.....................!
real 12.27
user 11.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394815/ft1_filtered_4FGL_J2235.8-3627_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/394815/ft2_4FGL_J2235.8-3627_daily_bin1427.fits sctable="SC_DATA" expcube=/scratch/kocevski/394815/ltcube_609206401_609465601_4FGL_J2235.8-3627_daily_bin1427.fits outfile=/scratch/kocevski/394815/expmap_609206401_609465601_4FGL_J2235.8-3627_daily_bin1427.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/394815/ltcube_609206401_609465601_4FGL_J2235.8-3627_daily_bin1427.fits
.....................!
real 192.75
user 187.08
sys 5.22

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/394815/ft1_filtered_4FGL_J2235.8-3627_daily_bin1427.fits scfile=/scratch/kocevski/394815/ft2_4FGL_J2235.8-3627_daily_bin1427.fits outfile=/scratch/kocevski/394815/cmap_609206401_609465601_4FGL_J2235.8-3627_daily_bin1427.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.57
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394815/ft1_filtered_4FGL_J2235.8-3627_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/394815/ft2_4FGL_J2235.8-3627_daily_bin1427.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394815/Model_4FGL_J2235.8-3627_daily_bin1427.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/394815/ft1_filtered_4FGL_J2235.8-3627_daily_bin1427.fits.....................!
real 54.01
user 52.60
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .45950       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .12884E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1931       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6506       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8072       1.0000         .10000E-03   10000.    
     8 'norm      '    74.526       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11748E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3207       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5442       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5943       1.0000         .10000E-03   10000.    
    16 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0970       1.0000         .10000E-03   10000.    
    19 'norm      '    .38795       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17770E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4503       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .13367       1.0000         .10000E-03   10000.    
    24 'norm      '    11.645       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .14537E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10730E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.3007       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .91575       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1338       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=   7396.579     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     3263 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5853        .66104E-09** at limit **
   2  Prefactor     .45962        4.8896       -.38200E-06    .86983E-04
   3  norm          .10000E-03    1.8135       -.22392E-07** at limit **
   4  norm          .10000E-03    2.0865       -.24780E-06** at limit **
   5  norm          1.1933        .34752       -.14723E-08    .74336E-03
   6  Prefactor     1.6506        11.736       -.51078E-06    .29599E-04
   7  Prefactor     3.8090        3.4606       -.21234E-06   -.47065E-04
   8  norm          74.535        30.111        .39603E-07    .11377E-04
   9  Prefactor     .10000E-03    78.164       -.40723E-05** at limit **
  10  Prefactor     2.3035        28.430        .13083E-06    .20357E-04
  11  Prefactor     .10000E-03    22.013       -.79341E-06** at limit **
  12  norm          .10000E-03    1.2223       -.44681E-07** at limit **
  13  Prefactor     .10000E-03    41.500        .17964E-05** at limit **
  14  Prefactor     8.5454        11.962        .44366E-08    .35224E-04
  15  Prefactor     3.5941        4.0879       -.11495E-06   -.26933E-04
  16  norm          .10000E-03    2.0874        .35678E-06** at limit **
  17  Prefactor     .10000E-03    4.1359        .16579E-06** at limit **
  18  Prefactor     3.0923        12.147        .88933E-06    .51062E-03
  19  norm          .38864        .65442       -.14310E-06   -.51709E-03
  20  Prefactor     .10000E-03    88.208       -.16475E-05** at limit **
  21  Prefactor     3.4504        12.676       -.67089E-06    .28375E-03
  22  norm          .10000E-03    8.0792       -.23058E-07** at limit **
  23  norm          .14215        9.7070        .22403E-05   -.59381E-03
  24  norm          11.646        7.1709       -.71423E-07   -.28804E-05
  25  Prefactor     .10000E-03    113.75        .70667E-05** at limit **
  26  Prefactor     .10000E-03    58.522       -.27688E-05** at limit **
  27  norm          3.2903        3.2668        .81635E-06    .52128E-03
  28  Normalizat    .91540        .17928       -.22143E-06    .20974E-03
  29  Prefactor     1.1340        .16395        .91971E-06    .21490E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.459621
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.19329
  Prefactor  = 1.65057
  Prefactor  = 3.80896
  norm       = 74.5348
  Prefactor  = 0.000100003
  Prefactor  = 2.30352
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.54542
  Prefactor  = 3.59412
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.09233
  norm       = 0.388636
  Prefactor  = 0.000100001
  Prefactor  = 3.45041
  norm       = 0.0001
  norm       = 0.142154
  norm       = 11.646
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  norm       = 3.29028
  Normalizat = 0.915402
  Prefactor  = 1.13399
 **********
 **   18 **HESSE 
 **********

 FCN=   7396.579     FROM HESSE     STATUS=OK           561 CALLS     3824 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6733        .17977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .45962        4.9137        .36855E-03   -1.5572    
   3  norm          .10000E-03    1.8195        .11310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.9720        .23705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1933        .34363        .26155E-04   -1.5489    
   6  Prefactor     1.6506        11.647        .32862E-03   -1.5451    
   7  Prefactor     3.8090        3.4638        .14355E-03   -1.5318    
   8  norm          74.535        29.984        .46509E-04   -1.3979    
   9  Prefactor     .10000E-03    80.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3035        28.026        .26926E-03   -1.5404    
  11  Prefactor     .10000E-03    22.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.6923        .18404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    41.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.5454        12.006        .13714E-03   -1.5123    
  15  Prefactor     3.5941        4.0820        .17975E-03   -1.5329    
  16  norm          .10000E-03    4.5026        .22820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.1394        .17077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.0923        13.898        .11522E-02   -1.5356    
  19  norm          .38864        .65423        .66373E-03   -1.5583    
  20  Prefactor     .10000E-03    89.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.4504        11.885        .10887E-02   -1.5336    
  22  norm          .10000E-03    8.0902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .14215        20.848        .28183E-02   -1.5633    
  24  norm          11.646        7.1743        .11739E-03   -1.5025    
  25  Prefactor     .10000E-03    112.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    59.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.2903        3.7329        .14309E-03   -1.5345    
  28  Normalizat    .91540        .21887        .25974E-03   -.95921    
  29  Prefactor     1.1340        .20132        .23322E-03   -.88387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81177e-09
Minuit parameter uncertainties:
  1  3.19782e-06
  2  3.00561
  3  1.36413e-06
  4  1.1092e-05
  5  0.34363
  6  8.77107
  7  3.46398
  8  29.9896
  9  0.00103629
  10  16.0786
  11  0.000116078
  12  2.98867e-05
  13  0.000380556
  14  12.0095
  15  4.08236
  16  7.35423e-05
  17  8.75334e-06
  18  13.1163
  19  0.654237
  20  0.000510557
  21  11.8936
  22  4.58904e-06
  23  3.44307
  24  7.17487
  25  0.00106683
  26  0.000690398
  27  3.73316
  28  0.219084
  29  0.201451
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.304e+00  1.608e+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.134e+00  2.015e-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:  9.154e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 6.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394815/likelihoodResults_609206401_609465601_4FGL_J2235.8-3627_daily_bin1427.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7396.526703
delta logL = 0.0527102791602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7396.51132592
delta logL = 0.06808736319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0340       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6257       1.0000          .0000       10.000    
     3 'Normalizat'    .91937       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1292       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=   7396.511     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      285 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0296        14.603        .17922E-03    .42691E-04
   2  Index         1.6251        1.1785        .18539E-01   -.14990E-04
   3  Normalizat    .91933        .19553        .25923E-03   -.11661E-03
   4  Prefactor     1.1293        .19434        .23363E-03   -.90609E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.0296
  Index      = 1.62515
  Normalizat = 0.919325
  Prefactor  = 1.12927
 **********
 **   18 **HESSE 
 **********

 FCN=   7396.511     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0296        15.014        .71689E-05   -1.5259    
   2  Index         1.6251        1.2120        .74157E-03   -.74092    
   3  Normalizat    .91933        .19574        .10369E-04   -.95784    
   4  Prefactor     1.1293        .19456        .93450E-05   -.88536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46822e-11
Minuit parameter uncertainties:
  1  15.0248
  2  1.23491
  3  0.195896
  4  0.194679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394815': 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) = 7396.51132579
delta logL = 0.0680874963746

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  5.030e+00  1.502e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.625e+00  1.235e+00  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.129e+00  1.947e-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:  9.193e-01  1.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 338.971 -36.461

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/394815/cmap_HighResolution_609206401_609465601_4FGL_J2235.8-3627_daily_bin1427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-03', job_status='DONE', photon_flux_upper_limit='6.44e-08', time_completed='2021-09-28 16:46:09.083899', job_id='394815', GAL2='1.13', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632872769.08', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='6.81e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1427' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:46:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 394815: <4FGL_J2235.8-3627_daily_bin1427> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1427 338.971 -36.4605 609206401 609465601 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 :                                   840.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            944 sec.

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

