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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1546
RA = 338.971, Dec = -36.4605
tmin = 640051201, tmax = 640310401
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='395004', job_status='RUN', time_executed='2021-09-28 16:32:02.280352', time_epoch_executed='1632871922.28' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1546'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395004

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395004/ft1_4FGL_J2235.8-3627_daily_bin1546.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395004/ft2_4FGL_J2235.8-3627_daily_bin1546.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395004/ft1_4FGL_J2235.8-3627_daily_bin1546.fits outfile=/scratch/kocevski/395004/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1546.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=640051201.0 tmax=640310401.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.60
user 3.39
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395004/ft1_filtered_4FGL_J2235.8-3627_daily_bin1546.fits" evtable="EVENTS" scfile=/scratch/kocevski/395004/ft2_4FGL_J2235.8-3627_daily_bin1546.fits sctable="SC_DATA" outfile=/scratch/kocevski/395004/ltcube_640051201_640310401_4FGL_J2235.8-3627_daily_bin1546.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/395004/ft2_4FGL_J2235.8-3627_daily_bin1546.fits
.....................!
real 11.99
user 11.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395004/ft1_filtered_4FGL_J2235.8-3627_daily_bin1546.fits evtable="EVENTS" scfile=/scratch/kocevski/395004/ft2_4FGL_J2235.8-3627_daily_bin1546.fits sctable="SC_DATA" expcube=/scratch/kocevski/395004/ltcube_640051201_640310401_4FGL_J2235.8-3627_daily_bin1546.fits outfile=/scratch/kocevski/395004/expmap_640051201_640310401_4FGL_J2235.8-3627_daily_bin1546.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/395004/ltcube_640051201_640310401_4FGL_J2235.8-3627_daily_bin1546.fits
.....................!
real 192.41
user 186.82
sys 5.24

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/395004/ft1_filtered_4FGL_J2235.8-3627_daily_bin1546.fits scfile=/scratch/kocevski/395004/ft2_4FGL_J2235.8-3627_daily_bin1546.fits outfile=/scratch/kocevski/395004/cmap_640051201_640310401_4FGL_J2235.8-3627_daily_bin1546.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=338.971 yref=-36.4605 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395004/ft1_filtered_4FGL_J2235.8-3627_daily_bin1546.fits scfile=/scratch/kocevski/395004/ft2_4FGL_J2235.8-3627_daily_bin1546.fits outfile=/scratch/kocevski/395004/cmap_HighResolution_640051201_640310401_4FGL_J2235.8-3627_daily_bin1546.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395004/ft1_filtered_4FGL_J2235.8-3627_daily_bin1546.fits evtable="EVENTS" scfile=/scratch/kocevski/395004/ft2_4FGL_J2235.8-3627_daily_bin1546.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395004/Model_4FGL_J2235.8-3627_daily_bin1546.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/395004/ft1_filtered_4FGL_J2235.8-3627_daily_bin1546.fits.....................!
real 50.24
user 48.92
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51798       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.0799       1.0000         .10000E-03   10000.    
     5 'norm      '    .55265       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4932       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .60804       1.0000         .10000E-03   10000.    
     8 'norm      '    30.331       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20560E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.876       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13346E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0810       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11561E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.521       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1022       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10567E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7234       1.0000         .10000E-03   10000.    
    19 'norm      '    1.8267       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .67318E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .32534E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    24.371       1.0000         .10000E-03   10000.    
    23 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.4889       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11051       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.8845       1.0000         .10000E-03   10000.    
    27 'norm      '    2.6836       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .94301       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .85629       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=   6785.227     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     3804 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53256        3.3932       -.16455E-06   -.34797E-04
   2  Prefactor     .10000E-03    2.6227       -.13507E-07** at limit **
   3  norm          .10000E-03    1.6927        .10897E-07** at limit **
   4  norm          3.0804        3.4550       -.62065E-07   -.31991E-04
   5  norm          .55262        .25114       -.34442E-08    .27128E-04
   6  Prefactor     2.4863        1.3062        .10333E-06   -.10444E-02
   7  Prefactor     .60833        1.8080       -.78277E-07   -.93320E-04
   8  norm          30.315        20.624       -.12925E-05   -.15149E-04
   9  Prefactor     .10000E-03    11.512       -.46119E-08** at limit **
  10  Prefactor     15.837        20.582       -.50059E-05    .10355E-04
  11  Prefactor     .10000E-03    41.836       -.28947E-05** at limit **
  12  norm          1.0810        1.7322        .34074E-07   -.37233E-04
  13  Prefactor     .10000E-03    44.716        .39163E-05** at limit **
  14  Prefactor     28.535        11.894        .66371E-06    .10660E-04
  15  Prefactor     .10000E-03    1.5731        .16627E-08** at limit **
  16  norm          2.1028        2.4007        .24892E-07   -.28613E-04
  17  Prefactor     .10000E-03    7.5358       -.71043E-08** at limit **
  18  Prefactor     8.7714        10.639       -.40443E-06   -.11939E-03
  19  norm          1.8247        .78482        .11854E-07   -.60241E-03
  20  Prefactor     .10000E-03    116.94        .16333E-05** at limit **
  21  Prefactor     .10000E-03    7.1170        .21470E-06** at limit **
  22  norm          24.328        24.976        .31862E-05    .12533E-04
  23  norm          .10000E-03    1.2605        .17970E-08** at limit **
  24  norm          1.4897        4.0503        .40241E-07   -.28939E-04
  25  Prefactor     .10000E-03    23.809       -.60362E-06** at limit **
  26  Prefactor     2.9301        57.099       -.81542E-05   -.26309E-05
  27  norm          2.6877        2.8584        .13637E-09    .10043E-03
  28  Normalizat    .94307        .16368        .60295E-06    .59100E-04
  29  Prefactor     .85625        .15328        .14620E-06    .79418E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.532563
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.08042
  norm       = 0.552625
  Prefactor  = 2.48628
  Prefactor  = 0.60833
  norm       = 30.3151
  Prefactor  = 0.0001
  Prefactor  = 15.8365
  Prefactor  = 0.0001
  norm       = 1.08101
  Prefactor  = 0.0001
  Prefactor  = 28.535
  Prefactor  = 0.0001
  norm       = 2.10282
  Prefactor  = 0.0001
  Prefactor  = 8.77138
  norm       = 1.82475
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.3277
  norm       = 0.0001
  norm       = 1.48974
  Prefactor  = 0.0001
  Prefactor  = 2.93009
  norm       = 2.68769
  Normalizat = 0.943074
  Prefactor  = 0.856245
 **********
 **   18 **HESSE 
 **********

 FCN=   6785.227     FROM HESSE     STATUS=OK           577 CALLS     4381 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53256        7.1456        .29175E-02   -1.5562    
   2  Prefactor     .10000E-03    2.6386        .13025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.6997        .10465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.0804        3.4419        .15066E-03   -1.5357    
   5  norm          .55262        .25276        .26180E-04   -1.5559    
   6  Prefactor     2.4863        5.3164        .12943E-02   -1.5393    
   7  Prefactor     .60833        1.9414        .18172E-02   -1.5552    
   8  norm          30.315        20.590        .72751E-04   -1.4606    
   9  Prefactor     .10000E-03    11.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.837        20.636        .10052E-03   -1.4912    
  11  Prefactor     .10000E-03    42.762        .41121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0810        1.4797        .13199E-02   -1.5500    
  13  Prefactor     .10000E-03    44.917        .20664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.535        11.925        .75018E-04   -1.4639    
  15  Prefactor     .10000E-03    1.5752        .10089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1028        2.3856        .12903E-03   -1.5418    
  17  Prefactor     .10000E-03    7.5512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.7714        10.442        .13571E-03   -1.5116    
  19  norm          1.8247        .81723        .37141E-04   -1.5438    
  20  Prefactor     .10000E-03    118.71        .18762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    50.543        .36770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          24.328        24.993        .81142E-04   -1.4721    
  23  norm          .10000E-03    1.2608        .90304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.4897        4.0064        .26560E-03   -1.5464    
  25  Prefactor     .10000E-03    27.275        .11356       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.9301        57.307        .23930E-03   -1.5366    
  27  norm          2.6877        2.8518        .13476E-03   -1.5380    
  28  Normalizat    .94307        .19712        .23295E-03   -.94963    
  29  Prefactor     .85625        .18521        .23748E-03   -.97687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56488e-08
