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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1692
RA = 339.144, Dec = -14.5557
tmin = 677894401, tmax = 678153601
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='484312', job_status='RUN', time_executed='2022-06-29 04:56:17.047877', time_epoch_executed='1656503777.05' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484312

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484312/ft1_4FGL_J2236.5-1433_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484312/ft2_4FGL_J2236.5-1433_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484312/ft1_4FGL_J2236.5-1433_daily_bin1692.fits outfile=/scratch/kocevski/484312/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1692.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=677894401.0 tmax=678153601.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 4.49
user 4.22
sys 0.22

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

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

Number of photons that the gtmktime cut: 448

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484312/ft1_filtered_4FGL_J2236.5-1433_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/484312/ft2_4FGL_J2236.5-1433_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/484312/ltcube_677894401_678153601_4FGL_J2236.5-1433_daily_bin1692.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/484312/ft2_4FGL_J2236.5-1433_daily_bin1692.fits
.....................!
real 13.47
user 13.09
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484312/ft1_filtered_4FGL_J2236.5-1433_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/484312/ft2_4FGL_J2236.5-1433_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/484312/ltcube_677894401_678153601_4FGL_J2236.5-1433_daily_bin1692.fits outfile=/scratch/kocevski/484312/expmap_677894401_678153601_4FGL_J2236.5-1433_daily_bin1692.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/484312/ltcube_677894401_678153601_4FGL_J2236.5-1433_daily_bin1692.fits
.....................!
real 192.75
user 187.36
sys 4.83

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/484312/ft1_filtered_4FGL_J2236.5-1433_daily_bin1692.fits scfile=/scratch/kocevski/484312/ft2_4FGL_J2236.5-1433_daily_bin1692.fits outfile=/scratch/kocevski/484312/cmap_677894401_678153601_4FGL_J2236.5-1433_daily_bin1692.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484312/ft1_filtered_4FGL_J2236.5-1433_daily_bin1692.fits scfile=/scratch/kocevski/484312/ft2_4FGL_J2236.5-1433_daily_bin1692.fits outfile=/scratch/kocevski/484312/cmap_HighResolution_677894401_678153601_4FGL_J2236.5-1433_daily_bin1692.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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/484312/ft1_filtered_4FGL_J2236.5-1433_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/484312/ft2_4FGL_J2236.5-1433_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/484312/Model_4FGL_J2236.5-1433_daily_bin1692.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/484312/ft1_filtered_4FGL_J2236.5-1433_daily_bin1692.fits.....................!
real 46.86
user 45.53
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3927       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.785       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.218       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.080       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.5573       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8594       1.0000         .10000E-03   10000.    
     8 'norm      '    3.6973       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6683       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7368       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0441       1.0000         .10000E-03   10000.    
    13 'Prefactor '    64.157       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.018       1.0000         .10000E-03   10000.    
    15 'norm      '    .10268E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.318       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1962       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3023       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .67762       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0829       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=   5060.601     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2193 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3908        8.7731        .49506E-07   -.10898E-04
   2  Prefactor     12.786        14.210       -.26234E-07    .16276E-04
   3  Prefactor     20.219        12.738       -.41877E-07    .85330E-04
   4  Prefactor     15.080        16.374        .71342E-07    .14043E-03
   5  Prefactor     .10000E-03    23.863        .62158E-07** at limit **
   6  Prefactor     7.5567        6.1267       -.26167E-06    .73677E-03
   7  Prefactor     5.7958        73.201       -.23641E-05   -.46326E-04
   8  norm          3.6977        3.0892       -.17946E-06    .79408E-03
   9  Prefactor     2.5489        634.05       -.12666E-04    .74899E-05
  10  Prefactor     .10000E-03    11.758        .60056E-06** at limit **
  11  norm          2.7370        1.2603       -.81224E-08    .17562E-02
  12  norm          2.0444        2.4785        .51264E-07   -.76647E-04
  13  Prefactor     64.171        63.140       -.16661E-06    .58474E-04
  14  Prefactor     12.017        16.215        .48811E-05    .12080E-02
  15  norm          .10000E-03    .64877       -.26793E-05** at limit **
  16  Prefactor     40.252        42.383        .33991E-05    .51261E-03
  17  Prefactor     2.2016        23.054       -.32051E-07    .24469E-03
  18  Prefactor     8.3028        13.962        .85529E-07    .18286E-03
  19  Prefactor     .10000E-03    9.0624        .44999E-07** at limit **
  20  Normalizat    .67745        .22408       -.99201E-08    .46712E-03
  21  Prefactor     1.0831        .16503        .99218E-09    .82484E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.39084
  Prefactor  = 12.7859
  Prefactor  = 20.2194
  Prefactor  = 15.0796
  Prefactor  = 0.0001
  Prefactor  = 7.55675
  Prefactor  = 5.79584
  norm       = 3.69768
  Prefactor  = 2.54893
  Prefactor  = 0.0001
  norm       = 2.73704
  norm       = 2.0444
  Prefactor  = 64.1711
  Prefactor  = 12.0174
  norm       = 0.000100003
  Prefactor  = 40.2519
  Prefactor  = 2.20158
  Prefactor  = 8.30275
  Prefactor  = 0.0001
  Normalizat = 0.67745
  Prefactor  = 1.08308
 **********
 **   18 **HESSE 
 **********

 FCN=   5060.601     FROM HESSE     STATUS=OK           321 CALLS     2514 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3908        8.7652        .13838E-03   -1.5129    
   2  Prefactor     12.786        14.205        .11202E-03   -1.4993    
   3  Prefactor     20.219        12.738        .89076E-04   -1.4808    
   4  Prefactor     15.080        16.343        .10314E-03   -1.4931    
   5  Prefactor     .10000E-03    23.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.5567        6.0959        .13475E-03   -1.5158    
   7  Prefactor     5.7958        73.715        .16591E-03   -1.5226    
   8  norm          3.6977        3.0837        .10811E-03   -1.5323    
   9  Prefactor     2.5489        664.96        .24950E-02   -1.5389    
  10  Prefactor     .10000E-03    11.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7370        1.2559        .50977E-04   -1.5377    
  12  norm          2.0444        2.4650        .11394E-03   -1.5422    
  13  Prefactor     64.171        62.966        .50101E-04   -1.4104    
  14  Prefactor     12.017        16.761        .11555E-03   -1.5015    
  15  norm          .10000E-03    .96739        .10275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     40.252        42.297        .63128E-04   -1.4438    
  17  Prefactor     2.2016        22.622        .27767E-03   -1.5411    
  18  Prefactor     8.3028        13.954        .13913E-03   -1.5132    
  19  Prefactor     .10000E-03    9.0649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .67745        .25475        .32733E-03   -1.0479    
  21  Prefactor     1.0831        .18938        .20111E-03   -.90009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69156e-09
