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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1102
RA = 339.144, Dec = -14.5557
tmin = 524966401, tmax = 525225601
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='413953', job_status='RUN', time_executed='2021-09-28 17:31:40.817756', time_epoch_executed='1632875500.82' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1102'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413953

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413953/ft1_4FGL_J2236.5-1433_daily_bin1102.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413953/ft2_4FGL_J2236.5-1433_daily_bin1102.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413953/ft1_4FGL_J2236.5-1433_daily_bin1102.fits outfile=/scratch/kocevski/413953/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1102.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=524966401.0 tmax=525225601.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.42
user 3.20
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413953/ft1_filtered_4FGL_J2236.5-1433_daily_bin1102.fits" evtable="EVENTS" scfile=/scratch/kocevski/413953/ft2_4FGL_J2236.5-1433_daily_bin1102.fits sctable="SC_DATA" outfile=/scratch/kocevski/413953/ltcube_524966401_525225601_4FGL_J2236.5-1433_daily_bin1102.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/413953/ft2_4FGL_J2236.5-1433_daily_bin1102.fits
.....................!
real 11.69
user 11.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413953/ft1_filtered_4FGL_J2236.5-1433_daily_bin1102.fits evtable="EVENTS" scfile=/scratch/kocevski/413953/ft2_4FGL_J2236.5-1433_daily_bin1102.fits sctable="SC_DATA" expcube=/scratch/kocevski/413953/ltcube_524966401_525225601_4FGL_J2236.5-1433_daily_bin1102.fits outfile=/scratch/kocevski/413953/expmap_524966401_525225601_4FGL_J2236.5-1433_daily_bin1102.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/413953/ltcube_524966401_525225601_4FGL_J2236.5-1433_daily_bin1102.fits
.....................!
real 189.88
user 185.60
sys 3.93

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/413953/ft1_filtered_4FGL_J2236.5-1433_daily_bin1102.fits scfile=/scratch/kocevski/413953/ft2_4FGL_J2236.5-1433_daily_bin1102.fits outfile=/scratch/kocevski/413953/cmap_524966401_525225601_4FGL_J2236.5-1433_daily_bin1102.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413953/ft1_filtered_4FGL_J2236.5-1433_daily_bin1102.fits scfile=/scratch/kocevski/413953/ft2_4FGL_J2236.5-1433_daily_bin1102.fits outfile=/scratch/kocevski/413953/cmap_HighResolution_524966401_525225601_4FGL_J2236.5-1433_daily_bin1102.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/413953/ft1_filtered_4FGL_J2236.5-1433_daily_bin1102.fits evtable="EVENTS" scfile=/scratch/kocevski/413953/ft2_4FGL_J2236.5-1433_daily_bin1102.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413953/Model_4FGL_J2236.5-1433_daily_bin1102.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/413953/ft1_filtered_4FGL_J2236.5-1433_daily_bin1102.fits.....................!
real 59.68
user 58.33
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73729       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .82817       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.417       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.830       1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.330       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.263       1.0000         .10000E-03   10000.    
     8 'norm      '    7.3823       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.8454       1.0000         .10000E-03   10000.    
    12 'norm      '    .10641E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    63.723       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10482E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.0695       1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.754       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2349       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9489       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .63506       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99042       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.

 FCN=   7347.919     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2297 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .75900        2.8871        .67898E-07    .46642E-04
   2  Prefactor     .82449        8.1775       -.13024E-05    .10795E-03
   3  Prefactor     14.415        11.056       -.18216E-06   -.10510E-03
   4  Prefactor     16.827        11.989        .88591E-07   -.10891E-04
   5  Prefactor     44.140        60.572        .22648E-05   -.12050E-04
   6  Prefactor     .10000E-03    3.2504       -.25574E-08** at limit **
   7  Prefactor     18.214        51.976        .47897E-06   -.61724E-05
   8  norm          7.3840        3.4382       -.38968E-07   -.69967E-04
   9  Prefactor     .10000E-03    64.233        .21327E-06** at limit **
  10  Prefactor     .10000E-03    5.9774        .71873E-07** at limit **
  11  norm          3.8455        1.0336        .60449E-10   -.16716E-03
  12  norm          .10000E-03    1.8439       -.18408E-05** at limit **
  13  Prefactor     63.764        35.995       -.26702E-05   -.21027E-04
  14  Prefactor     .10000E-03    13.822        .57729E-06** at limit **
  15  norm          3.0714        1.3285        .72569E-08   -.60018E-03
  16  Prefactor     44.724        31.103       -.36370E-06    .21666E-04
  17  Prefactor     3.2352        7.7801        .41337E-06    .83689E-04
  18  Prefactor     3.9480        7.6873        .31179E-06    .59956E-04
  19  Prefactor     .10000E-03    12.228        .66687E-07** at limit **
  20  Normalizat    .63550        .16568       -.66920E-06   -.14097E-03
  21  Prefactor     .99010        .12597        .78716E-07   -.14877E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.758997
  Prefactor  = 0.824493
  Prefactor  = 14.4145
  Prefactor  = 16.8266
  Prefactor  = 44.1399
  Prefactor  = 0.0001
  Prefactor  = 18.2137
  norm       = 7.38401
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.84554
  norm       = 0.0001
  Prefactor  = 63.7645
  Prefactor  = 0.0001
  norm       = 3.07136
  Prefactor  = 44.7241
  Prefactor  = 3.23521
  Prefactor  = 3.94801
  Prefactor  = 0.0001
  Normalizat = 0.635496
  Prefactor  = 0.990098
 **********
 **   18 **HESSE 
 **********

 FCN=   7347.919     FROM HESSE     STATUS=OK           327 CALLS     2624 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .75900        8.1968        .26345E-02   -1.5534    
   2  Prefactor     .82449        24.647        .44815E-02   -1.5526    
   3  Prefactor     14.415        10.988        .10549E-03   -1.4948    
   4  Prefactor     16.827        11.951        .97630E-04   -1.4887    
   5  Prefactor     44.140        60.636        .60215E-04   -1.4378    
   6  Prefactor     .10000E-03    3.3669        .30041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.214        52.005        .93719E-04   -1.4854    
   8  norm          7.3840        3.4333        .10145E-03   -1.5164    
   9  Prefactor     .10000E-03    64.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.0795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.8455        1.0330        .20580E-04   -1.5316    
  12  norm          .10000E-03    1.8650        .17569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     63.764        36.167        .50271E-04   -1.4109    
  14  Prefactor     .10000E-03    13.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.0714        1.3377        .51653E-04   -1.5357    
  16  Prefactor     44.724        31.395        .59930E-04   -1.4369    
  17  Prefactor     3.2352        7.7836        .22521E-03   -1.5348    
  18  Prefactor     3.9480        7.6879        .20299E-03   -1.5311    
  19  Prefactor     .10000E-03    12.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .63550        .19487        .29925E-03   -1.0650    
  21  Prefactor     .99010        .14969        .19488E-03   -.93060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83422e-10