Minuit parameter uncertainties:
  1  3.90173
  2  1.13369e-06
  3  5.84992e-07
  4  3.44213
  5  0.252764
  6  5.31739
  7  1.94162
  8  20.5953
  9  8.75232e-07
  10  20.645
  11  0.0002493
  12  1.47978
  13  1.04747e-05
  14  11.9259
  15  3.32347e-07
  16  2.38569
  17  5.31924e-06
  18  10.4442
  19  0.817234
  20  2.21546e-05
  21  0.000114123
  22  25.0034
  23  1.54432e-07
  24  4.0071
  25  0.000183949
  26  25.9446
  27  2.85197
  28  0.197274
  29  0.185345
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.584e+01  2.064e+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.562e-01  1.853e-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.431e-01  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/395004/likelihoodResults_640051201_640310401_4FGL_J2235.8-3627_daily_bin1546.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) = 6784.92163465
delta logL = 0.305813448178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6784.91737472
delta logL = 0.310073379146

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3918       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9309       1.0000          .0000       10.000    
     3 'Normalizat'    .91890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87206       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=   6784.917     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      278 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3845        24.401        .13839E-03   -.41848E-03
   2  Index         2.9304        1.5570        .72574E-02   -.11660E-03
   3  Normalizat    .91931        .18896        .23556E-03    .32358E-03
   4  Prefactor     .87178        .18305        .23553E-03    .28124E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.38445
  Index      = 2.93042
  Normalizat = 0.919307
  Prefactor  = 0.871779
 **********
 **   18 **HESSE 
 **********

 FCN=   6784.917     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3845        16.214        .55354E-05   -1.5129    
   2  Index         2.9304        1.0447        .29030E-03   -.42675    
   3  Normalizat    .91931        .18854        .47111E-04   -.95785    
   4  Prefactor     .87178        .18223        .47107E-04   -.97134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45327e-10
