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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1548
RA = 339.144, Dec = -14.5557
tmin = 640569601, tmax = 640828801
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='415584', job_status='RUN', time_executed='2021-09-28 17:39:38.686392', time_epoch_executed='1632875978.69' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415584

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415584/ft1_4FGL_J2236.5-1433_daily_bin1548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415584/ft2_4FGL_J2236.5-1433_daily_bin1548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415584/ft1_4FGL_J2236.5-1433_daily_bin1548.fits outfile=/scratch/kocevski/415584/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1548.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=640569601.0 tmax=640828801.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 2.99
user 2.77
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415584/ft1_filtered_4FGL_J2236.5-1433_daily_bin1548.fits" evtable="EVENTS" scfile=/scratch/kocevski/415584/ft2_4FGL_J2236.5-1433_daily_bin1548.fits sctable="SC_DATA" outfile=/scratch/kocevski/415584/ltcube_640569601_640828801_4FGL_J2236.5-1433_daily_bin1548.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/415584/ft2_4FGL_J2236.5-1433_daily_bin1548.fits
.....................!
real 12.27
user 11.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415584/ft1_filtered_4FGL_J2236.5-1433_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/415584/ft2_4FGL_J2236.5-1433_daily_bin1548.fits sctable="SC_DATA" expcube=/scratch/kocevski/415584/ltcube_640569601_640828801_4FGL_J2236.5-1433_daily_bin1548.fits outfile=/scratch/kocevski/415584/expmap_640569601_640828801_4FGL_J2236.5-1433_daily_bin1548.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/415584/ltcube_640569601_640828801_4FGL_J2236.5-1433_daily_bin1548.fits
.....................!
real 192.23
user 187.40
sys 4.50

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/415584/ft1_filtered_4FGL_J2236.5-1433_daily_bin1548.fits scfile=/scratch/kocevski/415584/ft2_4FGL_J2236.5-1433_daily_bin1548.fits outfile=/scratch/kocevski/415584/cmap_640569601_640828801_4FGL_J2236.5-1433_daily_bin1548.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=339.144 yref=-14.5557 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415584/ft1_filtered_4FGL_J2236.5-1433_daily_bin1548.fits scfile=/scratch/kocevski/415584/ft2_4FGL_J2236.5-1433_daily_bin1548.fits outfile=/scratch/kocevski/415584/cmap_HighResolution_640569601_640828801_4FGL_J2236.5-1433_daily_bin1548.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415584/ft1_filtered_4FGL_J2236.5-1433_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/415584/ft2_4FGL_J2236.5-1433_daily_bin1548.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415584/Model_4FGL_J2236.5-1433_daily_bin1548.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/415584/ft1_filtered_4FGL_J2236.5-1433_daily_bin1548.fits.....................!
real 77.17
user 75.83
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13858E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.5024       1.0000         .10000E-03   10000.    
     3 'Prefactor '    50.758       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7804       1.0000         .10000E-03   10000.    
     5 'Prefactor '    47.727       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.108       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8546       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.6238       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.573       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .66643E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3118       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.5029       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2325       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .61805       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1947       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=   9736.950     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2239 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    16.175       -.74713E-05** at limit **
   2  Prefactor     7.5018        13.164       -.82508E-06    .35350E-03
   3  Prefactor     50.756        12.550       -.15320E-07   -.26309E-04
   4  Prefactor     2.7806        7.8464       -.10562E-06    .58210E-04
   5  Prefactor     47.726        53.825        .28880E-06    .10019E-04
   6  Prefactor     .10000E-03    1.1543        .21208E-07** at limit **
   7  Prefactor     .10001E-03    22.137       -.25335E-05** at limit **
   8  norm          14.108        3.7545       -.86898E-07   -.24519E-03
   9  Prefactor     2.8322        148.57        .15879E-04    .13412E-03
  10  Prefactor     .10000E-03    6.2664       -.13504E-06** at limit **
  11  norm          .10000E-03    .15673       -.12088E-07** at limit **
  12  norm          4.6240        2.8763       -.47805E-07    .71796E-04
  13  Prefactor     36.570        50.027        .59425E-06    .41085E-04
  14  Prefactor     .10000E-03    6.6810        .79852E-06** at limit **
  15  norm          1.3138        .78147        .15378E-07    .69046E-04
  16  Prefactor     .10000E-03    14.350       -.72703E-06** at limit **
  17  Prefactor     8.5039        8.0868        .63856E-07    .49678E-04
  18  Prefactor     5.2330        5.8316       -.32976E-07   -.31519E-04
  19  Prefactor     .10000E-03    31.956        .10426E-05** at limit **
  20  Normalizat    .61816        .15910       -.51409E-07   -.48324E-04
  21  Prefactor     1.1946        .12464       -.21783E-06    .10425E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Prefactor  = 7.50179
  Prefactor  = 50.756
  Prefactor  = 2.78056
  Prefactor  = 47.7262
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 14.1077
  Prefactor  = 2.83224
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.62398
  Prefactor  = 36.5705
  Prefactor  = 0.0001
  norm       = 1.31376
  Prefactor  = 0.0001
  Prefactor  = 8.50389
  Prefactor  = 5.23302
  Prefactor  = 0.000100001
  Normalizat = 0.618158
  Prefactor  = 1.1946
 **********
 **   18 **HESSE 
 **********

 FCN=   9736.950     FROM HESSE     STATUS=OK           327 CALLS     2566 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    16.986        .32260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.5018        13.400        .73210E-03   -1.5160    
   3  Prefactor     50.756        12.514        .56290E-04   -1.4282    
   4  Prefactor     2.7806        7.8435        .24404E-03   -1.5374    
   5  Prefactor     47.726        53.822        .58042E-04   -1.4325    
   6  Prefactor     .10000E-03    1.1654        .10336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    22.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.108        3.7547        .91416E-04   -1.4957    
   9  Prefactor     2.8322        169.72        .24063E-03   -1.5371    
  10  Prefactor     .10000E-03    6.3286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .19047        .75935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.6240        2.8945        .10473E-03   -1.5278    
  13  Prefactor     36.570        50.612        .66270E-04   -1.4498    
  14  Prefactor     .10000E-03    27.693        .41090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3138        .65976        .54837E-04   -1.5479    
  16  Prefactor     .10000E-03    14.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.5039        8.0835        .13747E-03   -1.5125    
  18  Prefactor     5.2330        5.8253        .17573E-03   -1.5250    
  19  Prefactor     .10000E-03    33.219        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .61816        .18027        .32806E-03   -1.0722    
  21  Prefactor     1.1946        .14251        .19588E-03   -.86498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58874e-09
