/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 185 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 = 7477
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2236.4-2309_daily_bin394
RA = 339.125, Dec = -23.1552
tmin = 341452801, tmax = 341712001
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='404541', job_status='RUN', time_executed='2021-09-28 17:03:45.468619', time_epoch_executed='1632873825.47' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404541

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404541/ft1_4FGL_J2236.4-2309_daily_bin394.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404541/ft2_4FGL_J2236.4-2309_daily_bin394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404541/ft1_4FGL_J2236.4-2309_daily_bin394.fits outfile=/scratch/kocevski/404541/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin394.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=341452801.0 tmax=341712001.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.38
user 3.19
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404541/ft1_filtered_4FGL_J2236.4-2309_daily_bin394.fits" evtable="EVENTS" scfile=/scratch/kocevski/404541/ft2_4FGL_J2236.4-2309_daily_bin394.fits sctable="SC_DATA" outfile=/scratch/kocevski/404541/ltcube_341452801_341712001_4FGL_J2236.4-2309_daily_bin394.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/404541/ft2_4FGL_J2236.4-2309_daily_bin394.fits
.....................!
real 12.14
user 11.80
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404541/ft1_filtered_4FGL_J2236.4-2309_daily_bin394.fits evtable="EVENTS" scfile=/scratch/kocevski/404541/ft2_4FGL_J2236.4-2309_daily_bin394.fits sctable="SC_DATA" expcube=/scratch/kocevski/404541/ltcube_341452801_341712001_4FGL_J2236.4-2309_daily_bin394.fits outfile=/scratch/kocevski/404541/expmap_341452801_341712001_4FGL_J2236.4-2309_daily_bin394.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/404541/ltcube_341452801_341712001_4FGL_J2236.4-2309_daily_bin394.fits
.....................!
real 189.85
user 185.70
sys 3.84

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/404541/ft1_filtered_4FGL_J2236.4-2309_daily_bin394.fits scfile=/scratch/kocevski/404541/ft2_4FGL_J2236.4-2309_daily_bin394.fits outfile=/scratch/kocevski/404541/cmap_341452801_341712001_4FGL_J2236.4-2309_daily_bin394.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404541/ft1_filtered_4FGL_J2236.4-2309_daily_bin394.fits scfile=/scratch/kocevski/404541/ft2_4FGL_J2236.4-2309_daily_bin394.fits outfile=/scratch/kocevski/404541/cmap_HighResolution_341452801_341712001_4FGL_J2236.4-2309_daily_bin394.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.53
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404541/ft1_filtered_4FGL_J2236.4-2309_daily_bin394.fits evtable="EVENTS" scfile=/scratch/kocevski/404541/ft2_4FGL_J2236.4-2309_daily_bin394.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404541/Model_4FGL_J2236.4-2309_daily_bin394.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/404541/ft1_filtered_4FGL_J2236.4-2309_daily_bin394.fits.....................!
real 55.25
user 54.04
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6588       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2613       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2388       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4063       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .28132       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0070       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6477       1.0000         .10000E-03   10000.    
    11 'norm      '    .88949       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11850       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4426       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.455       1.0000         .10000E-03   10000.    
    15 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .50938       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1164       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5411       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.2363       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .78168       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96163       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7279.513     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     2808 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6564        2.3193       -.87284E-07   -.18312E-02
   2  Prefactor     .10003E-03    17.021       -.21740E-05** at limit **
   3  norm          1.2613        .32900       -.12786E-07   -.18950E-03
   4  Prefactor     6.2376        5.8330       -.13219E-05    .65538E-02
   5  Prefactor     .10000E-03    5.8646       -.13365E-06** at limit **
   6  Prefactor     1.4038        5.2093       -.23178E-05   -.39585E-02
   7  Prefactor     .24948        20.694        .16857E-04   -.37760E-05
   8  norm          .10003E-03    16.377        .23786E-05** at limit **
   9  Prefactor     2.0179        5.7120       -.24026E-05    .30870E-02
  10  norm          1.6478        .81287        .80713E-07    .54148E-04
  11  norm          .89281        1.1383       -.24640E-06   -.69739E-03
  12  Prefactor     .10670E-03    2267.0        .18481E-03** at limit **
  13  Prefactor     6.4442        3.1346       -.79710E-06   -.81847E-03
  14  Prefactor     11.420        16.266       -.17286E-05    .17141E-02
  15  norm          .10000E-03    .40661       -.43087E-06** at limit **
  16  norm          .50999        2.6603        .38819E-06   -.31790E-04
  17  Prefactor     1.1611        250.26       -.10504E-04    .24647E-03
  18  Prefactor     .10000E-03    3.7279        .12259E-07** at limit **
  19  Prefactor     .10000E-03    5.2698       -.26799E-05** at limit **
  20  norm          1.5411        .52789       -.71711E-07   -.63658E-03
  21  Prefactor     8.2355        3.5869        .82453E-06   -.11403E-02
  22  Prefactor     .10000E-03    5.2603        .26608E-05** at limit **
  23  Normalizat    .78152        .17585        .79560E-06   -.20773E-03
  24  Prefactor     .96181        .15892       -.61184E-06   -.20692E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.65641
  Prefactor  = 0.000100032
  norm       = 1.2613
  Prefactor  = 6.23756
  Prefactor  = 0.0001
  Prefactor  = 1.40384
  Prefactor  = 0.249484
  norm       = 0.000100027
  Prefactor  = 2.01794
  norm       = 1.64776
  norm       = 0.892814
  Prefactor  = 0.000106703
  Prefactor  = 6.44422
  Prefactor  = 11.4199
  norm       = 0.0001
  norm       = 0.509993
  Prefactor  = 1.16115
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.54112
  Prefactor  = 8.23547
  Prefactor  = 0.0001
  Normalizat = 0.781523
  Prefactor  = 0.961815
 **********
 **   18 **HESSE 
 **********

 FCN=   7279.513     FROM HESSE     STATUS=OK           477 CALLS     3285 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6564        11.439        .81900E-02   -1.5451    
   2  Prefactor     .10003E-03    17.346        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2613        .32909        .55024E-02   -1.5483    
   4  Prefactor     6.2376        6.8396        .40179E-02   -1.5208    
   5  Prefactor     .10000E-03    5.7977        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4038        9.0791        .91393E-02   -1.5471    
   7  Prefactor     .24948        49.437        .14783       -1.5608    
   8  norm          .10003E-03    16.558        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0179        8.4304        .73067E-02   -1.5424    
  10  norm          1.6478        .83201        .82247E-02   -1.5451    
  11  norm          .89281        1.6114        .23658E-01   -1.5519    
  12  Prefactor     .10670E-03    43.338        .12094       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.4442        9.3591        .39530E-02   -1.5200    
  14  Prefactor     11.420        17.731        .29591E-02   -1.5032    
  15  norm          .10000E-03    .36780        .23434E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .50999        2.7707        .11309E-01   -1.5565    
  17  Prefactor     1.1611        41.044        .12637       -1.5492    
  18  Prefactor     .10000E-03    3.7300        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.2048        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5411        .53756        .76363E-02   -1.5460    
  21  Prefactor     8.2355        7.6335        .34924E-02   -1.5134    
  22  Prefactor     .10000E-03    5.2020        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .78152        .15639        .43371E-01   -1.0076    
  24  Prefactor     .96181        .13477        .45786E-01   -.94013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46952e-07
