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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1655
RA = 339.144, Dec = -14.5557
tmin = 668304001, tmax = 668563201
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='198595', job_status='RUN', time_executed='2022-03-10 00:36:27.721603', time_epoch_executed='1646901387.72' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1655'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198595

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198595/ft1_4FGL_J2236.5-1433_daily_bin1655.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198595/ft2_4FGL_J2236.5-1433_daily_bin1655.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198595/ft1_4FGL_J2236.5-1433_daily_bin1655.fits outfile=/scratch/kocevski/198595/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1655.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=668304001.0 tmax=668563201.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.66
user 3.44
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/198595/ft2_4FGL_J2236.5-1433_daily_bin1655.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/198595/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1655.fits evtable="EVENTS" outfile="/scratch/kocevski/198595/ft1_filtered_4FGL_J2236.5-1433_daily_bin1655.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.50
user 0.33
sys 0.15
Number of photons that survived the gtmktime cut: 555

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198595/ft1_filtered_4FGL_J2236.5-1433_daily_bin1655.fits" evtable="EVENTS" scfile=/scratch/kocevski/198595/ft2_4FGL_J2236.5-1433_daily_bin1655.fits sctable="SC_DATA" outfile=/scratch/kocevski/198595/ltcube_668304001_668563201_4FGL_J2236.5-1433_daily_bin1655.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/198595/ft2_4FGL_J2236.5-1433_daily_bin1655.fits
.....................!
real 12.22
user 11.84
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198595/ft1_filtered_4FGL_J2236.5-1433_daily_bin1655.fits evtable="EVENTS" scfile=/scratch/kocevski/198595/ft2_4FGL_J2236.5-1433_daily_bin1655.fits sctable="SC_DATA" expcube=/scratch/kocevski/198595/ltcube_668304001_668563201_4FGL_J2236.5-1433_daily_bin1655.fits outfile=/scratch/kocevski/198595/expmap_668304001_668563201_4FGL_J2236.5-1433_daily_bin1655.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/198595/ltcube_668304001_668563201_4FGL_J2236.5-1433_daily_bin1655.fits
.....................!
real 190.66
user 185.96
sys 4.37

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/198595/ft1_filtered_4FGL_J2236.5-1433_daily_bin1655.fits scfile=/scratch/kocevski/198595/ft2_4FGL_J2236.5-1433_daily_bin1655.fits outfile=/scratch/kocevski/198595/cmap_668304001_668563201_4FGL_J2236.5-1433_daily_bin1655.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198595/ft1_filtered_4FGL_J2236.5-1433_daily_bin1655.fits scfile=/scratch/kocevski/198595/ft2_4FGL_J2236.5-1433_daily_bin1655.fits outfile=/scratch/kocevski/198595/cmap_HighResolution_668304001_668563201_4FGL_J2236.5-1433_daily_bin1655.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/198595/ft1_filtered_4FGL_J2236.5-1433_daily_bin1655.fits', '/scratch/kocevski/198595/ft2_4FGL_J2236.5-1433_daily_bin1655.fits', expMap='/scratch/kocevski/198595/expmap_668304001_668563201_4FGL_J2236.5-1433_daily_bin1655.fits', expCube='/scratch/kocevski/198595/ltcube_668304001_668563201_4FGL_J2236.5-1433_daily_bin1655.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/198595/Model_4FGL_J2236.5-1433_daily_bin1655.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/198595/ft1_filtered_4FGL_J2236.5-1433_daily_bin1655.fits
Spacecraft file(s): /scratch/kocevski/198595/ft2_4FGL_J2236.5-1433_daily_bin1655.fits
Exposure map: /scratch/kocevski/198595/expmap_668304001_668563201_4FGL_J2236.5-1433_daily_bin1655.fits
Exposure cube: /scratch/kocevski/198595/ltcube_668304001_668563201_4FGL_J2236.5-1433_daily_bin1655.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/198595/Model_4FGL_J2236.5-1433_daily_bin1655.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) = 6280.21100763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7844       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .39453       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.530       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.5096       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6162       1.0000         .10000E-03   10000.    
    12 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.816       1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.437       1.0000         .10000E-03   10000.    
    15 'norm      '    .90511       1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.174       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.751       1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.212       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .69312       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.4366       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6280.097     FROM MIGRAD    STATUS=CONVERGED     87 CALLS     1906 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7869        6.7011       -.76253E-05   -.50587E-03
   2  Prefactor     .10073E-03    35.492        .51068E-04** at limit **
   3  Prefactor     .42399        5.2110       -.15704E-04    .48149E-03
   4  Prefactor     24.535        1.1314       -.82120E-07    .40845E-03
   5  Prefactor     .10036E-03    28.823       -.49398E-04** at limit **
   6  Prefactor     .10000E-03    2.9218        .45309E-06** at limit **
   7  Prefactor     .10001E-03    17.507        .13796E-04** at limit **
   8  norm          4.5101        4.7146       -.12825E-05    .15991E-04
   9  Prefactor     .10183E-03    92.519       -.35432E-04** at limit **
  10  Prefactor     .10000E-03    5.7481        .17925E-08** at limit **
  11  norm          2.6160        1.1558        .10117E-06    .64128E-03
  12  norm          .10000E-03    1.3523       -.56426E-06** at limit **
  13  Prefactor     23.808        1.9070       -.20568E-05    .20342E-02
  14  Prefactor     39.412        5.6978       -.54794E-05    .79129E-02
  15  norm          .90500        1.6465        .31491E-05   -.37952E-03
  16  Prefactor     33.140        7.7632       -.81998E-05    .10092E-01
  17  Prefactor     13.751        1.1773        .10101E-05   -.16247E-03
  18  Prefactor     25.205        1.8582        .20771E-05   -.14190E-02
  19  Prefactor     .10000E-03    14.514       -.63308E-05** at limit **
  20  Normalizat    .69334        .26782        .56677E-05    .44553E-04
  21  Prefactor     1.4363        .20737       -.18185E-06    .30293E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.78694
  Prefactor  = 0.000100725
  Prefactor  = 0.423986
  Prefactor  = 24.5355
  Prefactor  = 0.000100356
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 4.5101
  Prefactor  = 0.000101828
  Prefactor  = 0.0001
  norm       = 2.61602
  norm       = 0.0001
  Prefactor  = 23.8085
  Prefactor  = 39.4117
  norm       = 0.905003
  Prefactor  = 33.1399
  Prefactor  = 13.7509
  Prefactor  = 25.2054
  Prefactor  = 0.000100001
  Normalizat = 0.693337
  Prefactor  = 1.4363
 **********
 **   18 **HESSE 
 **********

 FCN=   6280.097     FROM HESSE     STATUS=NOT POSDEF   365 CALLS     2271 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7869        6.7669        .51878E-02   -1.5319    
   2  Prefactor     .10073E-03    36.269        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .42399        8.3400        .10832       -1.5578    
   4  Prefactor     24.535        19.042        .20220E-02   -1.4717    
   5  Prefactor     .10036E-03    29.250        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8922        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    17.450        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.5101        4.7818        .47397E-02   -1.5283    
   9  Prefactor     .10183E-03    96.960        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.7041        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6160        1.1934        .63043E-02   -1.5384    
  12  norm          .10000E-03    1.3427        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.808        48.029        .20520E-02   -1.4732    
  14  Prefactor     39.412        397.64        .15957E-02   -1.4452    
  15  norm          .90500        101.42        .12826E-01   -1.5518    
  16  Prefactor     33.140        50.193        .17393E-02   -1.4556    
  17  Prefactor     13.751        14.325        .27004E-02   -1.4966    
  18  Prefactor     25.205        19.233        .19945E-02   -1.4703    
  19  Prefactor     .10000E-03    14.457        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .69334        .29202        .86137E-01   -1.0416    
  21  Prefactor     1.4363        .20692        .47872E-01   -.79340    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1291e-05
