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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1283
RA = 338.971, Dec = -36.4605
tmin = 571881601, tmax = 572140801
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='393861', job_status='RUN', time_executed='2021-09-28 16:28:43.097391', time_epoch_executed='1632871723.1' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393861

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393861/ft1_4FGL_J2235.8-3627_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393861/ft2_4FGL_J2235.8-3627_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393861/ft1_4FGL_J2235.8-3627_daily_bin1283.fits outfile=/scratch/kocevski/393861/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1283.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=571881601.0 tmax=572140801.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.55
user 2.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393861/ft1_filtered_4FGL_J2235.8-3627_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/393861/ft2_4FGL_J2235.8-3627_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/393861/ltcube_571881601_572140801_4FGL_J2235.8-3627_daily_bin1283.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/393861/ft2_4FGL_J2235.8-3627_daily_bin1283.fits
.....................!
real 12.44
user 12.09
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393861/ft1_filtered_4FGL_J2235.8-3627_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/393861/ft2_4FGL_J2235.8-3627_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/393861/ltcube_571881601_572140801_4FGL_J2235.8-3627_daily_bin1283.fits outfile=/scratch/kocevski/393861/expmap_571881601_572140801_4FGL_J2235.8-3627_daily_bin1283.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/393861/ltcube_571881601_572140801_4FGL_J2235.8-3627_daily_bin1283.fits
.....................!
real 190.60
user 185.85
sys 4.37

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

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

This is gtbin version HEAD
real 0.57
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393861/ft1_filtered_4FGL_J2235.8-3627_daily_bin1283.fits scfile=/scratch/kocevski/393861/ft2_4FGL_J2235.8-3627_daily_bin1283.fits outfile=/scratch/kocevski/393861/cmap_HighResolution_571881601_572140801_4FGL_J2235.8-3627_daily_bin1283.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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393861/ft1_filtered_4FGL_J2235.8-3627_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/393861/ft2_4FGL_J2235.8-3627_daily_bin1283.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393861/Model_4FGL_J2235.8-3627_daily_bin1283.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/393861/ft1_filtered_4FGL_J2235.8-3627_daily_bin1283.fits......................!
real 21.47
user 20.05
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    260.02       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .23714E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2200       1.0000         .10000E-03   10000.    
     8 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    196.06       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12237E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.7805       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.983       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.692       1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.882       1.0000         .10000E-03   10000.    
    19 'norm      '    .10159E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.8661       1.0000         .10000E-03   10000.    
    24 'norm      '    27.319       1.0000         .10000E-03   10000.    
    25 'Prefactor '    91.865       1.0000         .10000E-03   10000.    
    26 'Prefactor '    61.144       1.0000         .10000E-03   10000.    
    27 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .74119       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3596       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=   1270.385     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     3679 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     260.04        280.43        .56831E-06   -.12855E-04
   2  Prefactor     .10000E-03    58.094        .23044E-06** at limit **
   3  norm          .10000E-03    393.56       -.26166E-06** at limit **
   4  norm          .10126E-03    7505.8       -.41533E-04** at limit **
   5  norm          .10000E-03    7.6729       -.63729E-06** at limit **
   6  Prefactor     .10000E-03    166.39       -.27031E-05** at limit **
   7  Prefactor     5.2270        11.654        .16458E-05    .37415E-04
   8  norm          .10000E-03    102.89       -.11198E-05** at limit **
   9  Prefactor     195.96        204.07       -.38884E-06   -.10191E-04
  10  Prefactor     .10000E-03    73.646       -.79933E-06** at limit **
  11  Prefactor     .10000E-03    71.486       -.16543E-05** at limit **
  12  norm          5.7782        7.1097       -.30473E-06   -.78046E-04
  13  Prefactor     .10000E-03    197.22        .17320E-05** at limit **
  14  Prefactor     19.995        52.545        .45047E-05   -.44792E-04
  15  Prefactor     .10000E-03    12.521       -.61702E-06** at limit **
  16  norm          .10000E-03    10.005        .17461E-05** at limit **
  17  Prefactor     25.530        52.804       -.34892E-05   -.18487E-03
  18  Prefactor     40.979        49.373        .18508E-05   -.26353E-03
  19  norm          .10000E-03    1.0702        .11388E-05** at limit **
  20  Prefactor     .10000E-03    54.128       -.33144E-06** at limit **
  21  Prefactor     .10000E-03    20.061        .17754E-05** at limit **
  22  norm          .10000E-03    20.827        .17778E-06** at limit **
  23  norm          2.8597        9.2681       -.20284E-05   -.71208E-04
  24  norm          27.328        22.889        .34036E-06   -.14415E-04
  25  Prefactor     91.992        125.22        .91600E-05   -.39190E-04
  26  Prefactor     61.123        106.64        .27059E-05   -.88360E-05
  27  norm          .10000E-03    10.800        .49909E-05** at limit **
  28  Normalizat    .73935        .73421       -.49088E-04   -.84088E-04
  29  Prefactor     1.3608        .63888        .29441E-04   -.24477E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 260.04
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000101258
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.22696
  norm       = 0.000100002
  Prefactor  = 195.964
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.77823
  Prefactor  = 0.000100004
  Prefactor  = 19.9948
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 25.5304
  Prefactor  = 40.9791
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 2.85972
  norm       = 27.3284
  Prefactor  = 91.9922
  Prefactor  = 61.123
  norm       = 0.000100005
  Normalizat = 0.739347
  Prefactor  = 1.36084
 **********
 **   18 **HESSE 
 **********

 FCN=   1270.385     FROM HESSE     STATUS=OK           537 CALLS     4216 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     260.04        280.56        .12568E-03   -1.2469    
   2  Prefactor     .10000E-03    58.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    393.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10126E-03    7538.9        .18282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.7281        .96450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    169.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.2270        11.634        .16689E-03   -1.5251    
   8  norm          .10000E-03    103.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     195.96        204.25        .14426E-03   -1.2899    
  10  Prefactor     .10000E-03    73.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    71.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7782        7.1053        .10158E-03   -1.5227    
  13  Prefactor     .10000E-03    197.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.995        52.567        .89598E-04   -1.4813    
  15  Prefactor     .10000E-03    12.542        .12318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.104        .11027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.530        53.005        .79032E-04   -1.4697    
  18  Prefactor     40.979        49.071        .62692E-04   -1.4427    
  19  norm          .10000E-03    1.1075        .72274E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    54.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.129        .15616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    20.829        .15894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.8597        9.2657        .17114E-03   -1.5370    
  24  norm          27.328        22.886        .76646E-04   -1.4662    
  25  Prefactor     91.992        124.44        .20964E-03   -1.3787    
  26  Prefactor     61.123        106.70        .51313E-04   -1.4143    
  27  norm          .10000E-03    11.208        .11593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .73935        .73733        .36576E-03   -1.0236    
  29  Prefactor     1.3608        .64686        .27411E-03   -.81516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09951e-09
