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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1128
RA = 339.144, Dec = -14.5557
tmin = 531705601, tmax = 531964801
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='413996', job_status='RUN', time_executed='2021-09-28 17:31:09.635954', time_epoch_executed='1632875469.64' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413996

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413996/ft1_4FGL_J2236.5-1433_daily_bin1128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413996/ft2_4FGL_J2236.5-1433_daily_bin1128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413996/ft1_4FGL_J2236.5-1433_daily_bin1128.fits outfile=/scratch/kocevski/413996/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1128.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=531705601.0 tmax=531964801.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.98
user 3.75
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/413996/ft2_4FGL_J2236.5-1433_daily_bin1128.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/413996/ft2_4FGL_J2236.5-1433_daily_bin1128.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/413996/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1128.fits evtable="EVENTS" outfile="/scratch/kocevski/413996/ft1_filtered_4FGL_J2236.5-1433_daily_bin1128.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413996/ft1_filtered_4FGL_J2236.5-1433_daily_bin1128.fits" evtable="EVENTS" scfile=/scratch/kocevski/413996/ft2_4FGL_J2236.5-1433_daily_bin1128.fits sctable="SC_DATA" outfile=/scratch/kocevski/413996/ltcube_531705601_531964801_4FGL_J2236.5-1433_daily_bin1128.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/413996/ft2_4FGL_J2236.5-1433_daily_bin1128.fits
.....................!
real 11.77
user 11.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413996/ft1_filtered_4FGL_J2236.5-1433_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/413996/ft2_4FGL_J2236.5-1433_daily_bin1128.fits sctable="SC_DATA" expcube=/scratch/kocevski/413996/ltcube_531705601_531964801_4FGL_J2236.5-1433_daily_bin1128.fits outfile=/scratch/kocevski/413996/expmap_531705601_531964801_4FGL_J2236.5-1433_daily_bin1128.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/413996/ltcube_531705601_531964801_4FGL_J2236.5-1433_daily_bin1128.fits
.....................!
real 190.53
user 185.33
sys 4.85

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

