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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1150
RA = 338.971, Dec = -36.4605
tmin = 537408001, tmax = 537667201
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='393658', job_status='RUN', time_executed='2021-09-28 16:27:33.881496', time_epoch_executed='1632871653.88' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393658

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393658/ft1_4FGL_J2235.8-3627_daily_bin1150.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393658/ft2_4FGL_J2235.8-3627_daily_bin1150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393658/ft1_4FGL_J2235.8-3627_daily_bin1150.fits outfile=/scratch/kocevski/393658/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1150.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=537408001.0 tmax=537667201.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 4.73
user 4.44
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393658/ft1_filtered_4FGL_J2235.8-3627_daily_bin1150.fits" evtable="EVENTS" scfile=/scratch/kocevski/393658/ft2_4FGL_J2235.8-3627_daily_bin1150.fits sctable="SC_DATA" outfile=/scratch/kocevski/393658/ltcube_537408001_537667201_4FGL_J2235.8-3627_daily_bin1150.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/393658/ft2_4FGL_J2235.8-3627_daily_bin1150.fits
.....................!
real 11.99
user 11.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393658/ft1_filtered_4FGL_J2235.8-3627_daily_bin1150.fits evtable="EVENTS" scfile=/scratch/kocevski/393658/ft2_4FGL_J2235.8-3627_daily_bin1150.fits sctable="SC_DATA" expcube=/scratch/kocevski/393658/ltcube_537408001_537667201_4FGL_J2235.8-3627_daily_bin1150.fits outfile=/scratch/kocevski/393658/expmap_537408001_537667201_4FGL_J2235.8-3627_daily_bin1150.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/393658/ltcube_537408001_537667201_4FGL_J2235.8-3627_daily_bin1150.fits
.....................!
real 191.29
user 185.43
sys 5.55

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

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

This is gtbin version HEAD
real 0.52
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .89002       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8957       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3500       1.0000         .10000E-03   10000.    
     8 'norm      '    20.816       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.412       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.203       1.0000         .10000E-03   10000.    
    12 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.9866       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7545       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.396       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4636       1.0000         .10000E-03   10000.    
    20 'Prefactor '    51.565       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.9875       1.0000         .10000E-03   10000.    
    24 'norm      '    .13912E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    42.972       1.0000         .10000E-03   10000.    
    27 'norm      '    5.8757       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .93282       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1876       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=   4727.724     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3681 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.765        .32091E-05** at limit **
   2  Prefactor     .10000E-03    6.4500        .15694E-05** at limit **
   3  norm          .10000E-03    10.871       -.28125E-06** at limit **
   4  norm          .10000E-03    5.5644        .45759E-07** at limit **
   5  norm          .89003        .44971       -.23983E-07   -.13061E-04
   6  Prefactor     1.8919        13.810       -.71658E-07   -.92225E-04
   7  Prefactor     1.3500        2.8383        .20693E-06   -.94839E-04
   8  norm          20.809        24.221       -.17159E-05   -.12287E-03
   9  Prefactor     11.403        55.182       -.10541E-04   -.11261E-03
  10  Prefactor     .10000E-03    15.965       -.31437E-05** at limit **
  11  Prefactor     23.195        29.301       -.32640E-05   -.21258E-03
  12  norm          .10000E-03    .95062        .93600E-08** at limit **
  13  Prefactor     .10000E-03    34.624        .29228E-05** at limit **
  14  Prefactor     9.9844        14.055        .10368E-06    .20347E-04
  15  Prefactor     3.7529        4.4455        .19456E-05   -.20846E-02
  16  norm          .10000E-03    1.6613        .79541E-08** at limit **
  17  Prefactor     .10000E-03    9.1746        .32041E-08** at limit **
  18  Prefactor     17.389        14.356        .17286E-07    .77787E-04
  19  norm          1.4638        .93633       -.20317E-07    .96088E-04
  20  Prefactor     51.548        80.020       -.10628E-04   -.16890E-03
  21  Prefactor     .10000E-03    6.5239       -.14533E-05** at limit **
  22  norm          .10000E-03    69.316        .11581E-05** at limit **
  23  norm          1.9877        4.4231        .19882E-06   -.75511E-04
  24  norm          .10015E-03    9.5970       -.11059E-05** at limit **
  25  Prefactor     .10000E-03    33.525       -.24244E-05** at limit **
  26  Prefactor     42.973        56.036        .99755E-06    .78352E-04
  27  norm          5.8757        4.8866       -.18804E-06    .29285E-04
  28  Normalizat    .93334        .23729        .19342E-05    .44251E-04
  29  Prefactor     1.1872        .21545       -.15141E-06    .10426E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.890027
  Prefactor  = 1.89189
  Prefactor  = 1.35004
  norm       = 20.8092
  Prefactor  = 11.4033
  Prefactor  = 0.000100001
  Prefactor  = 23.1946
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.9844
  Prefactor  = 3.75294
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.389
  norm       = 1.46382
  Prefactor  = 51.5485
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.98766
  norm       = 0.000100152
  Prefactor  = 0.000100001
  Prefactor  = 42.9735
  norm       = 5.87571
  Normalizat = 0.93334
  Prefactor  = 1.18721
 **********
 **   18 **HESSE 
 **********

 FCN=   4727.724     FROM HESSE     STATUS=OK           547 CALLS     4228 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.175        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.5870        .17051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.6543        .15813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .89003        .45033        .31611E-04   -1.5519    
   6  Prefactor     1.8919        13.943        .30214E-03   -1.5433    
   7  Prefactor     1.3500        2.7878        .16088E-03   -1.5476    
   8  norm          20.809        24.289        .87789E-04   -1.4795    
   9  Prefactor     11.403        55.614        .11859E-03   -1.5032    
  10  Prefactor     .10000E-03    16.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.195        29.338        .83156E-04   -1.4744    
  12  norm          .10000E-03    .95399        .65457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    34.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.9844        14.048        .12680E-03   -1.5076    
  15  Prefactor     3.7529        6.4335        .10418E-02   -1.5320    
  16  norm          .10000E-03    1.6651        .86507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.1827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.389        14.677        .96027E-04   -1.4874    
  19  norm          1.4638        .95159        .43581E-04   -1.5466    
  20  Prefactor     51.548        81.253        .55850E-04   -1.4271    
  21  Prefactor     .10000E-03    6.5529        .17171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    70.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.9877        4.3957        .20248E-03   -1.5426    
  24  norm          .10015E-03    92.941        .40397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    33.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     42.973        55.880        .61155E-04   -1.4396    
  27  norm          5.8757        4.8896        .12874E-03   -1.5223    
  28  Normalizat    .93334        .28617        .27783E-03   -.95298    
  29  Prefactor     1.1872        .26181        .24213E-03   -.86726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36181e-09
