/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 58 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 = 7352
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1526
RA = 338.971, Dec = -36.4605
tmin = 634867201, tmax = 635126401
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='394972', job_status='RUN', time_executed='2021-09-28 16:31:55.946118', time_epoch_executed='1632871915.95' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1526'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394972

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394972/ft1_4FGL_J2235.8-3627_daily_bin1526.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394972/ft2_4FGL_J2235.8-3627_daily_bin1526.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394972/ft1_4FGL_J2235.8-3627_daily_bin1526.fits outfile=/scratch/kocevski/394972/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1526.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=634867201.0 tmax=635126401.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.05
user 2.81
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394972/ft1_filtered_4FGL_J2235.8-3627_daily_bin1526.fits" evtable="EVENTS" scfile=/scratch/kocevski/394972/ft2_4FGL_J2235.8-3627_daily_bin1526.fits sctable="SC_DATA" outfile=/scratch/kocevski/394972/ltcube_634867201_635126401_4FGL_J2235.8-3627_daily_bin1526.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/394972/ft2_4FGL_J2235.8-3627_daily_bin1526.fits
.....................!
real 12.53
user 12.15
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394972/ft1_filtered_4FGL_J2235.8-3627_daily_bin1526.fits evtable="EVENTS" scfile=/scratch/kocevski/394972/ft2_4FGL_J2235.8-3627_daily_bin1526.fits sctable="SC_DATA" expcube=/scratch/kocevski/394972/ltcube_634867201_635126401_4FGL_J2235.8-3627_daily_bin1526.fits outfile=/scratch/kocevski/394972/expmap_634867201_635126401_4FGL_J2235.8-3627_daily_bin1526.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/394972/ltcube_634867201_635126401_4FGL_J2235.8-3627_daily_bin1526.fits
.....................!
real 193.90
user 187.23
sys 6.12

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/394972/ft1_filtered_4FGL_J2235.8-3627_daily_bin1526.fits scfile=/scratch/kocevski/394972/ft2_4FGL_J2235.8-3627_daily_bin1526.fits outfile=/scratch/kocevski/394972/cmap_634867201_635126401_4FGL_J2235.8-3627_daily_bin1526.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394972/ft1_filtered_4FGL_J2235.8-3627_daily_bin1526.fits scfile=/scratch/kocevski/394972/ft2_4FGL_J2235.8-3627_daily_bin1526.fits outfile=/scratch/kocevski/394972/cmap_HighResolution_634867201_635126401_4FGL_J2235.8-3627_daily_bin1526.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394972/ft1_filtered_4FGL_J2235.8-3627_daily_bin1526.fits evtable="EVENTS" scfile=/scratch/kocevski/394972/ft2_4FGL_J2235.8-3627_daily_bin1526.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394972/Model_4FGL_J2235.8-3627_daily_bin1526.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/394972/ft1_filtered_4FGL_J2235.8-3627_daily_bin1526.fits..........................!
real 18.16
user 16.75
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11682E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .24699E-01   1.0000         .10000E-03   10000.    
     4 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     5 'norm      '    10000.       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10503E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    90.525       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.588       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.521       1.0000         .10000E-03   10000.    
    22 'norm      '    35.737       1.0000         .10000E-03   10000.    
    23 'norm      '    .10718E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    108.11       1.0000         .10000E-03   10000.    
    26 'Prefactor '    72.346       1.0000         .10000E-03   10000.    
    27 'norm      '    .11472E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1744       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   794.3836     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     3823 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12498E-03    121.99       -.70384E-04** at limit **
   2  Prefactor     .10326E-03    71.150       -.30835E-04** at limit **
   3  norm          .24565E-01    .22043       -.85357E-06    .28946E-04
   4  norm         10000.0        7.0053        .20268E-04** at limit **
   5  norm         10000.0        73.123        .33196E-04** at limit **
   6  Prefactor     .10027E-03    14.082       -.38857E-05** at limit **
   7  Prefactor     .10004E-03    21.044        .77127E-05** at limit **
   8  norm          .10005E-03    21.202        .78405E-05** at limit **
   9  Prefactor     .10118E-03    164.24        .77301E-04** at limit **
  10  Prefactor     .10448E-03    68.048       -.26701E-04** at limit **
  11  Prefactor     .10001E-03    54.167       -.16017E-04** at limit **
  12  norm          .10000E-03    5.0000       -.36224E-06** at limit **
  13  Prefactor     90.519        1.7139       -.58391E-06    .13521E-02
  14  Prefactor     .10000E-03    8.4869       -.90007E-05** at limit **
  15  Prefactor     .10000E-03    16.586       -.26484E-04** at limit **
  16  norm          .10000E-03    3.7655       -.18394E-06** at limit **
  17  Prefactor     .10000E-03    17.351        .30046E-04** at limit **
  18  Prefactor     .10000E-03    8.2593        .21841E-04** at limit **
  19  norm          .10000E-03    .83092       -.36169E-07** at limit **
  20  Prefactor     31.587        1.0021       -.37010E-07    .18166E-04
  21  Prefactor     20.527        1.4396       -.68226E-06   -.26431E-03
  22  norm          35.752        2.5068        .14100E-05   -.73730E-03
  23  norm          .10000E-03    11.169        .12562E-05** at limit **
  24  norm          .10000E-03    8.1676       -.13884E-04** at limit **
  25  Prefactor     108.11        1.9219        .61801E-06   -.13987E-02
  26  Prefactor     72.347        1.0176        .90963E-07   -.18865E-03
  27  norm          .10000E-03    21.639       -.53860E-05** at limit **
  28  Normalizat    .10000E-01    .18422        .14875E-07** at limit **
  29  Prefactor     1.1744        .27446        .43376E-06    .11440E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000124977
  Prefactor  = 0.000103264
  norm       = 0.0245652
  norm       = 10000
  norm       = 10000
  Prefactor  = 0.000100274
  Prefactor  = 0.000100041
  norm       = 0.000100045
  Prefactor  = 0.000101182
  Prefactor  = 0.000104479
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 90.5194
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 31.5871
  Prefactor  = 20.5273
  norm       = 35.7515
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 108.112
  Prefactor  = 72.3467
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.17437
 **********
 **   18 **HESSE 
 **********

 FCN=   794.3836     FROM HESSE     STATUS=OK           601 CALLS     4424 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12498E-03    386.71        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10326E-03    290.52        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .24565E-01    8917.8        .91459E-02   -1.5677    
   4  norm         10000.0        1630.9        .10440E-01    1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm         10000.0        294.50        .90712E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10027E-03    52.749        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10004E-03    50.336        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10005E-03    50.460        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10118E-03    173.15        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10448E-03    282.79        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    59.512        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.0010        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     90.519        125.96        .10558E-02   -1.3802    
  14  Prefactor     .10000E-03    8.4865        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.564        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.7660        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.358        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.2574        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .82402        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.587        82.649        .17823E-02   -1.4583    
  21  Prefactor     20.527        27.300        .22104E-02   -1.4802    
  22  norm          35.752        52.230        .16759E-02   -1.4511    
  23  norm          .10000E-03    11.112        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    8.1575        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     108.11        76.427        .96703E-03   -1.3625    
  26  Prefactor     72.347        91.311        .11800E-02   -1.4005    
  27  norm          .10000E-03    15.290        .35359E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .17833        .16929       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.1744        .32478        .53181E-01   -.87124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77672e-07