Setting source of interest to:
4FGL J2236.5-1433 @ 339.144 -14.5557

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/413996/ft1_filtered_4FGL_J2236.5-1433_daily_bin1128.fits scfile=/scratch/kocevski/413996/ft2_4FGL_J2236.5-1433_daily_bin1128.fits outfile=/scratch/kocevski/413996/cmap_531705601_531964801_4FGL_J2236.5-1433_daily_bin1128.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.144 yref=-14.5557 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/413996/ft1_filtered_4FGL_J2236.5-1433_daily_bin1128.fits scfile=/scratch/kocevski/413996/ft2_4FGL_J2236.5-1433_daily_bin1128.fits outfile=/scratch/kocevski/413996/cmap_HighResolution_531705601_531964801_4FGL_J2236.5-1433_daily_bin1128.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.144 yref=-14.5557 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413996/ft1_filtered_4FGL_J2236.5-1433_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/413996/ft2_4FGL_J2236.5-1433_daily_bin1128.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413996/Model_4FGL_J2236.5-1433_daily_bin1128.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/413996/ft1_filtered_4FGL_J2236.5-1433_daily_bin1128.fits.....................!
real 48.38
user 47.12
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/413996/ft1_filtered_4FGL_J2236.5-1433_daily_bin1128.fits', '/scratch/kocevski/413996/ft2_4FGL_J2236.5-1433_daily_bin1128.fits', expMap='/scratch/kocevski/413996/expmap_531705601_531964801_4FGL_J2236.5-1433_daily_bin1128.fits', expCube='/scratch/kocevski/413996/ltcube_531705601_531964801_4FGL_J2236.5-1433_daily_bin1128.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/413996/Model_4FGL_J2236.5-1433_daily_bin1128.xml', optimizer='MINUIT')

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

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.854e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.065e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  7.101e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/413996/ft1_filtered_4FGL_J2236.5-1433_daily_bin1128.fits
Spacecraft file(s): /scratch/kocevski/413996/ft2_4FGL_J2236.5-1433_daily_bin1128.fits
Exposure map: /scratch/kocevski/413996/expmap_531705601_531964801_4FGL_J2236.5-1433_daily_bin1128.fits
Exposure cube: /scratch/kocevski/413996/ltcube_531705601_531964801_4FGL_J2236.5-1433_daily_bin1128.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/413996/Model_4FGL_J2236.5-1433_daily_bin1128.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) = 5061.39529545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.594       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.915       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10644E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    13.178       1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.488       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    154.03       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .50588E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    16.483       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22923E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0725       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.866       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .78786       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0796       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+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=   5061.344     FROM MIGRAD    STATUS=CONVERGED    802 CALLS     2637 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.591        11.703        .76265E-04    .10986E-03
   2  Prefactor     .10000E-03    39.263        .18142E-02** at limit **
   3  Prefactor     .10000E-03    38.108        .36285E-03** at limit **
   4  Prefactor     15.916        12.761        .10040E-03   -.54127E-04
   5  Prefactor     .10000E-03    44.641        .18142E-02** at limit **
   6  Prefactor     .10000E-03    2.1271        .10068E-02** at limit **
   7  Prefactor     .10000E-03    21.076        .18142E-02** at limit **
   8  norm          13.178        5.9876        .54265E-03    .51265E-04
   9  Prefactor     47.653        99.869        .29093E-03    .44469E-04
  10  Prefactor     .10000E-03    22.567        .18142E-02** at limit **
  11  norm          .10000E-03    .64054        .88131E-03** at limit **
  12  norm          .10000E-03    1.6051        .87795E-03** at limit **
  13  Prefactor     154.03        81.618        .32481E-04    .34301E-04
  14  Prefactor     .10000E-03    137.57        .89874E-01** at limit **
  15  norm          16.482        4.6876        .43142E-04    .54812E-04
  16  Prefactor     .10000E-03    319.75        .40205E-03** at limit **
  17  Prefactor     4.0718        6.9158        .19979E-03    .17640E-05
  18  Prefactor     13.862        18.264        .10757E-03    .36991E-05
  19  Prefactor     .10000E-03    11.842        .18142E-02** at limit **
  20  Normalizat    .78783        .29894        .34770E-03    .93055E-04
  21  Prefactor     1.0796        .21724        .22482E-03    .12503E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.5913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9156
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.1776
  Prefactor  = 47.6534
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 154.031
  Prefactor  = 0.0001
  norm       = 16.482
  Prefactor  = 0.000100001
  Prefactor  = 4.07182
  Prefactor  = 13.8625
  Prefactor  = 0.0001
  Normalizat = 0.787827
  Prefactor  = 1.07962
 **********
 **   18 **HESSE 
 **********

 FCN=   5061.344     FROM HESSE     STATUS=OK           307 CALLS     2944 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.591        11.704        .30506E-05   -1.4657    
   2  Prefactor     .10000E-03    39.287        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    38.110        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.916        12.762        .40159E-05   -1.4910    
   5  Prefactor     .10000E-03    44.643        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1274        .20135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.077        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.178        5.9876        .21706E-04   -1.4982    
   9  Prefactor     47.653        99.871        .11637E-04   -1.4326    
  10  Prefactor     .10000E-03    22.577        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .64119        .17626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.6051        .17559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     154.03        81.617        .64961E-05   -1.3219    
  14  Prefactor     .10000E-03    114.99        .98736E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.482        4.6501        .17257E-05   -1.4896    
  16  Prefactor     .10000E-03    319.76        .80410E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.0718        6.9159        .79916E-05   -1.5304    
  18  Prefactor     13.862        18.266        .43027E-05   -1.4963    
  19  Prefactor     .10000E-03    11.842        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .78783        .29918        .13908E-04   -1.0052    
  21  Prefactor     1.0796        .21741        .44965E-04   -.90121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67885e-10