Minuit parameter uncertainties:
  1  6.76827
  2  0.0102653
  3  3.76103
  4  19.0465
  5  0.00645479
  6  1.5586e-05
  7  0.000802489
  8  4.78215
  9  0.0266718
  10  8.29725e-05
  11  1.19337
  12  1.47377e-08
  13  48.1074
  14  252.576
  15  19.1936
  16  50.2573
  17  14.3288
  18  19.2374
  19  0.000261274
  20  0.292673
  21  0.207041
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6280.09696043

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  2.616e+00  1.193e+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

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.436e+00  2.070e-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:  6.933e-01  2.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.94
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 4.63e-08
Energy Flux (Fixed Index): 4.96e-05 +/- 2.26e-05

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) = 6279.96214535
delta logL = 0.134815073103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6279.9599123
delta logL = 0.137048122388

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4978       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2673       1.0000          .0000       5.0000    
     3 'Normalizat'    .67664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4444       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.

 FCN=   6279.960     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      237 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4980        22.503        .64649E-02    .18092E-03
   2  alpha         2.2674        3.4953        .25871        .19465E-04
   3  Normalizat    .67652        .18282        .87068E-01    .32357E-04
   4  Prefactor     1.4445        .14738        .47745E-01   -.38914E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.49797
  alpha      = 2.26736
  Normalizat = 0.676524
  Prefactor  = 1.44453
 **********
 **   18 **HESSE 
 **********

 FCN=   6279.960     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4980        1.1550        .51772E-04   -1.5392    
   2  alpha         2.2674        .40117        .10637E-01   -.93193E-01
   3  Normalizat    .67652        .26798        .38567E-03   -1.0483    
   4  Prefactor     1.4445        .20683        .21105E-03   -.79105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55671e-13
Minuit parameter uncertainties:
  1  1.155
  2  0.402932
  3  0.268494
  4  0.206954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198595': 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) = 6279.95991218
delta logL = 0.137048250983

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  2.498e+00  1.155e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.267e+00  4.029e-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.445e+00  2.070e-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:  6.765e-01  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.21
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 2.27 +/- 0.40
Photon Flux (Free Index): 1.18e-07 +/- 5.84e-08
Energy Flux (Free Index): 4.33e-05 +/- 2.15e-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/198595/cmap_HighResolution_668304001_668563201_4FGL_J2236.5-1433_daily_bin1655.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='4.33e-05', photon_flux_error='4.63e-08', dlogl='1.37e-01', energy_flux='4.96e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2022-03-10 00:45:00.405697', photon_index_error2='0.40', photon_index2='2.27', ts='11.94', fit_tolerance='1e-08', GAL='1.44', photon_index_error='0.00', energy_flux_error2='2.15e-05', EG='0.69', time_epoch_completed='1646901900.41', return_code='102', job_id='198595', GAL2='1.44', EG2='0.68', return_code2='0', energy_flux_error='2.26e-05', photon_flux_error2='5.84e-08', ts2='12.21', photon_index='2.06' WHERE bin_id='1655' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 10 00:45:00 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 198595: <4FGL_J2236.5-1433_daily_bin1655> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1655> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Mar 10 00:35:46 2022
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 10 00:36:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 10 00:36:00 2022
Terminated at Thu Mar 10 00:45:00 2022
Results reported at Thu Mar 10 00:45:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1655 339.144 -14.5557 668304001 668563201 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 :                                   514.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   540 sec.
    Turnaround time :                            554 sec.

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

