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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1094
RA = 338.971, Dec = -36.4605
tmin = 522892801, tmax = 523152001
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='393571', job_status='RUN', time_executed='2021-09-28 16:28:00.914344', time_epoch_executed='1632871680.91' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1094'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393571

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393571/ft1_4FGL_J2235.8-3627_daily_bin1094.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393571/ft2_4FGL_J2235.8-3627_daily_bin1094.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393571/ft1_4FGL_J2235.8-3627_daily_bin1094.fits outfile=/scratch/kocevski/393571/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1094.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=522892801.0 tmax=523152001.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.76
user 3.53
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393571/ft1_filtered_4FGL_J2235.8-3627_daily_bin1094.fits" evtable="EVENTS" scfile=/scratch/kocevski/393571/ft2_4FGL_J2235.8-3627_daily_bin1094.fits sctable="SC_DATA" outfile=/scratch/kocevski/393571/ltcube_522892801_523152001_4FGL_J2235.8-3627_daily_bin1094.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/393571/ft2_4FGL_J2235.8-3627_daily_bin1094.fits
.....................!
real 12.18
user 11.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393571/ft1_filtered_4FGL_J2235.8-3627_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/393571/ft2_4FGL_J2235.8-3627_daily_bin1094.fits sctable="SC_DATA" expcube=/scratch/kocevski/393571/ltcube_522892801_523152001_4FGL_J2235.8-3627_daily_bin1094.fits outfile=/scratch/kocevski/393571/expmap_522892801_523152001_4FGL_J2235.8-3627_daily_bin1094.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/393571/ltcube_522892801_523152001_4FGL_J2235.8-3627_daily_bin1094.fits
.....................!
real 191.04
user 185.95
sys 4.66

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/393571/ft1_filtered_4FGL_J2235.8-3627_daily_bin1094.fits scfile=/scratch/kocevski/393571/ft2_4FGL_J2235.8-3627_daily_bin1094.fits outfile=/scratch/kocevski/393571/cmap_522892801_523152001_4FGL_J2235.8-3627_daily_bin1094.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393571/ft1_filtered_4FGL_J2235.8-3627_daily_bin1094.fits scfile=/scratch/kocevski/393571/ft2_4FGL_J2235.8-3627_daily_bin1094.fits outfile=/scratch/kocevski/393571/cmap_HighResolution_522892801_523152001_4FGL_J2235.8-3627_daily_bin1094.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/393571/ft1_filtered_4FGL_J2235.8-3627_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/393571/ft2_4FGL_J2235.8-3627_daily_bin1094.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393571/Model_4FGL_J2235.8-3627_daily_bin1094.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/393571/ft1_filtered_4FGL_J2235.8-3627_daily_bin1094.fits.....................!
real 38.12
user 36.39
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.138       1.0000         .10000E-03   10000.    
     3 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.7396       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1854       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    39.130       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.593       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    50.788       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5919       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.0988       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12464E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.618       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6070       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.5540       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.6907       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.261       1.0000         .10000E-03   10000.    
    27 'norm      '    5.2955       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88782       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99892       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=   4322.482     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3649 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8203       -.18471E-08** at limit **
   2  Prefactor     12.138        11.639        .57091E-06    .40860E-04
   3  norm          .10000E-03    13.422       -.13257E-05** at limit **
   4  norm          6.7399        8.0576        .53229E-06    .19933E-03
   5  norm          1.1854        .51601        .17081E-07    .51207E-03
   6  Prefactor     .10000E-03    6.4156       -.61234E-06** at limit **
   7  Prefactor     .10000E-03    3.2839       -.19364E-06** at limit **
   8  norm          39.149        33.326       -.17673E-05   -.85894E-04
   9  Prefactor     29.580        36.029        .19650E-05    .36368E-04
  10  Prefactor     .10000E-03    17.337        .14665E-05** at limit **
  11  Prefactor     50.786        36.634        .27860E-07   -.46179E-04
  12  norm          2.5916        2.5722        .28273E-06    .27394E-03
  13  Prefactor     .10000E-03    55.603       -.36600E-05** at limit **
  14  Prefactor     .10000E-03    3.8726        .18968E-07** at limit **
  15  Prefactor     .10000E-03    6.0647        .44357E-06** at limit **
  16  norm          7.0994        6.4405        .36738E-07   -.48796E-03
  17  Prefactor     .10000E-03    64.704        .37026E-05** at limit **
  18  Prefactor     28.625        17.777       -.83546E-06   -.83713E-03
  19  norm          1.6071        1.1291       -.29975E-07   -.23283E-02
  20  Prefactor     .10000E-03    29.142       -.17791E-06** at limit **
  21  Prefactor     .10000E-03    8.0658        .86643E-07** at limit **
  22  norm          .10000E-03    10.511        .67868E-06** at limit **
  23  norm          .10000E-03    3.5385        .62374E-07** at limit **
  24  norm          1.5543        24.215        .18239E-04   -.10531E-03
  25  Prefactor     3.6949        118.28       -.10618E-04   -.23228E-04
  26  Prefactor     13.233        91.700        .14341E-05    .24359E-04
  27  norm          5.2953        7.0877        .17903E-05    .12435E-03
  28  Normalizat    .88753        .23583        .71127E-06    .12440E-03
  29  Prefactor     .99921        .21447       -.23306E-05   -.18949E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.1376
  norm       = 0.0001
  norm       = 6.73987
  norm       = 1.18536
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 39.1494
  Prefactor  = 29.5799
  Prefactor  = 0.0001
  Prefactor  = 50.7859
  norm       = 2.59156
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.0994
  Prefactor  = 0.0001
  Prefactor  = 28.6254
  norm       = 1.60709
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.55434
  Prefactor  = 3.69494
  Prefactor  = 13.2326
  norm       = 5.2953
  Normalizat = 0.887527
  Prefactor  = 0.999208
 **********
 **   18 **HESSE 
 **********

 FCN=   4322.482     FROM HESSE     STATUS=OK           547 CALLS     4196 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8336        .14094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.138        11.649        .57491E-03   -1.5011    
   3  norm          .10000E-03    13.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.7399        8.0899        .15456E-03   -1.5189    
   5  norm          1.1854        .51794        .28372E-04   -1.5490    
   6  Prefactor     .10000E-03    6.4390        .16254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3323        .11626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          39.149        33.301        .64076E-04   -1.4456    
   9  Prefactor     29.580        36.004        .36825E-03   -1.4620    
  10  Prefactor     .10000E-03    17.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     50.786        36.905        .56274E-04   -1.4281    
  12  norm          2.5916        2.5730        .10102E-03   -1.5386    
  13  Prefactor     .10000E-03    55.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.8751        .12636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.1586        .15799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.0994        6.4221        .14346E-03   -1.5175    
  17  Prefactor     .10000E-03    66.520        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     28.625        18.094        .74891E-04   -1.4637    
  19  norm          1.6071        1.1384        .46099E-04   -1.5454    
  20  Prefactor     .10000E-03    29.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.0758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.5538        .12060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.5543        24.566        .17078E-02   -1.5459    
  25  Prefactor     3.6949        113.50        .21023E-03   -1.5324    
  26  Prefactor     13.233        92.718        .11000E-03   -1.4980    
  27  norm          5.2953        6.9221        .73082E-03   -1.5248    
  28  Normalizat    .88753        .28170        .27345E-03   -.96900    
  29  Prefactor     .99921        .25425        .24617E-03   -.92756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15244e-09
