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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1101
RA = 339.144, Dec = -14.5557
tmin = 524707201, tmax = 524966401
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='413950', job_status='RUN', time_executed='2021-09-28 17:33:34.956330', time_epoch_executed='1632875614.96' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413950

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413950/ft1_4FGL_J2236.5-1433_daily_bin1101.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413950/ft2_4FGL_J2236.5-1433_daily_bin1101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413950/ft1_4FGL_J2236.5-1433_daily_bin1101.fits outfile=/scratch/kocevski/413950/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1101.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=524707201.0 tmax=524966401.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.37
user 3.14
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413950/ft1_filtered_4FGL_J2236.5-1433_daily_bin1101.fits" evtable="EVENTS" scfile=/scratch/kocevski/413950/ft2_4FGL_J2236.5-1433_daily_bin1101.fits sctable="SC_DATA" outfile=/scratch/kocevski/413950/ltcube_524707201_524966401_4FGL_J2236.5-1433_daily_bin1101.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/413950/ft2_4FGL_J2236.5-1433_daily_bin1101.fits
.....................!
real 11.97
user 11.55
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413950/ft1_filtered_4FGL_J2236.5-1433_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/413950/ft2_4FGL_J2236.5-1433_daily_bin1101.fits sctable="SC_DATA" expcube=/scratch/kocevski/413950/ltcube_524707201_524966401_4FGL_J2236.5-1433_daily_bin1101.fits outfile=/scratch/kocevski/413950/expmap_524707201_524966401_4FGL_J2236.5-1433_daily_bin1101.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/413950/ltcube_524707201_524966401_4FGL_J2236.5-1433_daily_bin1101.fits
.....................!
real 191.28
user 185.16
sys 5.81

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/413950/ft1_filtered_4FGL_J2236.5-1433_daily_bin1101.fits scfile=/scratch/kocevski/413950/ft2_4FGL_J2236.5-1433_daily_bin1101.fits outfile=/scratch/kocevski/413950/cmap_524707201_524966401_4FGL_J2236.5-1433_daily_bin1101.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413950/ft1_filtered_4FGL_J2236.5-1433_daily_bin1101.fits scfile=/scratch/kocevski/413950/ft2_4FGL_J2236.5-1433_daily_bin1101.fits outfile=/scratch/kocevski/413950/cmap_HighResolution_524707201_524966401_4FGL_J2236.5-1433_daily_bin1101.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/413950/ft1_filtered_4FGL_J2236.5-1433_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/413950/ft2_4FGL_J2236.5-1433_daily_bin1101.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413950/Model_4FGL_J2236.5-1433_daily_bin1101.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/413950/ft1_filtered_4FGL_J2236.5-1433_daily_bin1101.fits.....................!
real 56.24
user 54.87
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.464       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.930       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2959       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.221       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.864       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .45046       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12785E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.2997       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.2606       1.0000         .10000E-03   10000.    
    12 'norm      '    .13928E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    57.724       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.9206       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .35656E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .55407       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7427       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11624E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .59453       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0738       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=   6633.493     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2281 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.464        5.4428        .39781E-06   -.24476E-03
   2  Prefactor     12.925        11.457        .13299E-06    .50628E-04
   3  Prefactor     3.2979        8.7578        .40375E-06   -.65103E-04
   4  Prefactor     15.218        12.476       -.48877E-06   -.14962E-03
   5  Prefactor     32.878        50.111        .12821E-05    .46627E-04
   6  Prefactor     .45405        2.9569        .19097E-05   -.20117E-03
   7  Prefactor     .10000E-03    182.70       -.14419E-05** at limit **
   8  norm          5.2992        3.4242       -.67759E-07   -.28266E-03
   9  Prefactor     .10000E-03    36.142        .10900E-07** at limit **
  10  Prefactor     .10000E-03    1.9546       -.12898E-07** at limit **
  11  norm          2.2605        .86997        .58276E-08   -.59582E-03
  12  norm          .10000E-03    1.1792       -.26590E-06** at limit **
  13  Prefactor     57.690        33.982        .36576E-06    .41351E-04
  14  Prefactor     .10012E-03    16.091        .15773E-05** at limit **
  15  norm          3.9215        1.4724       -.79263E-07   -.29444E-02
  16  Prefactor     .10001E-03    67.851       -.56763E-05** at limit **
  17  Prefactor     .53136        9.1250        .85667E-06   -.21162E-03
  18  Prefactor     8.7432        9.0346        .58760E-06    .12572E-03
  19  Prefactor     .10000E-03    22.648        .27094E-07** at limit **
  20  Normalizat    .59445        .17400       -.59474E-06   -.19696E-03
  21  Prefactor     1.0739        .13664       -.25314E-06   -.26041E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4642
  Prefactor  = 12.9255
  Prefactor  = 3.2979
  Prefactor  = 15.2179
  Prefactor  = 32.8784
  Prefactor  = 0.454048
  Prefactor  = 0.0001
  norm       = 5.29919
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.26054
  norm       = 0.0001
  Prefactor  = 57.6902
  Prefactor  = 0.000100117
  norm       = 3.92154
  Prefactor  = 0.00010001
  Prefactor  = 0.53136
  Prefactor  = 8.7432
  Prefactor  = 0.0001
  Normalizat = 0.594448
  Prefactor  = 1.07389
 **********
 **   18 **HESSE 
 **********

 FCN=   6633.493     FROM HESSE     STATUS=OK           323 CALLS     2604 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.464        5.4482        .61931E-03   -1.5061    
   2  Prefactor     12.925        11.469        .11139E-03   -1.4989    
   3  Prefactor     3.2979        8.7543        .22301E-03   -1.5345    
   4  Prefactor     15.218        12.433        .10266E-03   -1.4928    
   5  Prefactor     32.878        50.477        .69898E-04   -1.4561    
   6  Prefactor     .45405        3.0155        .26978E-03   -1.5573    
   7  Prefactor     .10000E-03    185.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.2992        3.4179        .11309E-03   -1.5248    
   9  Prefactor     .10000E-03    36.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.9568        .11119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.2605        .86562        .45066E-04   -1.5407    
  12  norm          .10000E-03    1.7639        .15985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     57.690        31.911        .52803E-04   -1.4187    
  14  Prefactor     .10012E-03    84.799        .46590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.9215        1.1632        .44777E-04   -1.5312    
  16  Prefactor     .10001E-03    71.967        .42631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .53136        56.528        .45618E-02   -1.5562    
  18  Prefactor     8.7432        9.0880        .13556E-03   -1.5117    
  19  Prefactor     .10000E-03    22.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .59445        .19957        .30825E-03   -1.0822    
  21  Prefactor     1.0739        .15878        .18942E-03   -.90306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21515e-09
