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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1460
RA = 338.971, Dec = -36.4605
tmin = 617760001, tmax = 618019201
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='394868', job_status='RUN', time_executed='2021-09-28 16:32:40.576976', time_epoch_executed='1632871960.58' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1460'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394868

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394868/ft1_4FGL_J2235.8-3627_daily_bin1460.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394868/ft2_4FGL_J2235.8-3627_daily_bin1460.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394868/ft1_4FGL_J2235.8-3627_daily_bin1460.fits outfile=/scratch/kocevski/394868/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1460.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=617760001.0 tmax=618019201.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.66
user 2.45
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394868/ft1_filtered_4FGL_J2235.8-3627_daily_bin1460.fits" evtable="EVENTS" scfile=/scratch/kocevski/394868/ft2_4FGL_J2235.8-3627_daily_bin1460.fits sctable="SC_DATA" outfile=/scratch/kocevski/394868/ltcube_617760001_618019201_4FGL_J2235.8-3627_daily_bin1460.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/394868/ft2_4FGL_J2235.8-3627_daily_bin1460.fits
.....................!
real 12.32
user 11.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394868/ft1_filtered_4FGL_J2235.8-3627_daily_bin1460.fits evtable="EVENTS" scfile=/scratch/kocevski/394868/ft2_4FGL_J2235.8-3627_daily_bin1460.fits sctable="SC_DATA" expcube=/scratch/kocevski/394868/ltcube_617760001_618019201_4FGL_J2235.8-3627_daily_bin1460.fits outfile=/scratch/kocevski/394868/expmap_617760001_618019201_4FGL_J2235.8-3627_daily_bin1460.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/394868/ltcube_617760001_618019201_4FGL_J2235.8-3627_daily_bin1460.fits
.....................!
real 193.05
user 187.35
sys 5.30

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394868/ft1_filtered_4FGL_J2235.8-3627_daily_bin1460.fits scfile=/scratch/kocevski/394868/ft2_4FGL_J2235.8-3627_daily_bin1460.fits outfile=/scratch/kocevski/394868/cmap_HighResolution_617760001_618019201_4FGL_J2235.8-3627_daily_bin1460.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/394868/ft1_filtered_4FGL_J2235.8-3627_daily_bin1460.fits evtable="EVENTS" scfile=/scratch/kocevski/394868/ft2_4FGL_J2235.8-3627_daily_bin1460.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394868/Model_4FGL_J2235.8-3627_daily_bin1460.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/394868/ft1_filtered_4FGL_J2235.8-3627_daily_bin1460.fits..........................!
real 18.71
user 17.42
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16637E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .19468E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10697E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23691E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .27140E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .13555E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.514       1.0000         .10000E-03   10000.    
    10 'Prefactor '    63.660       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .53373E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .56101E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    53.648       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19689E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12684E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.768       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11786E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22971E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .10999E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .75731E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    37.751       1.0000         .10000E-03   10000.    
    22 'norm      '    .16788E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .16396E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    21.615       1.0000         .10000E-03   10000.    
    25 'Prefactor '    117.19       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .19837E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    .41830       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .61034       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0070       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   917.9388     FROM MIGRAD    STATUS=CONVERGED    274 CALLS     2778 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10022E-03    105.06       -.38576E-05** at limit **
   2  Prefactor     .10000E-03    18.831        .11163E-05** at limit **
   3  norm          .10001E-03    28.711        .10639E-05** at limit **
   4  norm          .10000E-03    8.2440        .30983E-06** at limit **
   5  norm          .10000E-03    .53024       -.73335E-06** at limit **
   6  Prefactor     .10000E-03    10.890        .28350E-05** at limit **
   7  Prefactor     .10000E-03    6.9051        .11565E-05** at limit **
   8  norm          .10301E-03    24.992       -.31834E-05** at limit **
   9  Prefactor     28.505        82.161       -.72741E-05   -.34389E-02
  10  Prefactor     65.514        58.437       -.55480E-06    .22359E-01
  11  Prefactor     .10132E-03    44.970        .93746E-06** at limit **
  12  norm          .10000E-03    25.105       -.13150E-05** at limit **
  13  Prefactor     56.708        44.049        .26263E-05   -.20563E-01
  14  Prefactor     .10000E-03    16.130        .48027E-05** at limit **
  15  Prefactor     .10000E-03    7.9218       -.35677E-06** at limit **
  16  norm          17.129        14.554        .14255E-05   -.14115E-02
  17  Prefactor     .10038E-03    46.956        .65897E-05** at limit **
  18  Prefactor     .10000E-03    32.206        .47843E-05** at limit **
  19  norm          .10000E-03    11.414       -.19159E-04** at limit **
  20  Prefactor     .10740E-03    102.90        .24172E-05** at limit **
  21  Prefactor     37.774        34.530       -.23203E-05   -.24374E-02
  22  norm          .10000E-03    43.634        .72697E-05** at limit **
  23  norm          .10000E-03    6.5840        .38585E-05** at limit **
  24  norm          21.693        11.765        .74037E-06    .61487E-02
  25  Prefactor     142.12        136.71        .22589E-04    .10980E-02
  26  Prefactor     .10199E-03    201.58        .15466E-04** at limit **
  27  norm          .10001E-03    100.56        .62194E-05** at limit **
  28  Normalizat    .56432        .60123        .19564E-04   -.21874E-04
  29  Prefactor     1.0318        .53937       -.12564E-04   -.98321E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100215
  Prefactor  = 0.0001
  norm       = 0.000100006
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000103013
  Prefactor  = 28.5047
  Prefactor  = 65.5135
  Prefactor  = 0.000101318
  norm       = 0.0001
  Prefactor  = 56.7076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.1288
  Prefactor  = 0.000100382
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000107396
  Prefactor  = 37.7742
  norm       = 0.0001
  norm       = 0.0001
  norm       = 21.6928
  Prefactor  = 142.121
  Prefactor  = 0.000101993
  norm       = 0.000100006
  Normalizat = 0.564315
  Prefactor  = 1.03176
 **********
 **   18 **HESSE 
 **********

 FCN=   917.9388     FROM HESSE     STATUS=OK           615 CALLS     3393 TOTAL
                     EDM=   .31E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10022E-03    104.25        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.828        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    28.844        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    8.2218        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .52929        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.879        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.8602        .10716E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10301E-03    54.093        .10274E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.505        106.32        .18437E-02   -1.4640    
  10  Prefactor     65.514        90.285        .12574E-02   -1.4087    
  11  Prefactor     .10132E-03    52.901        .10562E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    18.714        .38202E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     56.708        181.59        .13690E-02   -1.4200    
  14  Prefactor     .10000E-03    16.050        .10121E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.9029        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.129        16.696        .24452E-02   -1.4880    
  17  Prefactor     .10038E-03    60.285        .10325E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    32.030        .10050E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.0895        .27274E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10740E-03    125.90        .92851E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     37.774        41.651        .16308E-02   -1.4478    
  22  norm          .10000E-03    43.627        .10190E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.5408        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          21.693        25.821        .21538E-02   -1.4776    
  25  Prefactor     142.12        165.75        .92921E-03   -1.3318    
  26  Prefactor     .10199E-03    201.82        .91218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10001E-03    23.626        .76365E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .56432        .51424        .70351E-01   -1.0952    
  29  Prefactor     1.0318        .45148        .43806E-01   -.91678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08162e-05