Minuit parameter uncertainties:
  1  8.70776
  2  0.00149171
  3  0.329092
  4  6.84047
  5  2.38762e-07
  6  7.1415
  7  7.02838
  8  0.00134511
  9  8.25094
  10  0.832021
  11  1.61152
  12  0.034112
  13  9.36119
  14  17.7388
  15  2.39843e-06
  16  2.37737
  17  13.8167
  18  1.98405e-06
  19  5.77103e-05
  20  0.537559
  21  7.63445
  22  6.21168e-05
  23  0.156482
  24  0.134815
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.018e+00  8.251e+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

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  9.618e-01  1.348e-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:  7.815e-01  1.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 7.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/404541/likelihoodResults_341452801_341712001_4FGL_J2236.4-2309_daily_bin394.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) = 7278.12280325
delta logL = 1.39035161544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7277.96339054
delta logL = 1.54976432308

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25458E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    9.7232       1.0000          .0000       10.000    
     3 'Normalizat'    .68501       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0238       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7277.963     FROM MIGRAD    STATUS=FAILED       103 CALLS      405 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25283E-02    .55236E-01    .27953E-04** at limit **
   2  Index         9.7281        8.3640        .29466E-01   -.27828E-03
   3  Normalizat    .68483        .14313        .26664E-03    .27586E-04
   4  Prefactor     1.0239        .12732        .20255E-03    .27110E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7277.963     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      495 TOTAL
                     EDM=   .90E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25283E-02    .55236E-01    .88903E-05** at limit **
   2  Index         9.7281        8.3640        .71660E-02   -.27828E-03
   3  Normalizat    .68483        .14313        .13497E-03    .27586E-04
   4  Prefactor     1.0239        .12732        .33777E-04    .27110E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7277.963     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      526 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25283E-02    .56086E-01    .11181E-05** at limit **
   2  Index         9.7281        8.3029        .58932E-02    .36769E-05
   3  Normalizat    .68483        .17751        .10665E-04    .18974E-04
   4  Prefactor     1.0239        .15871        .81020E-05    .19364E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00252827
  Index      = 9.72815
  Normalizat = 0.684832
  Prefactor  = 1.02394
 **********
 **   18 **HESSE 
 **********

 FCN=   7277.963     FROM HESSE     STATUS=OK            27 CALLS      553 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25283E-02    .26858E-01    .74854E-07   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.7281        9.8617        .23573E-03    1.2395    
   3  Normalizat    .68483        .18021        .21331E-05   -1.0449    
   4  Prefactor     1.0239        .16163        .16204E-05   -.91936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12889e-12