Minuit parameter uncertainties:
  1  3.45314e-06
  2  11.6514
  3  2.62953e-06
  4  8.09123
  5  0.51794
  6  3.79904e-06
  7  2.07397e-05
  8  33.3164
  9  36.0306
  10  7.02684e-05
  11  36.922
  12  2.5731
  13  7.00286e-05
  14  1.44546e-06
  15  1.376e-05
  16  6.42268
  17  0.000252546
  18  18.0975
  19  1.13841
  20  2.54567e-05
  21  2.30467e-05
  22  2.47668e-05
  23  4.51025e-06
  24  12.3644
  25  41.0425
  26  70.2094
  27  6.92311
  28  0.282171
  29  0.254557
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  7.027e-05  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:  9.992e-01  2.546e-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:  8.875e-01  2.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/393571/likelihoodResults_522892801_523152001_4FGL_J2235.8-3627_daily_bin1094.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): 102
logL (Free Index) = 4322.48193207
delta logL = -0.00027447445882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4322.48165542
delta logL = 2.16812077269e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20265E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2416       1.0000          .0000       10.000    
     3 'Normalizat'    .88750       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99920       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4322.474     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      296 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31371        4.2510        .40909E-01    .34281E-03
   2  Index         4.0079        .55992        .50000       -.89156E-05
   3  Normalizat    .87486        .96631E-02    .44742E-01   -.14370E-03
   4  Prefactor     1.0061        .92255E-02    .46257E-01    .19597E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.313705
  Index      = 4.00792
  Normalizat = 0.874861
  Prefactor  = 1.00611
 **********
 **   18 **HESSE 
 **********

 FCN=   4322.474     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      329 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31371        796.10        .14797E-02   -1.5596    
   2  Index         4.0079        6.8206        .41085E-02   -.19974    
   3  Normalizat    .87486        .29297        .27524E-03   -.97349    
   4  Prefactor     1.0061        .18611        .24542E-03   -.92526    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.8249e-10
Minuit parameter uncertainties:
  1  32.0369
  2  39.3991
  3  0.293508
  4  0.186232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393571': 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): 102
logL (Free Index) = 4322.47357546
delta logL = 0.00808213037089

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.137e-01  3.204e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  4.008e+00  3.940e+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.006e+00  1.862e-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:  8.749e-01  2.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/393571/cmap_HighResolution_522892801_523152001_4FGL_J2235.8-3627_daily_bin1094.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-03', job_status='DONE', photon_flux_upper_limit='9.10e-08', time_completed='2021-09-28 16:38:41.362310', job_id='393571', GAL2='1.01', fit_tolerance='1e-08', EG2='0.87', EG='0.89', time_epoch_completed='1632872321.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='8.08e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1094' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:38:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 393571: <4FGL_J2235.8-3627_daily_bin1094> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1094> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 16:25:34 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:25:35 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:25:35 2021
Terminated at Tue Sep 28 16:38:41 2021
Results reported at Tue Sep 28 16:38:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1094 338.971 -36.4605 522892801 523152001 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 :                                   634.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            787 sec.

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

