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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1629
RA = 339.144, Dec = -14.5557
tmin = 661564801, tmax = 661824001
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='447512', job_status='RUN', time_executed='2021-12-22 02:47:29.974304', time_epoch_executed='1640170049.97' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1629'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447512

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447512/ft1_4FGL_J2236.5-1433_daily_bin1629.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447512/ft2_4FGL_J2236.5-1433_daily_bin1629.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447512/ft1_4FGL_J2236.5-1433_daily_bin1629.fits outfile=/scratch/kocevski/447512/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1629.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=661564801.0 tmax=661824001.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.58
user 3.33
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447512/ft1_filtered_4FGL_J2236.5-1433_daily_bin1629.fits" evtable="EVENTS" scfile=/scratch/kocevski/447512/ft2_4FGL_J2236.5-1433_daily_bin1629.fits sctable="SC_DATA" outfile=/scratch/kocevski/447512/ltcube_661564801_661824001_4FGL_J2236.5-1433_daily_bin1629.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/447512/ft2_4FGL_J2236.5-1433_daily_bin1629.fits
.....................!
real 13.78
user 13.38
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447512/ft1_filtered_4FGL_J2236.5-1433_daily_bin1629.fits evtable="EVENTS" scfile=/scratch/kocevski/447512/ft2_4FGL_J2236.5-1433_daily_bin1629.fits sctable="SC_DATA" expcube=/scratch/kocevski/447512/ltcube_661564801_661824001_4FGL_J2236.5-1433_daily_bin1629.fits outfile=/scratch/kocevski/447512/expmap_661564801_661824001_4FGL_J2236.5-1433_daily_bin1629.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/447512/ltcube_661564801_661824001_4FGL_J2236.5-1433_daily_bin1629.fits
.....................!
real 192.09
user 186.47
sys 5.07

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/447512/ft1_filtered_4FGL_J2236.5-1433_daily_bin1629.fits scfile=/scratch/kocevski/447512/ft2_4FGL_J2236.5-1433_daily_bin1629.fits outfile=/scratch/kocevski/447512/cmap_661564801_661824001_4FGL_J2236.5-1433_daily_bin1629.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447512/ft1_filtered_4FGL_J2236.5-1433_daily_bin1629.fits scfile=/scratch/kocevski/447512/ft2_4FGL_J2236.5-1433_daily_bin1629.fits outfile=/scratch/kocevski/447512/cmap_HighResolution_661564801_661824001_4FGL_J2236.5-1433_daily_bin1629.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/447512/ft1_filtered_4FGL_J2236.5-1433_daily_bin1629.fits evtable="EVENTS" scfile=/scratch/kocevski/447512/ft2_4FGL_J2236.5-1433_daily_bin1629.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/447512/Model_4FGL_J2236.5-1433_daily_bin1629.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/447512/ft1_filtered_4FGL_J2236.5-1433_daily_bin1629.fits.....................!
real 60.71
user 59.39
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3634       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.560       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.510       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.691       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11540E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.0121       1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.441       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6930       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9771       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3870       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12643E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.522       1.0000         .10000E-03   10000.    
    15 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2833       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0284       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93177       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=   7021.099     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2228 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3637        6.9676        .78995E-06   -.12376E-03
   2  Prefactor     27.560        18.040       -.44840E-06   -.35030E-05
   3  Prefactor     12.511        10.171        .39428E-06   -.16591E-04
   4  Prefactor     .10000E-03    3.5348       -.29201E-06** at limit **
   5  Prefactor     16.649        109.19       -.93566E-04   -.39449E-05
   6  Prefactor     .10000E-03    1.8566        .44960E-06** at limit **
   7  Prefactor     .10000E-03    59.644        .70822E-04** at limit **
   8  norm          9.0132        4.4265        .56311E-06   -.13251E-03
   9  Prefactor     49.426        66.197       -.18169E-04   -.61791E-05
  10  Prefactor     1.6882        10.982        .32774E-05   -.24140E-03
  11  norm          1.9771        .95893        .15296E-06   -.61099E-03
  12  norm          1.3866        1.5161        .19795E-06    .16465E-02
  13  Prefactor     .10000E-03    81.977       -.72873E-04** at limit **
  14  Prefactor     41.523        16.762       -.83492E-06   -.10944E-03
  15  norm          .10000E-03    .78375        .31116E-06** at limit **
  16  Prefactor     .10000E-03    39.844       -.16029E-04** at limit **
  17  Prefactor     .10000E-03    4.7437        .21486E-07** at limit **
  18  Prefactor     .10000E-03    5.9682       -.91790E-07** at limit **
  19  Prefactor     7.2829        11.761       -.56335E-06   -.16980E-04
  20  Normalizat    1.0286        .18404        .19947E-05    .14811E-03
  21  Prefactor     .93166        .13970        .18782E-05    .10141E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.36368
  Prefactor  = 27.5603
  Prefactor  = 12.5107
  Prefactor  = 0.0001
  Prefactor  = 16.6488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.01317
  Prefactor  = 49.426
  Prefactor  = 1.68824
  norm       = 1.97707
  norm       = 1.38661
  Prefactor  = 0.0001
  Prefactor  = 41.5231
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.28289
  Normalizat = 1.02857
  Prefactor  = 0.931655
 **********
 **   18 **HESSE 
 **********

 FCN=   7021.099     FROM HESSE     STATUS=OK           323 CALLS     2551 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3637        6.9594        .13862E-03   -1.5129    
   2  Prefactor     27.560        18.033        .76312E-04   -1.4658    
   3  Prefactor     12.511        10.168        .11325E-03   -1.5000    
   4  Prefactor     .10000E-03    3.5387        .15385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.649        109.19        .98035E-04   -1.4892    
   6  Prefactor     .10000E-03    3.4544        .22061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    59.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.0132        4.4121        .11134E-03   -1.5107    
   9  Prefactor     49.426        66.185        .57032E-04   -1.4301    
  10  Prefactor     1.6882        10.951        .32347E-03   -1.5448    
  11  norm          1.9771        .95406        .54131E-04   -1.5427    
  12  norm          1.3866        1.4903        .10453E-03   -1.5472    
  13  Prefactor     .10000E-03    82.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.523        14.440        .62209E-04   -1.4418    
  15  norm          .10000E-03    1.3178        .12311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    40.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.7626        .17822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.9995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.2829        11.755        .14862E-03   -1.5168    
  20  Normalizat    1.0286        .21991        .27010E-03   -.92080    
  21  Prefactor     .93166        .16676        .21988E-03   -.95044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18125e-09