Minuit parameter uncertainties:
  1  0.0161517
  2  4.49859
  3  0.180362
  4  0.161705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404541': 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) = 7277.96338925
delta logL = 1.54976561639

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.528e-03  1.615e-02  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  9.728e+00  4.499e+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:  1.024e+00  1.617e-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:  6.848e-01  1.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.48
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 9.73 +/- 4.50
Photon Flux (Free Index): 6.52e-08 +/- 4.27e-08
Energy Flux (Free Index): 7.32e-06 +/- 4.93e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/404541/cmap_HighResolution_341452801_341712001_4FGL_J2236.4-2309_daily_bin394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-03', comment='SUCCESS', energy_flux2='7.32e-06', dlogl='1.55e+00', photon_flux2='6.52e-08', job_status='DONE', time_completed='2021-09-28 17:15:52.124746', photon_index_error2='4.50', photon_index2='9.73', ts='0.08', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='7.76e-08', energy_flux_error2='4.93e-06', EG='0.78', time_epoch_completed='1632874552.12', return_code='0', job_id='404541', GAL2='1.02', EG2='0.68', return_code2='0', photon_flux_error2='4.27e-08', ts2='3.48', photon_index='2.74' WHERE bin_id='394' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:15:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 404541: <4FGL_J2236.4-2309_daily_bin394> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin394> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:00:29 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:00:31 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:00:31 2021
Terminated at Tue Sep 28 17:15:52 2021
Results reported at Tue Sep 28 17:15:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin394 339.125 -23.1552 341452801 341712001 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 :                                   727.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             276.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            923 sec.

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