Minuit parameter uncertainties:
  1  4.98906
  2  9.01937
  3  10.9894
  4  11.9527
  5  60.7208
  6  1.50845e-06
  7  52.1343
  8  3.43336
  9  6.98371e-05
  10  1.36733e-05
  11  1.03299
  12  4.08587e-06
  13  36.1799
  14  0.000138791
  15  1.33771
  16  31.4061
  17  7.78603
  18  7.6898
  19  1.57598e-05
  20  0.195079
  21  0.149756
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  3.846e+00  1.033e+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:  9.901e-01  1.498e-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.355e-01  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 43.83
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 1.49e-07 +/- 4.01e-08
Energy Flux (Fixed Index): 7.29e-05 +/- 1.96e-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) = 7347.88036339
delta logL = 0.0385778904329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7347.87680056
delta logL = 0.0421407204676

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8187       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1434       1.0000          .0000       5.0000    
     3 'Normalizat'    .62380       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99532       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=   7347.877     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8190        2.1322        .51636E-02    .84451E-04
   2  alpha         2.1435        .54392        .19715        .24493E-04
   3  Normalizat    .62376        .16527        .68172E-01    .40570E-04
   4  Prefactor     .99535        .12826        .46209E-01    .11881E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.819
  alpha      = 2.14348
  Normalizat = 0.62376
  Prefactor  = 0.995351
 **********
 **   18 **HESSE 
 **********

 FCN=   7347.877     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .23E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8190        1.0066        .41592E-04   -1.5317    
   2  alpha         2.1435        .27318        .81953E-02   -.14310    
   3  Normalizat    .62376        .18773        .30170E-03   -1.0698    
   4  Prefactor     .99535        .14811        .19436E-03   -.92885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3278e-13
Minuit parameter uncertainties:
  1  1.00665
  2  0.273733
  3  0.187923
  4  0.148173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413953': 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) = 7347.87680048
delta logL = 0.042140805861

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  3.819e+00  1.007e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.143e+00  2.737e-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:  9.954e-01  1.482e-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.238e-01  1.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 43.86
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 2.14 +/- 0.27
Photon Flux (Free Index): 1.60e-07 +/- 5.39e-08
Energy Flux (Free Index): 6.90e-05 +/- 2.19e-05

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/413953/cmap_HighResolution_524966401_525225601_4FGL_J2236.5-1433_daily_bin1102.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.49e-07', energy_flux2='6.90e-05', photon_flux_error='4.01e-08', dlogl='4.21e-02', energy_flux='7.29e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-09-28 17:41:13.271861', photon_index_error2='0.27', photon_index2='2.14', ts='43.83', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.19e-05', EG='0.64', time_epoch_completed='1632876073.27', return_code='0', job_id='413953', GAL2='1.00', EG2='0.62', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='5.39e-08', ts2='43.86', photon_index='2.06' WHERE bin_id='1102' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:41:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 413953: <4FGL_J2236.5-1433_daily_bin1102> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1102 339.144 -14.5557 524966401 525225601 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 :                                   572.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             322.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            630 sec.

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

