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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1463
RA = 338.971, Dec = -36.4605
tmin = 618537601, tmax = 618796801
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='394872', job_status='RUN', time_executed='2021-09-28 16:32:22.828538', time_epoch_executed='1632871942.83' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1463'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394872

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394872/ft1_4FGL_J2235.8-3627_daily_bin1463.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394872/ft2_4FGL_J2235.8-3627_daily_bin1463.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394872/ft1_4FGL_J2235.8-3627_daily_bin1463.fits outfile=/scratch/kocevski/394872/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1463.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=618537601.0 tmax=618796801.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.75
user 3.50
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394872/ft1_filtered_4FGL_J2235.8-3627_daily_bin1463.fits" evtable="EVENTS" scfile=/scratch/kocevski/394872/ft2_4FGL_J2235.8-3627_daily_bin1463.fits sctable="SC_DATA" outfile=/scratch/kocevski/394872/ltcube_618537601_618796801_4FGL_J2235.8-3627_daily_bin1463.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/394872/ft2_4FGL_J2235.8-3627_daily_bin1463.fits
.....................!
real 15.43
user 15.03
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394872/ft1_filtered_4FGL_J2235.8-3627_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/394872/ft2_4FGL_J2235.8-3627_daily_bin1463.fits sctable="SC_DATA" expcube=/scratch/kocevski/394872/ltcube_618537601_618796801_4FGL_J2235.8-3627_daily_bin1463.fits outfile=/scratch/kocevski/394872/expmap_618537601_618796801_4FGL_J2235.8-3627_daily_bin1463.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/394872/ltcube_618537601_618796801_4FGL_J2235.8-3627_daily_bin1463.fits
.....................!
real 193.43
user 188.07
sys 4.98

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/394872/ft1_filtered_4FGL_J2235.8-3627_daily_bin1463.fits scfile=/scratch/kocevski/394872/ft2_4FGL_J2235.8-3627_daily_bin1463.fits outfile=/scratch/kocevski/394872/cmap_618537601_618796801_4FGL_J2235.8-3627_daily_bin1463.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394872/ft1_filtered_4FGL_J2235.8-3627_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/394872/ft2_4FGL_J2235.8-3627_daily_bin1463.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394872/Model_4FGL_J2235.8-3627_daily_bin1463.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/394872/ft1_filtered_4FGL_J2235.8-3627_daily_bin1463.fits.....................!
real 37.55
user 36.18
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.6803       1.0000         .10000E-03   10000.    
     5 'norm      '    .24261       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5300       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.572       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8548       1.0000         .10000E-03   10000.    
    12 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    80.960       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.690       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.738       1.0000         .10000E-03   10000.    
    19 'norm      '    .11960       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    13.555       1.0000         .10000E-03   10000.    
    23 'norm      '    .11022E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.747       1.0000         .10000E-03   10000.    
    25 'Prefactor '    89.997       1.0000         .10000E-03   10000.    
    26 'Prefactor '    38.006       1.0000         .10000E-03   10000.    
    27 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1139       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84826       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=   4143.634     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3770 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5246       -.77675E-06** at limit **
   2  Prefactor     .10000E-03    3.0934        .29118E-07** at limit **
   3  norm          .10000E-03    15.774       -.23714E-05** at limit **
   4  norm          5.6809        5.9581        .19332E-05   -.12974E-02
   5  norm          .24260        .22960       -.81572E-07    .25726E-04
   6  Prefactor     .10000E-03    24.099        .22724E-05** at limit **
   7  Prefactor     4.5309        5.8832        .28893E-06   -.38773E-04
   8  norm          .10000E-03    12.037        .16018E-05** at limit **
   9  Prefactor     16.558        41.514       -.64576E-05   -.87279E-04
  10  Prefactor     .10000E-03    13.460        .48536E-06** at limit **
  11  Prefactor     2.8537        61.557        .12546E-05   -.61243E-05
  12  norm          .10000E-03    1.3797       -.55474E-07** at limit **
  13  Prefactor     80.946        76.551       -.22686E-05   -.75342E-04
  14  Prefactor     28.692        20.600       -.10442E-06   -.35017E-04
  15  Prefactor     .10000E-03    6.6479        .21548E-06** at limit **
  16  norm          .10000E-03    5.1376        .53067E-06** at limit **
  17  Prefactor     .10000E-03    9.8736       -.12517E-06** at limit **
  18  Prefactor     20.757        20.347       -.30610E-05   -.18654E-03
  19  norm          .11858        1.5106        .13374E-05   -.12369E-03
  20  Prefactor     .10000E-03    36.826       -.33174E-06** at limit **
  21  Prefactor     .10000E-03    13.987        .27199E-06** at limit **
  22  norm          13.556        16.317        .77435E-07    .62267E-05
  23  norm          .10000E-03    9.9508        .29398E-06** at limit **
  24  norm          10.748        9.9445        .54515E-06    .22826E-04
  25  Prefactor     89.988        54.121       -.12045E-05   -.55470E-04
  26  Prefactor     37.971        75.575       -.12747E-04   -.11218E-03
  27  norm          .10000E-03    5.2937       -.51991E-06** at limit **
  28  Normalizat    1.1137        .24826        .16529E-05   -.18810E-03
  29  Prefactor     .84843        .21007       -.17787E-05    .31890E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.68086
  norm       = 0.242596
  Prefactor  = 0.0001
  Prefactor  = 4.53087
  norm       = 0.0001
  Prefactor  = 16.5578
  Prefactor  = 0.0001
  Prefactor  = 2.85368
  norm       = 0.0001
  Prefactor  = 80.9464
  Prefactor  = 28.6917
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.7573
  norm       = 0.118582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.5559
  norm       = 0.0001
  norm       = 10.7475
  Prefactor  = 89.9884
  Prefactor  = 37.9708
  norm       = 0.0001
  Normalizat = 1.11369
  Prefactor  = 0.848427
 **********
 **   18 **HESSE 
 **********

 FCN=   4143.634     FROM HESSE     STATUS=OK           549 CALLS     4319 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.0962        .11057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    16.266        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.6809        6.1886        .77844E-03   -1.5231    
   5  norm          .24260        .23903        .28612E-03   -1.5609    
   6  Prefactor     .10000E-03    24.847        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5309        5.9420        .16319E-03   -1.5282    
   8  norm          .10000E-03    12.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.558        41.820        .98385E-04   -1.4894    
  10  Prefactor     .10000E-03    13.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8537        61.675        .24062E-03   -1.5370    
  12  norm          .10000E-03    1.3835        .73631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     80.946        76.743        .44637E-04   -1.3906    
  14  Prefactor     28.692        20.728        .74798E-04   -1.4636    
  15  Prefactor     .10000E-03    6.7002        .16206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.2307        .14205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.8792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.757        19.507        .87954E-04   -1.4796    
  19  norm          .11858        2.1315        .97206E-03   -1.5639    
  20  Prefactor     .10000E-03    36.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.556        16.317        .10879E-03   -1.4971    
  23  norm          .10000E-03    10.289        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.748        9.9490        .12222E-03   -1.5052    
  25  Prefactor     89.988        53.823        .42356E-04   -1.3808    
  26  Prefactor     37.971        77.650        .65013E-04   -1.4475    
  27  norm          .10000E-03    5.3149        .14367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1137        .30919        .24695E-03   -.89314    
  29  Prefactor     .84843        .25819        .25576E-03   -.97967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9486e-08
