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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1059
RA = 338.971, Dec = -36.4605
tmin = 513820801, tmax = 514080001
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='393515', job_status='RUN', time_executed='2021-09-28 16:27:17.456419', time_epoch_executed='1632871637.46' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1059'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393515

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393515/ft1_4FGL_J2235.8-3627_daily_bin1059.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393515/ft2_4FGL_J2235.8-3627_daily_bin1059.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393515/ft1_4FGL_J2235.8-3627_daily_bin1059.fits outfile=/scratch/kocevski/393515/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1059.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=513820801.0 tmax=514080001.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.74
user 3.49
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393515/ft1_filtered_4FGL_J2235.8-3627_daily_bin1059.fits" evtable="EVENTS" scfile=/scratch/kocevski/393515/ft2_4FGL_J2235.8-3627_daily_bin1059.fits sctable="SC_DATA" outfile=/scratch/kocevski/393515/ltcube_513820801_514080001_4FGL_J2235.8-3627_daily_bin1059.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/393515/ft2_4FGL_J2235.8-3627_daily_bin1059.fits
.....................!
real 11.82
user 11.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393515/ft1_filtered_4FGL_J2235.8-3627_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/393515/ft2_4FGL_J2235.8-3627_daily_bin1059.fits sctable="SC_DATA" expcube=/scratch/kocevski/393515/ltcube_513820801_514080001_4FGL_J2235.8-3627_daily_bin1059.fits outfile=/scratch/kocevski/393515/expmap_513820801_514080001_4FGL_J2235.8-3627_daily_bin1059.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/393515/ltcube_513820801_514080001_4FGL_J2235.8-3627_daily_bin1059.fits
.....................!
real 191.10
user 185.62
sys 5.17

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/393515/ft1_filtered_4FGL_J2235.8-3627_daily_bin1059.fits scfile=/scratch/kocevski/393515/ft2_4FGL_J2235.8-3627_daily_bin1059.fits outfile=/scratch/kocevski/393515/cmap_513820801_514080001_4FGL_J2235.8-3627_daily_bin1059.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.75
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393515/ft1_filtered_4FGL_J2235.8-3627_daily_bin1059.fits scfile=/scratch/kocevski/393515/ft2_4FGL_J2235.8-3627_daily_bin1059.fits outfile=/scratch/kocevski/393515/cmap_HighResolution_513820801_514080001_4FGL_J2235.8-3627_daily_bin1059.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12693E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    22.056       1.0000         .10000E-03   10000.    
     4 'norm      '    18.506       1.0000         .10000E-03   10000.    
     5 'norm      '    3.1845       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    51.065       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.337       1.0000         .10000E-03   10000.    
    12 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.528       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6580       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5288       1.0000         .10000E-03   10000.    
    19 'norm      '    1.1345       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11229E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10460E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    34.162       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.1874       1.0000         .10000E-03   10000.    
    27 'norm      '    7.9028       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .97788       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98136       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=   4890.318     FROM MIGRAD    STATUS=CONVERGED    730 CALLS     3761 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.632        .31129E-06** at limit **
   2  Prefactor     .10000E-03    15.685        .17593E-06** at limit **
   3  norm          22.055        11.918        .97460E-07   -.93976E-05
   4  norm          18.506        9.2571        .79310E-07   -.46845E-05
   5  norm          3.1846        .74149        .68901E-08    .33714E-05
   6  Prefactor     .10000E-03    6.2420       -.23187E-07** at limit **
   7  Prefactor     .10000E-03    4.3529       -.19561E-07** at limit **
   8  norm          51.074        32.681       -.73189E-06   -.46690E-05
   9  Prefactor     .10000E-03    15.342       -.39187E-06** at limit **
  10  Prefactor     .10000E-03    23.235       -.36527E-06** at limit **
  11  Prefactor     37.320        31.021        .52864E-06    .66724E-05
  12  norm          .10000E-03    2.0298       -.15460E-06** at limit **
  13  Prefactor     47.362        75.887       -.40095E-05    .42980E-04
  14  Prefactor     .10000E-03    6.3356       -.31435E-07** at limit **
  15  Prefactor     1.6562        8.2732        .72403E-06    .97467E-04
  16  norm          .10000E-03    1.5634        .84675E-08** at limit **
  17  Prefactor     .10000E-03    8.1393       -.11677E-06** at limit **
  18  Prefactor     2.5331        16.154        .13022E-05    .35572E-04
  19  norm          1.1345        .80375       -.15161E-07   -.11832E-03
  20  Prefactor     .10000E-03    48.788       -.21684E-06** at limit **
  21  Prefactor     .10000E-03    38.000        .29353E-06** at limit **
  22  norm          .10000E-03    87.313       -.13954E-05** at limit **
  23  norm          .10000E-03    3.5247        .10261E-07** at limit **
  24  norm          .10000E-03    20.574        .51753E-07** at limit **
  25  Prefactor     34.141        72.229        .11513E-05    .39881E-05
  26  Prefactor     9.0723        154.86        .12222E-04    .10015E-04
  27  norm          7.9047        10.144       -.14620E-06   -.46472E-06
  28  Normalizat    .97826        .23890       -.13607E-05    .24494E-04
  29  Prefactor     .98105        .21143        .16491E-06   -.61147E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.0553
  norm       = 18.5056
  norm       = 3.18455
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 51.0737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.32
  norm       = 0.0001
  Prefactor  = 47.3617
  Prefactor  = 0.0001
  Prefactor  = 1.65622
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.53309
  norm       = 1.13451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 34.1408
  Prefactor  = 9.07229
  norm       = 7.90468
  Normalizat = 0.978258
  Prefactor  = 0.981052
 **********
 **   18 **HESSE 
 **********

 FCN=   4890.318     FROM HESSE     STATUS=OK           551 CALLS     4312 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.374        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          22.055        11.919        .85287E-04   -1.4768    
   4  norm          18.506        9.3285        .93103E-04   -1.4847    
   5  norm          3.1846        .74739        .26334E-04   -1.5351    
   6  Prefactor     .10000E-03    6.2924        .17058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.5053        .28449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          51.074        32.701        .56122E-04   -1.4277    
   9  Prefactor     .10000E-03    15.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.320        31.099        .65590E-04   -1.4485    
  12  norm          .10000E-03    2.4617        .16855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     47.362        78.233        .29081E-03   -1.4330    
  14  Prefactor     .10000E-03    6.3625        .17188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.6562        9.2054        .16385E-02   -1.5451    
  16  norm          .10000E-03    1.5664        .85363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.1477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.5331        17.376        .12843E-02   -1.5390    
  19  norm          1.1345        .81895        .42691E-04   -1.5495    
  20  Prefactor     .10000E-03    48.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    39.088        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    89.579        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.5276        .12813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    21.290        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     34.141        72.448        .68561E-04   -1.4539    
  26  Prefactor     9.0723        158.16        .13222E-03   -1.5105    
  27  norm          7.9047        10.152        .14263E-03   -1.5146    
  28  Normalizat    .97826        .28342        .27380E-03   -.93762    
  29  Prefactor     .98105        .25168        .25909E-03   -.93364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2053e-10