Minuit parameter uncertainties:
  1  282.029
  2  0.0001898
  3  0.000181731
  4  0.177907
  5  4.65134e-05
  6  0.000204002
  7  11.6386
  8  0.000936541
  9  204.996
  10  7.93956e-06
  11  0.00018625
  12  7.10636
  13  0.00170607
  14  52.689
  15  3.0037e-05
  16  0.000165346
  17  53.1029
  18  49.1189
  19  3.70132e-05
  20  0.000176608
  21  0.000243433
  22  3.66055e-05
  23  9.27031
  24  22.8935
  25  124.793
  26  107.036
  27  0.000467627
  28  0.7476
  29  0.65076
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  7.940e-06  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.361e+00  6.508e-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:  7.393e-01  7.476e-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: 3.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.44e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393861/likelihoodResults_571881601_572140801_4FGL_J2235.8-3627_daily_bin1283.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) = 1270.3854532
delta logL = -6.39161673917e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1270.38538962
delta logL = -3.28318037646e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13592E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1898       1.0000          .0000       10.000    
     3 'Normalizat'    .73948       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3606       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=   1270.385     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      210 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    130.10        .90712E-02** at limit **
   2  Index         2.2002        5.9205        .50000       -.12084E-05
   3  Normalizat    .73934        .49712        .82614E-01    .21350E-04
   4  Prefactor     1.3609        .49388        .61979E-01   -.26268E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.20022
  Normalizat = 0.739338
  Prefactor  = 1.36085
 **********
 **   18 **HESSE 
 **********

 FCN=   1270.385     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    72.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2002        6.0983        .50000       -.59433    
   3  Normalizat    .73934        .58944        .36584E-03   -1.0236    
   4  Prefactor     1.3609        .58734        .27409E-03   -.81515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8644e-11
Minuit parameter uncertainties:
  1  7.7825e-05
  2  4.20092
  3  0.594617
  4  0.590249
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393861': 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) = 1270.3853893
delta logL = -8.03333932708e-09

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  7.782e-05  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.200e+00  4.201e+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.361e+00  5.902e-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:  7.393e-01  5.946e-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/393861/cmap_HighResolution_571881601_572140801_4FGL_J2235.8-3627_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-02', job_status='DONE', photon_flux_upper_limit='3.20e-07', time_completed='2021-09-28 16:35:29.924742', job_id='393861', GAL2='1.36', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632872129.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='-8.03e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1283' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:35:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 393861: <4FGL_J2235.8-3627_daily_bin1283> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1283> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 16:26:01 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:26:03 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:26:03 2021
Terminated at Tue Sep 28 16:35:30 2021
Results reported at Tue Sep 28 16:35:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1283 338.971 -36.4605 571881601 572140801 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 :                                   402.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             244.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   567 sec.
    Turnaround time :                            569 sec.

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

