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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1354
RA = 338.971, Dec = -36.4605
tmin = 590284801, tmax = 590544001
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='394701', job_status='RUN', time_executed='2021-09-28 16:30:55.483986', time_epoch_executed='1632871855.48' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1354'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394701

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394701/ft1_4FGL_J2235.8-3627_daily_bin1354.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394701/ft2_4FGL_J2235.8-3627_daily_bin1354.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394701/ft1_4FGL_J2235.8-3627_daily_bin1354.fits outfile=/scratch/kocevski/394701/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1354.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=590284801.0 tmax=590544001.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.71
user 3.46
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394701/ft1_filtered_4FGL_J2235.8-3627_daily_bin1354.fits" evtable="EVENTS" scfile=/scratch/kocevski/394701/ft2_4FGL_J2235.8-3627_daily_bin1354.fits sctable="SC_DATA" outfile=/scratch/kocevski/394701/ltcube_590284801_590544001_4FGL_J2235.8-3627_daily_bin1354.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/394701/ft2_4FGL_J2235.8-3627_daily_bin1354.fits
.....................!
real 11.82
user 11.50
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394701/ft1_filtered_4FGL_J2235.8-3627_daily_bin1354.fits evtable="EVENTS" scfile=/scratch/kocevski/394701/ft2_4FGL_J2235.8-3627_daily_bin1354.fits sctable="SC_DATA" expcube=/scratch/kocevski/394701/ltcube_590284801_590544001_4FGL_J2235.8-3627_daily_bin1354.fits outfile=/scratch/kocevski/394701/expmap_590284801_590544001_4FGL_J2235.8-3627_daily_bin1354.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/394701/ltcube_590284801_590544001_4FGL_J2235.8-3627_daily_bin1354.fits
.....................!
real 190.94
user 185.51
sys 5.11

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/394701/ft1_filtered_4FGL_J2235.8-3627_daily_bin1354.fits scfile=/scratch/kocevski/394701/ft2_4FGL_J2235.8-3627_daily_bin1354.fits outfile=/scratch/kocevski/394701/cmap_590284801_590544001_4FGL_J2235.8-3627_daily_bin1354.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/394701/ft1_filtered_4FGL_J2235.8-3627_daily_bin1354.fits scfile=/scratch/kocevski/394701/ft2_4FGL_J2235.8-3627_daily_bin1354.fits outfile=/scratch/kocevski/394701/cmap_HighResolution_590284801_590544001_4FGL_J2235.8-3627_daily_bin1354.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/394701/ft1_filtered_4FGL_J2235.8-3627_daily_bin1354.fits evtable="EVENTS" scfile=/scratch/kocevski/394701/ft2_4FGL_J2235.8-3627_daily_bin1354.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394701/Model_4FGL_J2235.8-3627_daily_bin1354.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/394701/ft1_filtered_4FGL_J2235.8-3627_daily_bin1354.fits.....................!
real 45.66
user 44.44
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6316       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.3448       1.0000         .10000E-03   10000.    
     4 'norm      '    2.7443       1.0000         .10000E-03   10000.    
     5 'norm      '    .81197       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5804       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8699       1.0000         .10000E-03   10000.    
     8 'norm      '    2.6574       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.435       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7346       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2169       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.044       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .38488       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.810       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.798       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0805       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.9750       1.0000         .10000E-03   10000.    
    24 'norm      '    9.0566       1.0000         .10000E-03   10000.    
    25 'Prefactor '    36.468       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .14111E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .43544       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3818       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=   5930.225     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     3793 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6319        6.6447        .10281E-06    .16228E-04
   2  Prefactor     .10000E-03    7.2112        .26784E-06** at limit **
   3  norm          4.3451        5.7077        .19963E-06    .77316E-05
   4  norm          2.7444        3.5750        .29864E-06    .12899E-04
   5  norm          .81198        .31676       -.73315E-08    .62260E-04
   6  Prefactor     4.5808        6.8467        .47371E-06    .51595E-05
   7  Prefactor     1.8701        2.9636        .44129E-06    .25866E-04
   8  norm          2.6394        36.775       -.78712E-06   -.37068E-05
   9  Prefactor     12.436        26.468        .25166E-07   -.41590E-07
  10  Prefactor     .10000E-03    6.5620        .14515E-07** at limit **
  11  Prefactor     .10000E-03    7.2890        .46362E-07** at limit **
  12  norm          1.7373        2.5182       -.50304E-06   -.46434E-04
  13  Prefactor     5.0148        242.95        .41148E-05   -.13419E-04
  14  Prefactor     22.046        13.435       -.15969E-07   -.25731E-04
  15  Prefactor     .10000E-03    2.1126        .76466E-07** at limit **
  16  norm          .41001        3.8818        .50491E-06    .57988E-05
  17  Prefactor     12.780        20.335       -.28763E-06   -.75238E-04
  18  Prefactor     22.813        16.224        .15664E-06   -.19558E-03
  19  norm          1.0803        .92784       -.24891E-06   -.53550E-03
  20  Prefactor     .10000E-03    13.313        .25528E-07** at limit **
  21  Prefactor     .10000E-03    5.6902        .51149E-06** at limit **
  22  norm          .10000E-03    7.3168        .66212E-07** at limit **
  23  norm          1.9711        4.1611        .41674E-06   -.13130E-03
  24  norm          9.0532        10.753        .18969E-06   -.47257E-04
  25  Prefactor     36.398        33.964       -.42630E-06   -.41074E-04
  26  Prefactor     .10000E-03    33.224       -.15230E-06** at limit **
  27  norm          .10000E-03    5.9720        .24312E-05** at limit **
  28  Normalizat    .43548        .19725       -.28002E-05   -.53336E-04
  29  Prefactor     1.3817        .18803        .82383E-06   -.19228E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.63188
  Prefactor  = 0.0001
  norm       = 4.34508
  norm       = 2.74442
  norm       = 0.81198
  Prefactor  = 4.5808
  Prefactor  = 1.87009
  norm       = 2.63943
  Prefactor  = 12.4356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.73727
  Prefactor  = 5.01476
  Prefactor  = 22.046
  Prefactor  = 0.0001
  norm       = 0.410008
  Prefactor  = 12.7803
  Prefactor  = 22.8133
  norm       = 1.08029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.97109
  norm       = 9.05323
  Prefactor  = 36.3982
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.435484
  Prefactor  = 1.38174
 **********
 **   18 **HESSE 
 **********

 FCN=   5930.225     FROM HESSE     STATUS=OK           563 CALLS     4356 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6319        6.6399        .12912E-03   -1.5087    
   2  Prefactor     .10000E-03    7.5021        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.3451        5.7056        .19325E-03   -1.5291    
   4  norm          2.7444        3.5630        .15608E-03   -1.5377    
   5  norm          .81198        .31700        .25680E-04   -1.5528    
   6  Prefactor     4.5808        6.8314        .18808E-03   -1.5280    
   7  Prefactor     1.8701        2.9422        .15770E-03   -1.5434    
   8  norm          2.6394        36.420        .25005E-03   -1.5383    
   9  Prefactor     12.436        26.453        .11359E-03   -1.5003    
  10  Prefactor     .10000E-03    6.5686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.3010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7373        2.4750        .12253E-03   -1.5444    
  13  Prefactor     5.0148        239.31        .17599E-03   -1.5260    
  14  Prefactor     22.046        13.428        .85310E-04   -1.4769    
  15  Prefactor     .10000E-03    2.1188        .10931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .41001        13.244        .24147E-02   -1.5580    
  17  Prefactor     12.780        21.138        .11192E-03   -1.4993    
  18  Prefactor     22.813        16.087        .83891E-04   -1.4752    
  19  norm          1.0803        .91762        .51730E-04   -1.5500    
  20  Prefactor     .10000E-03    13.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.7161        .17955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.3227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.9711        4.0998        .21574E-03   -1.5427    
  24  norm          9.0532        10.741        .13318E-03   -1.5106    
  25  Prefactor     36.398        33.918        .66365E-04   -1.4501    
  26  Prefactor     .10000E-03    33.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    5.9817        .35982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .43548        .21930        .34105E-03   -1.1551    
  29  Prefactor     1.3817        .21559        .20388E-03   -.80908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07697e-10