Minuit parameter uncertainties:
  1  0.000899348
  2  13.4058
  3  12.5149
  4  7.84637
  5  53.8771
  6  2.77823e-06
  7  0.00069402
  8  3.75475
  9  43.9798
  10  2.4112e-05
  11  6.20943e-07
  12  2.89462
  13  50.6711
  14  9.63549e-05
  15  0.659759
  16  0.000153784
  17  8.08449
  18  5.82594
  19  0.000300862
  20  0.180445
  21  0.142554
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.000e-04  6.209e-07  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.195e+00  1.426e-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.182e-01  1.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 339.144 -14.556
Photon Flux Upper Limit: 3.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.62e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/415584/likelihoodResults_640569601_640828801_4FGL_J2236.5-1433_daily_bin1548.txt

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): 102
logL (Free Index) = 9736.94957583
delta logL = -5.24182723893e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9736.94957416
delta logL = -3.57843418897e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0754       1.0000          .0000       5.0000    
     3 'Normalizat'    .61809       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1948       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=   9736.950     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      226 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .64250        .18407E-01** at limit **
   2  alpha         2.2298        2.8936        .41928       -.47180E-07
   3  Normalizat    .61816        .75792E-02    .74105E-01    .18225E-04
   4  Prefactor     1.1946        .61444E-02    .34754E-01    .38576E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.22978
  Normalizat = 0.618157
  Prefactor  = 1.1946
 **********
 **   18 **HESSE 
 **********

 FCN=   9736.950     FROM HESSE     STATUS=OK            31 CALLS      257 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .34662        .74404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2298        2.6753        .16771       -.10830    
   3  Normalizat    .61816        .17134        .32806E-03   -1.0722    
   4  Prefactor     1.1946        .13930        .19588E-03   -.86498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31953e-11
Minuit parameter uncertainties:
  1  6.58942e-07
  2  69.3789
  3  0.171491
  4  0.139339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415584': 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) = 9736.94956569
delta logL = 4.89105514134e-06

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.000e-04  6.589e-07  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.230e+00  6.938e+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.195e+00  1.393e-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.182e-01  1.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 339.144 -14.556

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/415584/cmap_HighResolution_640569601_640828801_4FGL_J2236.5-1433_daily_bin1548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-05', job_status='DONE', photon_flux_upper_limit='3.31e-08', time_completed='2021-09-28 17:52:05.961663', job_id='415584', GAL2='1.19', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1632876725.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='4.89e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1548' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:52:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 415584: <4FGL_J2236.5-1433_daily_bin1548> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1548> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:35:43 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:35: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:35:46 2021
Terminated at Tue Sep 28 17:52:06 2021
Results reported at Tue Sep 28 17:52:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1548 339.144 -14.5557 640569601 640828801 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 :                                   733.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