Minuit parameter uncertainties:
  1  8.76654
  2  14.2086
  3  12.7395
  4  16.3479
  5  2.06555e-05
  6  6.09642
  7  41.4024
  8  3.08385
  9  83.2895
  10  0.000119986
  11  1.25588
  12  2.46516
  13  63.0314
  14  16.7678
  15  0.000103073
  16  42.3287
  17  14.121
  18  13.9595
  19  6.56401e-06
  20  0.2552
  21  0.189497
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  2.737e+00  1.256e+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.083e+00  1.895e-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.774e-01  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.97
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 1.06e-07 +/- 4.87e-08
Energy Flux (Fixed Index): 5.19e-05 +/- 2.38e-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) = 5059.35060209
delta logL = 1.25000774621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5059.32029464
delta logL = 1.2803151899

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0633       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8060       1.0000          .0000       5.0000    
     3 'Normalizat'    .59191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1241       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=   5059.320     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      260 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0639        11.708        .71915E-02    .44495E-03
   2  alpha         2.8064        3.8967        .20555        .55858E-04
   3  Normalizat    .59193        .11449        .78481E-01    .23866E-04
   4  Prefactor     1.1240        .76593E-01    .36737E-01   -.24837E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.06391
  alpha      = 2.80641
  Normalizat = 0.591935
  Prefactor  = 1.12403
 **********
 **   18 **HESSE 
 **********

 FCN=   5059.320     FROM HESSE     STATUS=OK            31 CALLS      291 TOTAL
                     EDM=   .93E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0639        1.2373        .37448E-04   -1.5421    
   2  alpha         2.8064        .52618        .86683E-02    .12287    
   3  Normalizat    .59193        .24790        .34753E-03   -1.0833    
   4  Prefactor     1.1240        .18707        .19750E-03   -.88702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.30676e-12
Minuit parameter uncertainties:
  1  1.23733
  2  0.530211
  3  0.248364
  4  0.187179
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484312': 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) = 5059.320293
delta logL = 1.28031683194

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  2.064e+00  1.237e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.806e+00  5.302e-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.124e+00  1.872e-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.919e-01  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.59
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 2.81 +/- 0.53
Photon Flux (Free Index): 1.83e-07 +/- 8.11e-08
Energy Flux (Free Index): 4.18e-05 +/- 1.67e-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/484312/cmap_HighResolution_677894401_678153601_4FGL_J2236.5-1433_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.06e-07', energy_flux2='4.18e-05', photon_flux_error='4.87e-08', dlogl='1.28e+00', energy_flux='5.19e-05', photon_flux2='1.83e-07', job_status='DONE', time_completed='2022-06-29 05:04:32.789287', photon_index_error2='0.53', photon_index2='2.81', ts='9.97', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='0.68', time_epoch_completed='1656504272.79', return_code='0', job_id='484312', GAL2='1.12', EG2='0.59', return_code2='0', energy_flux_error='2.38e-05', photon_flux_error2='8.11e-08', ts2='12.59', photon_index='2.06' WHERE bin_id='1692' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 05:04:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0139>
Subject: Job 484312: <4FGL_J2236.5-1433_daily_bin1692> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1692> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Jun 29 04:50:26 2022
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:54:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:54:44 2022
Terminated at Wed Jun 29 05:04:33 2022
Results reported at Wed Jun 29 05:04:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1692 339.144 -14.5557 677894401 678153601 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 :                                   498.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   589 sec.
    Turnaround time :                            847 sec.

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

