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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1363
RA = 339.125, Dec = -23.1552
tmin = 592617601, tmax = 592876801
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='409162', job_status='RUN', time_executed='2021-09-28 17:16:47.701467', time_epoch_executed='1632874607.7' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1363'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409162

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409162/ft1_4FGL_J2236.4-2309_daily_bin1363.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409162/ft2_4FGL_J2236.4-2309_daily_bin1363.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409162/ft1_4FGL_J2236.4-2309_daily_bin1363.fits outfile=/scratch/kocevski/409162/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1363.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=592617601.0 tmax=592876801.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.47
user 3.22
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/409162/ft2_4FGL_J2236.4-2309_daily_bin1363.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/409162/ft2_4FGL_J2236.4-2309_daily_bin1363.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/409162/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1363.fits evtable="EVENTS" outfile="/scratch/kocevski/409162/ft1_filtered_4FGL_J2236.4-2309_daily_bin1363.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409162/ft1_filtered_4FGL_J2236.4-2309_daily_bin1363.fits" evtable="EVENTS" scfile=/scratch/kocevski/409162/ft2_4FGL_J2236.4-2309_daily_bin1363.fits sctable="SC_DATA" outfile=/scratch/kocevski/409162/ltcube_592617601_592876801_4FGL_J2236.4-2309_daily_bin1363.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/409162/ft2_4FGL_J2236.4-2309_daily_bin1363.fits
.....................!
real 12.04
user 11.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409162/ft1_filtered_4FGL_J2236.4-2309_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/409162/ft2_4FGL_J2236.4-2309_daily_bin1363.fits sctable="SC_DATA" expcube=/scratch/kocevski/409162/ltcube_592617601_592876801_4FGL_J2236.4-2309_daily_bin1363.fits outfile=/scratch/kocevski/409162/expmap_592617601_592876801_4FGL_J2236.4-2309_daily_bin1363.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/409162/ltcube_592617601_592876801_4FGL_J2236.4-2309_daily_bin1363.fits
.....................!
real 190.17
user 185.15
sys 4.55

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J2236.4-2309 @ 339.125 -23.1552

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/409162/ft1_filtered_4FGL_J2236.4-2309_daily_bin1363.fits scfile=/scratch/kocevski/409162/ft2_4FGL_J2236.4-2309_daily_bin1363.fits outfile=/scratch/kocevski/409162/cmap_592617601_592876801_4FGL_J2236.4-2309_daily_bin1363.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=339.125 yref=-23.1552 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409162/ft1_filtered_4FGL_J2236.4-2309_daily_bin1363.fits scfile=/scratch/kocevski/409162/ft2_4FGL_J2236.4-2309_daily_bin1363.fits outfile=/scratch/kocevski/409162/cmap_HighResolution_592617601_592876801_4FGL_J2236.4-2309_daily_bin1363.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=339.125 yref=-23.1552 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409162/ft1_filtered_4FGL_J2236.4-2309_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/409162/ft2_4FGL_J2236.4-2309_daily_bin1363.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409162/Model_4FGL_J2236.4-2309_daily_bin1363.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/409162/ft1_filtered_4FGL_J2236.4-2309_daily_bin1363.fits.....................!
real 46.16
user 44.76
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/409162/ft1_filtered_4FGL_J2236.4-2309_daily_bin1363.fits', '/scratch/kocevski/409162/ft2_4FGL_J2236.4-2309_daily_bin1363.fits', expMap='/scratch/kocevski/409162/expmap_592617601_592876801_4FGL_J2236.4-2309_daily_bin1363.fits', expCube='/scratch/kocevski/409162/ltcube_592617601_592876801_4FGL_J2236.4-2309_daily_bin1363.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/409162/Model_4FGL_J2236.4-2309_daily_bin1363.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2236.4-2309'

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  4.382e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.743e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/409162/ft1_filtered_4FGL_J2236.4-2309_daily_bin1363.fits
Spacecraft file(s): /scratch/kocevski/409162/ft2_4FGL_J2236.4-2309_daily_bin1363.fits
Exposure map: /scratch/kocevski/409162/expmap_592617601_592876801_4FGL_J2236.4-2309_daily_bin1363.fits
Exposure cube: /scratch/kocevski/409162/ltcube_592617601_592876801_4FGL_J2236.4-2309_daily_bin1363.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/409162/Model_4FGL_J2236.4-2309_daily_bin1363.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) = 5518.39592028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1538       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.877       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    64.188       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4695       1.0000         .10000E-03   10000.    
    10 'norm      '    .85088       1.0000         .10000E-03   10000.    
    11 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13359E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.153       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.306       1.0000         .10000E-03   10000.    
    16 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.5045       1.0000         .10000E-03   10000.    
    20 'norm      '    .95766       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2239       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.4200       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1517       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .63371       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5518.357     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2689 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4563        .20723E-07** at limit **
   2  Prefactor     .10000E-03    26.994        .36025E-05** at limit **
   3  norm          1.1538        .40532        .52377E-08   -.15084E-04
   4  Prefactor     .10000E-03    4.8966        .59905E-08** at limit **
   5  Prefactor     12.873        15.308        .14227E-06   -.70204E-05
   6  Prefactor     .10000E-03    15.110       -.12856E-06** at limit **
   7  Prefactor     .10000E-03    28.846       -.10867E-05** at limit **
   8  norm          64.184        30.334       -.46176E-06   -.10347E-03
   9  Prefactor     4.4595        12.052        .23108E-06   -.17257E-04
  10  norm          .85101        .74194        .61097E-08    .14134E-03
  11  norm          .10000E-03    .86357        .33477E-08** at limit **
  12  Prefactor     .10001E-03    84.616       -.43312E-05** at limit **
  13  Prefactor     15.151        11.099       -.23969E-07   -.38686E-04
  14  Prefactor     .10002E-03    30.777       -.73732E-05** at limit **
  15  norm          12.307        2.1343       -.45141E-07    .85185E-03
  16  norm          .10000E-03    1.8962        .22430E-07** at limit **
  17  Prefactor     .10002E-03    42.526        .73870E-05** at limit **
  18  Prefactor     .10000E-03    7.9222        .77434E-07** at limit **
  19  Prefactor     7.4899        10.828        .12821E-05    .23589E-03
  20  norm          .95830        .80051       -.22331E-06    .38971E-03
  21  Prefactor     4.2236        6.8545        .32448E-05   -.11862E-02
  22  Prefactor     6.4158        13.690        .86497E-06    .15145E-03
  23  Normalizat    1.1520        .19776       -.73252E-06    .81639E-04
  24  Prefactor     .63356        .16080        .11920E-06   -.22550E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 1.15376
  Prefactor  = 0.0001
  Prefactor  = 12.8734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 64.1835
  Prefactor  = 4.45955
  norm       = 0.851014
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 15.1515
  Prefactor  = 0.000100018
  norm       = 12.3072
  norm       = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 7.48994
  norm       = 0.958305
  Prefactor  = 4.22363
  Prefactor  = 6.41579
  Normalizat = 1.15196
  Prefactor  = 0.633565
 **********
 **   18 **HESSE 
 **********

 FCN=   5518.357     FROM HESSE     STATUS=OK           397 CALLS     3086 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1538        .40687        .27240E-04   -1.5493    
   4  Prefactor     .10000E-03    4.9375        .16052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.873        15.324        .11162E-03   -1.4990    
   6  Prefactor     .10000E-03    15.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          64.184        30.381        .50089E-04   -1.4104    
   9  Prefactor     4.4595        12.117        .19046E-03   -1.5286    
  10  norm          .85101        .76380        .57367E-03   -1.5523    
  11  norm          .10000E-03    .86819        .67373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    86.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.151        11.154        .10289E-03   -1.4929    
  14  Prefactor     .10002E-03    33.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.307        2.1251        .43227E-04   -1.5006    
  16  norm          .10000E-03    1.9069        .99787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    45.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.9272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.4899        11.174        .14640E-03   -1.5161    
  20  norm          .95830        .82940        .45397E-04   -1.5512    
  21  Prefactor     4.2236        7.9183        .98034E-03   -1.5297    
  22  Prefactor     6.4158        13.422        .15840E-03   -1.5201    
  23  Normalizat    1.1520        .24287        .24244E-03   -.88100    
  24  Prefactor     .63356        .19583        .26872E-03   -1.0619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50031e-09