Minuit parameter uncertainties:
  1  0.00949047
  2  7.89456e-05
  3  0.000854903
  4  3.71979e-06
  5  2.27246e-07
  6  8.95128e-06
  7  8.44015e-06
  8  0.0255549
  9  107.038
  10  90.4748
  11  0.0167179
  12  4.47871e-05
  13  183.406
  14  5.4801e-06
  15  1.50151e-05
  16  16.7006
  17  0.00960227
  18  7.83053e-05
  19  0.000137634
  20  0.0611594
  21  41.6835
  22  8.61105e-05
  23  1.41795e-05
  24  25.8341
  25  166.293
  26  0.040252
  27  0.000777389
  28  0.518677
  29  0.453154
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  6.551e+01  9.047e+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.032e+00  4.532e-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:  5.643e-01  5.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.85
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 4.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394868/likelihoodResults_617760001_618019201_4FGL_J2235.8-3627_daily_bin1460.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) = 917.808326719
delta logL = 0.130449393116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 917.799673049
delta logL = 0.139103063445

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.993       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7339       1.0000          .0000       10.000    
     3 'Normalizat'    .54277       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0465       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=   917.7997     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      281 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.018        85.691        .65023E-04   -.85642E-03
   2  Index         2.7336        1.1446        .39350E-02   -.49503E-03
   3  Normalizat    .54364        .53499        .31675E-03    .22821E-03
   4  Prefactor     1.0456        .51406        .22351E-03    .33959E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.0179
  Index      = 2.73358
  Normalizat = 0.543638
  Prefactor  = 1.04565
 **********
 **   18 **HESSE 
 **********

 FCN=   917.7997     FROM HESSE     STATUS=OK            23 CALLS      304 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.018        79.983        .13005E-04   -1.4474    
   2  Index         2.7336        1.0693        .15740E-03   -.47045    
   3  Normalizat    .54364        .53545        .63351E-04   -1.1043    
   4  Prefactor     1.0456        .51434        .44701E-04   -.91223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82502e-09
Minuit parameter uncertainties:
  1  80.21
  2  1.07981
  3  0.540651
  4  0.51679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394868': 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) = 917.799671648
delta logL = 0.139104464142

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.802e+01  8.021e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.734e+00  1.080e+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.046e+00  5.168e-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:  5.436e-01  5.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 2.73 +/- 1.08
Photon Flux (Free Index): 1.21e-07 +/- 1.53e-07
Energy Flux (Free Index): 2.84e-05 +/- 3.98e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/394868/cmap_HighResolution_617760001_618019201_4FGL_J2235.8-3627_daily_bin1460.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-02', comment='SUCCESS', energy_flux2='2.84e-05', dlogl='1.39e-01', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-28 16:38:59.929116', photon_index_error2='1.08', photon_index2='2.73', ts='0.85', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='4.23e-07', energy_flux_error2='3.98e-05', EG='0.56', time_epoch_completed='1632872339.93', return_code='0', job_id='394868', GAL2='1.05', EG2='0.54', return_code2='0', photon_flux_error2='1.53e-07', ts2='1.12', photon_index='2.23' WHERE bin_id='1460' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:38:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 394868: <4FGL_J2235.8-3627_daily_bin1460> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1460 338.971 -36.4605 617760001 618019201 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 :                                   377.21 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             310.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   509 sec.
    Turnaround time :                            510 sec.

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