Minuit parameter uncertainties:
  1  0.000190119
  2  7e-05
  3  4.94913e-05
  4  1.34486e-05
  5  0.450327
  6  10.2753
  7  2.78807
  8  24.3
  9  50.4416
  10  0.000250711
  11  29.3561
  12  2.91223e-07
  13  0.000382896
  14  14.0525
  15  6.43467
  16  6.75246e-07
  17  1.99501e-06
  18  14.6797
  19  0.951601
  20  81.4286
  21  8.71856e-05
  22  6.99495e-05
  23  4.39638
  24  0.00751877
  25  0.000321992
  26  55.9482
  27  4.88998
  28  0.286638
  29  0.262097
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  2.507e-04  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.187e+00  2.621e-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.333e-01  2.866e-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: 8.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393658/likelihoodResults_537408001_537667201_4FGL_J2235.8-3627_daily_bin1150.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) = 4727.72385161
delta logL = -0.000297134543871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4727.7235467
delta logL = 7.77245622885e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53599E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4275       1.0000          .0000       10.000    
     3 'Normalizat'    .93332       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1872       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=   4727.716     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      308 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22289        4.7092        .26022E-01    .10514E-02
   2  Index         4.0463        .61547        .50000       -.20846E-04
   3  Normalizat    .92214        .96837E-02    .45326E-01    .56370E-04
   4  Prefactor     1.1938        .94342E-02    .54633E-01   -.20406E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.222885
  Index      = 4.0463
  Normalizat = 0.922135
  Prefactor  = 1.19377
 **********
 **   18 **HESSE 
 **********

 FCN=   4727.716     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      341 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22289        596.89        .16157E-02   -1.5614    
   2  Index         4.0463        5.7825        .46801E-02   -.19192    
   3  Normalizat    .92214        .20576        .27937E-03   -.95687    
   4  Prefactor     1.1938        .15394        .24156E-03   -.86523    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.934e-08
Minuit parameter uncertainties:
  1  23.2993
  2  42.7255
  3  0.205936
  4  0.153999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393658': 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) = 4727.7155178
delta logL = 0.00803667575474

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.229e-01  2.330e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  4.046e+00  4.273e+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.194e+00  1.540e-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.221e-01  2.059e-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/393658/cmap_HighResolution_537408001_537667201_4FGL_J2235.8-3627_daily_bin1150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', job_status='DONE', photon_flux_upper_limit='8.10e-08', time_completed='2021-09-28 16:38:55.662717', job_id='393658', GAL2='1.19', fit_tolerance='1e-08', EG2='0.92', EG='0.93', time_epoch_completed='1632872335.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='8.04e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1150' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:38:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 393658: <4FGL_J2235.8-3627_daily_bin1150> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1150 338.971 -36.4605 537408001 537667201 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 :                                   674.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            795 sec.

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