Minuit parameter uncertainties:
  1  2.04964e-06
  2  0.000714816
  3  0.40687
  4  1.40364e-06
  5  15.3287
  6  1.12187e-05
  7  0.000217473
  8  30.3879
  9  12.1234
  10  0.763811
  11  2.44503e-07
  12  0.00161999
  13  11.1555
  14  0.00156555
  15  2.12512
  16  3.90515e-06
  17  0.00186927
  18  2.41674e-05
  19  11.1769
  20  0.829407
  21  7.92031
  22  13.4283
  23  0.243112
  24  0.196038
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  4.460e+00  1.212e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.743e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  6.336e-01  1.960e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.152e+00  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/409162/likelihoodResults_592617601_592876801_4FGL_J2236.4-2309_daily_bin1363.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5518.09473687
delta logL = 0.262233792379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5518.07145524
delta logL = 0.285515430527

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1921       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0235       1.0000          .0000       10.000    
     3 'Normalizat'    1.1137       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65462       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+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=   5518.071     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      253 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1909        11.242        .15886E-03   -.59685E-03
   2  Index         4.0239        2.6094        .11172E-01   -.74739E-04
   3  Normalizat    1.1137        .23466        .24601E-03   -.51819E-03
   4  Prefactor     .65462        .19437        .26469E-03   -.27605E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.19092
  Index      = 4.0239
  Normalizat = 1.11368
  Prefactor  = 0.654623
 **********
 **   18 **HESSE 
 **********

 FCN=   5518.071     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1909        7.5759        .63543E-05   -1.5351    
   2  Index         4.0239        1.8075        .44690E-03   -.19648    
   3  Normalizat    1.1137        .23512        .49202E-04   -.89314    
   4  Prefactor     .65462        .19461        .10588E-04   -1.0533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07132e-10
Minuit parameter uncertainties:
  1  7.57814
  2  1.8512
  3  0.235339
  4  0.194816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409162': 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) = 5518.07145521
delta logL = 0.285515453302

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  3.191e+00  7.578e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  4.024e+00  1.851e+00  0.000e+00  1.000e+01 (-1.000e+00)
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  6.546e-01  1.948e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.114e+00  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
Ra Dec: 339.125 -23.155

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/409162/cmap_HighResolution_592617601_592876801_4FGL_J2236.4-2309_daily_bin1363.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.21e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-28 17:27:00.656104', job_id='409162', GAL2='0.65', fit_tolerance='1e-08', EG2='1.11', EG='1.15', time_epoch_completed='1632875220.66', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='2.86e-01', ts2='0.76', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1363' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:27:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 409162: <4FGL_J2236.4-2309_daily_bin1363> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1363> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:15:14 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:15:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 17:15:15 2021
Terminated at Tue Sep 28 17:27:01 2021
Results reported at Tue Sep 28 17:27:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1363 339.125 -23.1552 592617601 592876801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2236.4-2309 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   610.22 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             306.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