Minuit parameter uncertainties:
  1  16.2225
  2  1.05409
  3  0.188677
  4  0.182362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395004': 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) = 6784.91737132
delta logL = 0.310076776664

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  8.384e+00  1.622e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.930e+00  1.054e+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:  8.718e-01  1.824e-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.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 2.93 +/- 1.05
Photon Flux (Free Index): 3.77e-08 +/- 3.72e-08
Energy Flux (Free Index): 7.81e-06 +/- 8.05e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/395004/cmap_HighResolution_640051201_640310401_4FGL_J2235.8-3627_daily_bin1546.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.43e-03', comment='SUCCESS', energy_flux2='7.81e-06', dlogl='3.10e-01', photon_flux2='3.77e-08', job_status='DONE', time_completed='2021-09-28 16:46:21.113131', photon_index_error2='1.05', photon_index2='2.93', ts='0.73', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='8.43e-08', energy_flux_error2='8.05e-06', EG='0.94', time_epoch_completed='1632872781.11', return_code='0', job_id='395004', GAL2='0.87', EG2='0.92', return_code2='0', photon_flux_error2='3.72e-08', ts2='1.37', photon_index='2.23' WHERE bin_id='1546' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:46:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 395004: <4FGL_J2235.8-3627_daily_bin1546> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1546 338.971 -36.4605 640051201 640310401 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 :                                   854.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