Minuit parameter uncertainties:
  1  6.96004
  2  18.0368
  3  10.1692
  4  8.21123e-07
  5  85.5003
  6  2.81696e-05
  7  0.000334277
  8  4.41223
  9  66.2837
  10  8.60168
  11  0.954071
  12  1.49034
  13  0.000141546
  14  14.4411
  15  3.51872e-05
  16  0.000149299
  17  3.69313e-06
  18  1.73116e-05
  19  11.7588
  20  0.220107
  21  0.166851
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.977e+00  9.541e-01  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.317e-01  1.669e-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:  1.029e+00  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.15
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 7.67e-08 +/- 3.70e-08
Energy Flux (Fixed Index): 3.75e-05 +/- 1.81e-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) = 7020.7171778
delta logL = 0.381929211558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7020.69109483
delta logL = 0.408012178415

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8086       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5458       1.0000          .0000       5.0000    
     3 'Normalizat'    .98058       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95452       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=   7020.691     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      227 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8085        10.273        .77675E-02    .55921E-03
   2  alpha         2.5461        3.7723        .31391        .50583E-04
   3  Normalizat    .98060        .80157E-01    .45923E-01    .16067E-04
   4  Prefactor     .95451        .51046E-01    .45696E-01    .81099E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.80845
  alpha      = 2.54612
  Normalizat = 0.980603
  Prefactor  = 0.954515
 **********
 **   18 **HESSE 
 **********

 FCN=   7020.691     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8085        1.0204        .45700E-04   -1.5439    
   2  alpha         2.5461        .59406        .11524E-01    .18448E-01
   3  Normalizat    .98060        .21950        .27521E-03   -.93683    
   4  Prefactor     .95451        .16821        .21739E-03   -.94261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33492e-09
Minuit parameter uncertainties:
  1  1.02044
  2  0.599798
  3  0.219701
  4  0.168297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447512': 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) = 7020.69109462
delta logL = 0.408012388371

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.808e+00  1.020e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.546e+00  5.998e-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.545e-01  1.683e-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:  9.806e-01  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.96
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 2.55 +/- 0.60
Photon Flux (Free Index): 1.17e-07 +/- 6.30e-08
Energy Flux (Free Index): 3.21e-05 +/- 1.47e-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/447512/cmap_HighResolution_661564801_661824001_4FGL_J2236.5-1433_daily_bin1629.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.67e-08', energy_flux2='3.21e-05', photon_flux_error='3.70e-08', dlogl='4.08e-01', energy_flux='3.75e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-12-22 02:56:57.753675', photon_index_error2='0.60', photon_index2='2.55', ts='9.15', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='1.03', time_epoch_completed='1640170617.75', return_code='0', job_id='447512', GAL2='0.95', EG2='0.98', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='6.30e-08', ts2='9.96', photon_index='2.06' WHERE bin_id='1629' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 22 02:56:57 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 447512: <4FGL_J2236.5-1433_daily_bin1629> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1629> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Dec 22 02:45:22 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 22 02:46:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 22 02:46:07 2021
Terminated at Wed Dec 22 02:56:58 2021
Results reported at Wed Dec 22 02:56:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1629 339.144 -14.5557 661564801 661824001 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 :                                   570.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            696 sec.

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