Minuit parameter uncertainties:
  1  6.64037
  2  2.41003e-08
  3  5.70633
  4  3.56323
  5  0.316998
  6  6.8326
  7  2.94241
  8  19.6231
  9  26.478
  10  3.83735e-06
  11  4.52425e-06
  12  2.47517
  13  69.5806
  14  13.4302
  15  1.83329e-06
  16  4.66102
  17  21.1501
  18  16.0904
  19  0.917629
  20  3.94144e-06
  21  8.14931e-06
  22  1.24714e-06
  23  4.10042
  24  10.7433
  25  33.9357
  26  2.01211e-05
  27  3.22716e-05
  28  0.219729
  29  0.215732
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  3.837e-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.382e+00  2.157e-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:  4.355e-01  2.197e-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: 4.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394701/likelihoodResults_590284801_590544001_4FGL_J2235.8-3627_daily_bin1354.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) = 5930.22616275
delta logL = -0.000720444604667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5930.22544238
delta logL = -7.27950464352e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2299       1.0000          .0000       10.000    
     3 'Normalizat'    .43545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3818       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=   5930.225     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1389.8        .90712E-02** at limit **
   2  Index         2.2305        5.9150        .50000       -.80372E-06
   3  Normalizat    .43548        .11331        .77016E-01    .34174E-04
   4  Prefactor     1.3817        .11526        .46125E-01   -.15377E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.23045
  Normalizat = 0.435483
  Prefactor  = 1.38174
 **********
 **   18 **HESSE 
 **********

 FCN=   5930.225     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2305        5.9969        .50000       -.58705    
   3  Normalizat    .43548        .20169        .34105E-03   -1.1551    
   4  Prefactor     1.3817        .20710        .20388E-03   -.80908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18632e-12
Minuit parameter uncertainties:
  1  6.75625e-06
  2  5.38128
  3  0.202032
  4  0.207226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394701': 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) = 5930.2254423
delta logL = 2.24645191338e-10

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  6.756e-06  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.230e+00  5.381e+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.382e+00  2.072e-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:  4.355e-01  2.020e-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/394701/cmap_HighResolution_590284801_590544001_4FGL_J2235.8-3627_daily_bin1354.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.38e-03', job_status='DONE', photon_flux_upper_limit='4.43e-08', time_completed='2021-09-28 16:43:49.435809', job_id='394701', GAL2='1.38', fit_tolerance='1e-08', EG2='0.44', EG='0.44', time_epoch_completed='1632872629.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='2.25e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1354' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:43:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 394701: <4FGL_J2235.8-3627_daily_bin1354> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1354 338.971 -36.4605 590284801 590544001 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 :                                   770.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            814 sec.

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