Minuit parameter uncertainties:
  1  11.7047
  2  9.53098e-05
  3  0.000210764
  4  12.7639
  5  0.000201731
  6  1.38808e-05
  7  4.30221e-06
  8  5.98785
  9  100.224
  10  5.65861e-05
  11  1.08548e-05
  12  2.37041e-06
  13  81.6769
  14  0.000208882
  15  4.65018
  16  0.00118144
  17  6.91721
  18  18.273
  19  3.83603e-06
  20  0.299804
  21  0.217587
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.000e-04  1.085e-05  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.065e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  7.101e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.080e+00  2.176e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  7.878e-01  2.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 339.144 -14.556
Photon Flux Upper Limit: 7.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413996/likelihoodResults_531705601_531964801_4FGL_J2236.5-1433_daily_bin1128.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) = 5061.35170953
delta logL = -0.00735372515464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5061.34435813
delta logL = -2.32190359384e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10172E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0612       1.0000          .0000       5.0000    
     3 'Normalizat'    .78782       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0798       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+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=   5061.344     FROM MIGRAD    STATUS=FAILED        86 CALLS      240 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    142.05        .88186E-03** at limit **
   2  alpha         2.0397        3.0776        .16793        .10981E-04
   3  Normalizat    .78783        .16782        .34770E-03    .31248E-03
   4  Prefactor     1.0796        .12632        .22483E-03    .53031E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5061.344     FROM SIMPLEX   STATUS=UNCHANGED    158 CALLS      398 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    142.05        .12507E-03** at limit **
   2  alpha         2.0397        3.0776        .80085E-05    .10981E-04
   3  Normalizat    .78783        .16782        .10223E-05    .31248E-03
   4  Prefactor     1.0796        .12632        .58913E-06    .53031E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5061.344     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      435 TOTAL
                     EDM=   .39E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .64313        .17637E-03** at limit **
   2  alpha         2.0220        2.9899        .67172E-02    .33850E-08
   3  Normalizat    .78783        .28303        .13908E-04   -.19618E-05
   4  Prefactor     1.0796        .21285        .44965E-04    .61691E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.022
  Normalizat = 0.787826
  Prefactor  = 1.07962
 **********
 **   18 **HESSE 
 **********

 FCN=   5061.344     FROM HESSE     STATUS=OK            23 CALLS      458 TOTAL
                     EDM=   .44E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .64310        .35275E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0220        2.9326        .26869E-03   -.19238    
   3  Normalizat    .78783        .28309        .27816E-05   -1.0052    
   4  Prefactor     1.0796        .21290        .89931E-05   -.90121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41398e-13
Minuit parameter uncertainties:
  1  6.00524e-08
  2  62.5925
  3  0.283622
  4  0.213064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413996': 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) = 5061.34435558
delta logL = 2.28429598792e-07

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.000e-04  6.005e-08  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.022e+00  6.259e+01  0.000e+00  5.000e+00 ( 1.000e+00)
259         beta:  7.101e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.080e+00  2.131e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  7.878e-01  2.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 339.144 -14.556

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/413996/cmap_HighResolution_531705601_531964801_4FGL_J2236.5-1433_daily_bin1128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.60e-05', job_status='DONE', photon_flux_upper_limit='7.36e-08', time_completed='2021-09-28 17:40:22.480715', job_id='413996', GAL2='1.08', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632876022.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1128' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:40:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 413996: <4FGL_J2236.5-1433_daily_bin1128> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1128> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 17:30:46 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:30:47 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:30:47 2021
Terminated at Tue Sep 28 17:40:23 2021
Results reported at Tue Sep 28 17:40:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1128 339.144 -14.5557 531705601 531964801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2236.5-1433 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   552.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             349.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   575 sec.
    Turnaround time :                            577 sec.

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