Minuit parameter uncertainties:
  1  4.58331e-05
  2  9.83053e-07
  3  0.000128139
  4  6.18927
  5  0.239034
  6  9.66142e-06
  7  5.94279
  8  8.36288e-05
  9  41.8941
  10  1.52929e-05
  11  26.5637
  12  1.28235e-05
  13  76.8372
  14  20.7331
  15  1.27939e-05
  16  2.76393e-05
  17  5.04541e-06
  18  19.5134
  19  1.00511
  20  3.01729e-05
  21  3.50293e-05
  22  16.3221
  23  0.000120585
  24  9.95054
  25  53.8517
  26  77.8574
  27  3.54056e-05
  28  0.309694
  29  0.258559
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.529e-05  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.229e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  8.484e-01  2.586e-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.114e+00  3.097e-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.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394872/likelihoodResults_618537601_618796801_4FGL_J2235.8-3627_daily_bin1463.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) = 4143.63398841
delta logL = -0.000353306044417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4143.63363523
delta logL = -1.2337386579e-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.2262       1.0000          .0000       10.000    
     3 'Normalizat'    1.1136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84855       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=   4143.634     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      204 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.026        .90712E-02** at limit **
   2  Index         2.2232        6.3890        .50000        .18515E-05
   3  Normalizat    1.1137        .95103E-02    .55847E-01    .40180E-05
   4  Prefactor     .84842        .87637E-02    .44346E-01    .66550E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.2232
  Normalizat = 1.11369
  Prefactor  = 0.848423
 **********
 **   18 **HESSE 
 **********

 FCN=   4143.634     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    218.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2232        6.5185        .50000       -.58880    
   3  Normalizat    1.1137        .22575E-01    .24695E-03   -.89313    
   4  Prefactor     .84842        .20809E-01    .25576E-03   -.97967    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05032e-07
Minuit parameter uncertainties:
  1  1.22149e-05
  2  728.857
  3  0.0225751
  4  0.0208088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394872': 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) = 4143.6336351
delta logL = 2.98769009532e-09

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.221e-05  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.223e+00  7.289e+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:  8.484e-01  2.081e-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.114e+00  2.258e-02  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/394872/cmap_HighResolution_618537601_618796801_4FGL_J2235.8-3627_daily_bin1463.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.16e-03', job_status='DONE', photon_flux_upper_limit='8.07e-08', time_completed='2021-09-28 16:42:59.767817', job_id='394872', GAL2='0.85', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1632872579.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.99e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1463' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:42:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 394872: <4FGL_J2235.8-3627_daily_bin1463> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1463 338.971 -36.4605 618537601 618796801 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 :                                   632.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            749 sec.

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