Minuit parameter uncertainties:
  1  5.44849
  2  11.4713
  3  8.75772
  4  12.4355
  5  50.5426
  6  2.34014
  7  0.00053967
  8  3.41804
  9  7.91157e-06
  10  6.70646e-07
  11  0.865623
  12  2.21771e-05
  13  31.92
  14  0.00630597
  15  1.16324
  16  0.0017194
  17  10.9707
  18  9.08942
  19  9.80853e-06
  20  0.199812
  21  0.158853
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  2.261e+00  8.656e-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:  1.074e+00  1.589e-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:  5.944e-01  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.66
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 8.77e-08 +/- 3.36e-08
Energy Flux (Fixed Index): 4.29e-05 +/- 1.64e-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) = 6633.4901709
delta logL = 0.0028964112571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6633.49004156
delta logL = 0.00302575844944

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2614       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0352       1.0000          .0000       5.0000    
     3 'Normalizat'    .59702       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0727       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=   6633.490     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      196 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2634        4.6277        .68291E-02    .51148E-03
   2  alpha         2.0353        1.6434        .26800        .22965E-04
   3  Normalizat    .59700        .20249        .69511E-01   -.55422E-03
   4  Prefactor     1.0727        .15604        .38729E-01   -.10826E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 2.26337
  alpha      = 2.03533
  Normalizat = 0.597003
  Prefactor  = 1.07272
 **********
 **   18 **HESSE 
 **********

 FCN=   6633.490     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2634        .86853        .45335E-04   -1.5407    
   2  alpha         2.0353        .37375        .10624E-01   -.18695    
   3  Normalizat    .59700        .19577        .30766E-03   -1.0811    
   4  Prefactor     1.0727        .15755        .18952E-03   -.90343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42506e-10
Minuit parameter uncertainties:
  1  0.868537
  2  0.375207
  3  0.195998
  4  0.157623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413950': 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) = 6633.49003878
delta logL = 0.00302853826179

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  2.263e+00  8.685e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.035e+00  3.752e-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.073e+00  1.576e-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:  5.970e-01  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.65
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 2.04 +/- 0.38
Photon Flux (Free Index): 8.55e-08 +/- 4.25e-08
Energy Flux (Free Index): 4.39e-05 +/- 2.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/413950/cmap_HighResolution_524707201_524966401_4FGL_J2236.5-1433_daily_bin1101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.77e-08', energy_flux2='4.39e-05', photon_flux_error='3.36e-08', dlogl='3.03e-03', energy_flux='4.29e-05', photon_flux2='8.55e-08', job_status='DONE', time_completed='2021-09-28 17:42:39.410284', photon_index_error2='0.38', photon_index2='2.04', ts='17.66', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='0.59', time_epoch_completed='1632876159.41', return_code='0', job_id='413950', GAL2='1.07', EG2='0.60', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='4.25e-08', ts2='17.65', photon_index='2.06' WHERE bin_id='1101' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:42:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 413950: <4FGL_J2236.5-1433_daily_bin1101> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1101> 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) <bullet0284>, 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:42:40 2021
Results reported at Tue Sep 28 17:42:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1101 339.144 -14.5557 524707201 524966401 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 :                                   543.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            716 sec.

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

