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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1403
RA = 339.125, Dec = -23.1552
tmin = 602985601, tmax = 603244801
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='409220', job_status='RUN', time_executed='2021-09-28 17:15:44.581957', time_epoch_executed='1632874544.58' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409220

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409220/ft1_4FGL_J2236.4-2309_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409220/ft2_4FGL_J2236.4-2309_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409220/ft1_4FGL_J2236.4-2309_daily_bin1403.fits outfile=/scratch/kocevski/409220/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1403.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=602985601.0 tmax=603244801.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.01
user 2.80
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409220/ft1_filtered_4FGL_J2236.4-2309_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/409220/ft2_4FGL_J2236.4-2309_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/409220/ltcube_602985601_603244801_4FGL_J2236.4-2309_daily_bin1403.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/409220/ft2_4FGL_J2236.4-2309_daily_bin1403.fits
.....................!
real 12.35
user 11.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409220/ft1_filtered_4FGL_J2236.4-2309_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/409220/ft2_4FGL_J2236.4-2309_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/409220/ltcube_602985601_603244801_4FGL_J2236.4-2309_daily_bin1403.fits outfile=/scratch/kocevski/409220/expmap_602985601_603244801_4FGL_J2236.4-2309_daily_bin1403.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/409220/ltcube_602985601_603244801_4FGL_J2236.4-2309_daily_bin1403.fits
.....................!
real 190.73
user 185.46
sys 4.96

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/409220/ft1_filtered_4FGL_J2236.4-2309_daily_bin1403.fits scfile=/scratch/kocevski/409220/ft2_4FGL_J2236.4-2309_daily_bin1403.fits outfile=/scratch/kocevski/409220/cmap_602985601_603244801_4FGL_J2236.4-2309_daily_bin1403.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409220/ft1_filtered_4FGL_J2236.4-2309_daily_bin1403.fits scfile=/scratch/kocevski/409220/ft2_4FGL_J2236.4-2309_daily_bin1403.fits outfile=/scratch/kocevski/409220/cmap_HighResolution_602985601_603244801_4FGL_J2236.4-2309_daily_bin1403.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409220/ft1_filtered_4FGL_J2236.4-2309_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/409220/ft2_4FGL_J2236.4-2309_daily_bin1403.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409220/Model_4FGL_J2236.4-2309_daily_bin1403.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/409220/ft1_filtered_4FGL_J2236.4-2309_daily_bin1403.fits.........................!
real 18.75
user 17.54
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/409220/ft1_filtered_4FGL_J2236.4-2309_daily_bin1403.fits', '/scratch/kocevski/409220/ft2_4FGL_J2236.4-2309_daily_bin1403.fits', expMap='/scratch/kocevski/409220/expmap_602985601_603244801_4FGL_J2236.4-2309_daily_bin1403.fits', expCube='/scratch/kocevski/409220/ltcube_602985601_603244801_4FGL_J2236.4-2309_daily_bin1403.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/409220/Model_4FGL_J2236.4-2309_daily_bin1403.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/409220/ft1_filtered_4FGL_J2236.4-2309_daily_bin1403.fits
Spacecraft file(s): /scratch/kocevski/409220/ft2_4FGL_J2236.4-2309_daily_bin1403.fits
Exposure map: /scratch/kocevski/409220/expmap_602985601_603244801_4FGL_J2236.4-2309_daily_bin1403.fits
Exposure cube: /scratch/kocevski/409220/ltcube_602985601_603244801_4FGL_J2236.4-2309_daily_bin1403.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/409220/Model_4FGL_J2236.4-2309_daily_bin1403.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) = 847.854681602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     2 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     3 'norm      '    .10760E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    349.17       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10747E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.469       1.0000         .10000E-03   10000.    
    10 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    58.305       1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.198       1.0000         .10000E-03   10000.    
    15 'norm      '    9.4843       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    130.11       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.947       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.131       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.472       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .46060       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .55607       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=   847.8244     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     3201 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        1709.6       -.15059E-03** at limit **
   2  Prefactor    10000.0        6241.9       -.91118E-04** at limit **
   3  norm          .10000E-03    79.386       -.97556E-06** at limit **
   4  Prefactor     349.71        1116.2       -.36841E-04    .13510E-05
   5  Prefactor     .10000E-03    164.51        .10486E-04** at limit **
   6  Prefactor     .10000E-03    200.30       -.14021E-04** at limit **
   7  Prefactor     .10000E-03    453.95       -.15779E-04** at limit **
   8  norm          .10000E-03    74.528        .21781E-05** at limit **
   9  Prefactor     34.469        48.121        .59911E-06   -.10031E-04
  10  norm          .10000E-03    1.7357        .56298E-06** at limit **
  11  norm          .10000E-03    3.1789       -.17637E-07** at limit **
  12  Prefactor     .10000E-03    172.45        .33606E-05** at limit **
  13  Prefactor     58.304        39.834        .55342E-06    .14985E-04
  14  Prefactor     53.531        190.87        .10309E-03   -.38495E-05
  15  norm          9.4618        15.877       -.21381E-04   -.60851E-04
  16  norm          .10000E-03    4.8490       -.92808E-07** at limit **
  17  Prefactor     130.08        123.16        .10221E-04    .70695E-05
  18  Prefactor     .10000E-03    18.367       -.17373E-06** at limit **
  19  Prefactor     16.944        24.079        .14298E-05    .61729E-04
  20  norm          .10000E-03    .95086       -.28715E-06** at limit **
  21  Prefactor     16.124        39.845       -.44730E-05    .11332E-04
  22  Prefactor     17.473        21.710        .14705E-06    .53932E-04
  23  Normalizat    .46038        .46848       -.15972E-04    .51193E-04
  24  Prefactor     .55614        .34964        .95852E-05   -.17194E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.000100001
  Prefactor  = 349.709
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.4685
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.3039
  Prefactor  = 53.531
  norm       = 9.46183
  norm       = 0.0001
  Prefactor  = 130.08
  Prefactor  = 0.0001
  Prefactor  = 16.9443
  norm       = 0.0001
  Prefactor  = 16.1238
  Prefactor  = 17.4732
  Normalizat = 0.460377
  Prefactor  = 0.556136
 **********
 **   18 **HESSE 
 **********

 FCN=   847.8244     FROM HESSE     STATUS=OK           393 CALLS     3594 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        1710.3        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        6242.1        .19896E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    79.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     349.71        1115.1        .10895E-03   -1.1946    
   5  Prefactor     .10000E-03    164.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    200.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    454.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    74.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.469        48.241        .68256E-04   -1.4533    
  10  norm          .10000E-03    1.7852        .74851E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.1807        .50704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    172.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     58.304        39.893        .26270E-03   -1.4179    
  14  Prefactor     53.531        189.99        .54991E-04   -1.4243    
  15  norm          9.4618        15.820        .43346E-04   -1.5093    
  16  norm          .10000E-03    4.8503        .62607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     130.08        123.04        .17649E-03   -1.3422    
  18  Prefactor     .10000E-03    18.370        .12190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.944        24.073        .97292E-04   -1.4884    
  20  norm          .10000E-03    .96635        .54551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.124        39.870        .99721E-04   -1.4905    
  22  Prefactor     17.473        21.666        .95817E-04   -1.4872    
  23  Normalizat    .46038        .52894        .32117E-03   -1.1429    
  24  Prefactor     .55614        .39714        .24303E-03   -1.0947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68484e-10