Minuit parameter uncertainties:
  1  0.197848
  2  0.0618871
  3  162.602
  4  1.22683
  5  0.0553927
  6  0.00760731
  7  0.00287992
  8  0.00302427
  9  0.0287005
  10  0.0715165
  11  0.00121
  12  9.96519e-07
  13  126.338
  14  3.43821e-05
  15  0.000198842
  16  4.36156e-07
  17  0.000247478
  18  8.21916e-05
  19  3.85788e-08
  20  82.951
  21  27.3167
  22  52.2968
  23  6.1649e-06
  24  5.17395e-05
  25  76.4964
  26  91.489
  27  6.59647e-05
  28  2.10039e-10
  29  0.325338
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.045e-04  7.152e-02  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.174e+00  3.253e-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:  1.000e-02  2.100e-10  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/394972/likelihoodResults_634867201_635126401_4FGL_J2235.8-3627_daily_bin1526.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) = 794.38365222
delta logL = -1.67087044929e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 794.383652102
delta logL = -1.65901489027e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96162E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2292       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1744       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=   794.3836     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      251 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10875E-03    226.10        .18146E-01** at limit **
   2  Index         2.0958        5.2446        .50000        .16508E-05
   3  Normalizat    .10000E-01    .19093E-03    .69995E-02** at limit **
   4  Prefactor     1.1744        .88181E-02    .23508E-03    .23938E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108754
  Index      = 2.09575
  Normalizat = 0.01
  Prefactor  = 1.17437
 **********
 **   18 **HESSE 
 **********

 FCN=   794.3836     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10875E-03    1101.8        .36293E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0958        8.9293        .50000       -.61977    
   3  Normalizat    .10000E-01    .94320E-03    .13999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1744        .19597E-01    .94033E-05   -.87124    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.44603e-10
Minuit parameter uncertainties:
  1  0.20022
  2  528.666
  3  1.8078e-07
  4  0.0195968
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394972': 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) = 794.38363545
delta logL = 6.19843376626e-08

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.088e-04  2.002e-01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.096e+00  5.287e+02  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.174e+00  1.960e-02  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:  1.000e-02  1.808e-07  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/394972/cmap_HighResolution_634867201_635126401_4FGL_J2235.8-3627_daily_bin1526.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.75e-02', job_status='DONE', photon_flux_upper_limit='4.91e-07', time_completed='2021-09-28 16:38:25.633725', job_id='394972', GAL2='1.17', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632872305.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='6.20e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1526' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:38:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 394972: <4FGL_J2235.8-3627_daily_bin1526> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1526> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:30:39 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:30:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:30:41 2021
Terminated at Tue Sep 28 16:38:26 2021
Results reported at Tue Sep 28 16:38:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1526 338.971 -36.4605 634867201 635126401 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 :                                   385.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   464 sec.
    Turnaround time :                            467 sec.

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