Minuit parameter uncertainties:
  1  3.84655e-05
  2  2.51807e-05
  3  11.9205
  4  9.32927
  5  0.747395
  6  8.84539e-06
  7  1.66179e-05
  8  32.7128
  9  1.07867e-05
  10  4.47447e-07
  11  31.1128
  12  4.57235e-05
  13  78.403
  14  4.94759e-06
  15  7.81087
  16  2.26051e-06
  17  6.99381e-06
  18  13.2742
  19  0.818958
  20  1.05067e-06
  21  0.000127263
  22  4.46223e-05
  23  6.31596e-07
  24  9.9413e-05
  25  72.6352
  26  75.9956
  27  10.1538
  28  0.283852
  29  0.251984
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  4.474e-07  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.811e-01  2.520e-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.783e-01  2.839e-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.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393515/likelihoodResults_513820801_514080001_4FGL_J2235.8-3627_daily_bin1059.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) = 4890.31806246
delta logL = -0.000204527700589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4890.31785816
delta logL = -2.28121280088e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1452       1.0000          .0000       10.000    
     3 'Normalizat'    .97826       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98106       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=   4890.318     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      268 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6582.3        .18142E-02** at limit **
   2  Index         2.1724        5.5468        .50000       -.10986E-04
   3  Normalizat    .97825        .92477E-01    .27378E-03   -.76238E-04
   4  Prefactor     .98106        .88077E-01    .25909E-03    .63010E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.17243
  Normalizat = 0.978254
  Prefactor  = 0.981057
 **********
 **   18 **HESSE 
 **********

 FCN=   4890.318     FROM HESSE     STATUS=OK            29 CALLS      297 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.955        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1724        6.0658        .50000       -.60106    
   3  Normalizat    .97825        .25663        .10951E-04   -.93763    
   4  Prefactor     .98106        .24448        .10364E-04   -.93364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02056e-10
Minuit parameter uncertainties:
  1  0.000522849
  2  4.52596
  3  0.256949
  4  0.244759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393515': 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) = 4890.31785809
delta logL = -1.5432760847e-07

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  5.228e-04  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.172e+00  4.526e+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:  9.811e-01  2.448e-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.783e-01  2.569e-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/393515/cmap_HighResolution_513820801_514080001_4FGL_J2235.8-3627_daily_bin1059.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.69e-03', job_status='DONE', photon_flux_upper_limit='8.77e-08', time_completed='2021-09-28 16:38:42.214526', job_id='393515', GAL2='0.98', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632872322.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-1.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1059' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:38:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 393515: <4FGL_J2235.8-3627_daily_bin1059> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1059 338.971 -36.4605 513820801 514080001 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 :                                   684.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            793 sec.

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