Minuit parameter uncertainties:
  1  0.00222681
  2  0.00216561
  3  0.000522702
  4  1198.32
  5  4.49684e-05
  6  0.000589073
  7  0.000203843
  8  7.7413e-05
  9  48.2958
  10  6.53185e-06
  11  7.98298e-08
  12  8.57606e-05
  13  39.9111
  14  192.203
  15  15.8268
  16  7.80368e-06
  17  123.283
  18  2.60786e-05
  19  24.0869
  20  1.012e-05
  21  39.9363
  22  21.6756
  23  0.534854
  24  0.399154
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  3.447e+01  4.830e+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:  5.561e-01  3.992e-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:  4.604e-01  5.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.84
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 5.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/409220/likelihoodResults_602985601_603244801_4FGL_J2236.4-2309_daily_bin1403.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) = 847.305933618
delta logL = 0.518452939105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 847.301780384
delta logL = 0.522606173266

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9610       1.0000         .10000E-03   10000.    
     2 'Index     '    4.8355       1.0000          .0000       10.000    
     3 'Normalizat'    .36833       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61348       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=   847.3018     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      301 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9449        26.957        .71346E-04    .36775E-03
   2  Index         4.8355        2.9827        .43020E-02    .76625E-04
   3  Normalizat    .37026        .46985        .35431E-03    .46607E-05
   4  Prefactor     .61279        .39198        .23213E-03    .17287E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.94495
  Index      = 4.8355
  Normalizat = 0.370262
  Prefactor  = 0.612793
 **********
 **   18 **HESSE 
 **********

 FCN=   847.3018     FROM HESSE     STATUS=OK            23 CALLS      324 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9449        20.381        .14269E-04   -1.5181    
   2  Index         4.8355        2.3213        .17208E-03   -.32905E-01
   3  Normalizat    .37026        .47020        .14172E-04   -1.1887    
   4  Prefactor     .61279        .39217        .46425E-04   -1.0705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02086e-09
Minuit parameter uncertainties:
  1  20.4018
  2  2.41409
  3  0.475348
  4  0.39394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409220': 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) = 847.301765492
delta logL = 0.522621065223

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  6.945e+00  2.040e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  4.836e+00  2.414e+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.128e-01  3.939e-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:  3.703e-01  4.753e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 4.84 +/- 2.41
Photon Flux (Free Index): 2.58e-07 +/- 2.61e-07
Energy Flux (Free Index): 3.48e-05 +/- 3.44e-05

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/409220/cmap_HighResolution_602985601_603244801_4FGL_J2236.4-2309_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.41e-02', comment='SUCCESS', energy_flux2='3.48e-05', dlogl='5.23e-01', photon_flux2='2.58e-07', job_status='DONE', time_completed='2021-09-28 17:21:46.208682', photon_index_error2='2.41', photon_index2='4.84', ts='0.84', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', photon_flux_upper_limit='5.59e-07', energy_flux_error2='3.44e-05', EG='0.46', time_epoch_completed='1632874906.21', return_code='0', job_id='409220', GAL2='0.61', EG2='0.37', return_code2='0', photon_flux_error2='2.61e-07', ts2='2.05', photon_index='2.74' WHERE bin_id='1403' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:21:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 409220: <4FGL_J2236.4-2309_daily_bin1403> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1403> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:15:18 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:15:19 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:19 2021
Terminated at Tue Sep 28 17:21:46 2021
Results reported at Tue Sep 28 17:21:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1403 339.125 -23.1552 602985601 603244801 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 :                                   360.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             289.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   387 sec.
    Turnaround time :                            388 sec.

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

