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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin851
RA = 339.144, Dec = -14.5557
tmin = 459907201, tmax = 460166401
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='413571', job_status='RUN', time_executed='2021-09-28 17:34:00.217935', time_epoch_executed='1632875640.22' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='851'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413571

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413571/ft1_4FGL_J2236.5-1433_daily_bin851.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413571/ft2_4FGL_J2236.5-1433_daily_bin851.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413571/ft1_4FGL_J2236.5-1433_daily_bin851.fits outfile=/scratch/kocevski/413571/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin851.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=459907201.0 tmax=460166401.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.39
user 3.14
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413571/ft1_filtered_4FGL_J2236.5-1433_daily_bin851.fits" evtable="EVENTS" scfile=/scratch/kocevski/413571/ft2_4FGL_J2236.5-1433_daily_bin851.fits sctable="SC_DATA" outfile=/scratch/kocevski/413571/ltcube_459907201_460166401_4FGL_J2236.5-1433_daily_bin851.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/413571/ft2_4FGL_J2236.5-1433_daily_bin851.fits
.....................!
real 12.19
user 11.85
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413571/ft1_filtered_4FGL_J2236.5-1433_daily_bin851.fits evtable="EVENTS" scfile=/scratch/kocevski/413571/ft2_4FGL_J2236.5-1433_daily_bin851.fits sctable="SC_DATA" expcube=/scratch/kocevski/413571/ltcube_459907201_460166401_4FGL_J2236.5-1433_daily_bin851.fits outfile=/scratch/kocevski/413571/expmap_459907201_460166401_4FGL_J2236.5-1433_daily_bin851.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/413571/ltcube_459907201_460166401_4FGL_J2236.5-1433_daily_bin851.fits
.....................!
real 204.13
user 188.24
sys 13.63

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/413571/ft1_filtered_4FGL_J2236.5-1433_daily_bin851.fits scfile=/scratch/kocevski/413571/ft2_4FGL_J2236.5-1433_daily_bin851.fits outfile=/scratch/kocevski/413571/cmap_459907201_460166401_4FGL_J2236.5-1433_daily_bin851.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413571/ft1_filtered_4FGL_J2236.5-1433_daily_bin851.fits scfile=/scratch/kocevski/413571/ft2_4FGL_J2236.5-1433_daily_bin851.fits outfile=/scratch/kocevski/413571/cmap_HighResolution_459907201_460166401_4FGL_J2236.5-1433_daily_bin851.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 1.07
user 0.38
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413571/ft1_filtered_4FGL_J2236.5-1433_daily_bin851.fits evtable="EVENTS" scfile=/scratch/kocevski/413571/ft2_4FGL_J2236.5-1433_daily_bin851.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413571/Model_4FGL_J2236.5-1433_daily_bin851.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/413571/ft1_filtered_4FGL_J2236.5-1433_daily_bin851.fits.....................!
real 54.79
user 52.50
sys 1.91

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2561       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.3442       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11478E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.746       1.0000         .10000E-03   10000.    
     8 'norm      '    21.554       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12428E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5425       1.0000         .10000E-03   10000.    
    12 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11570       1.0000         .10000E-03   10000.    
    15 'norm      '    .65785       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.410       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5704       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.096       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0365       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99460       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=   5848.394     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2294 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2556        7.6394       -.26256E-05    .14098E-03
   2  Prefactor     8.3439        21.826        .14046E-05    .15544E-05
   3  Prefactor     .10000E-03    22.718        .20651E-06** at limit **
   4  Prefactor     .10000E-03    8.1401        .72337E-07** at limit **
   5  Prefactor     .10000E-03    91.027       -.66217E-05** at limit **
   6  Prefactor     .10000E-03    2.0097        .36922E-07** at limit **
   7  Prefactor     24.776        60.183        .26827E-04   -.28685E-03
   8  norm          21.554        5.9550        .94562E-07    .57891E-03
   9  Prefactor     .10000E-03    45.326       -.37860E-06** at limit **
  10  Prefactor     .10000E-03    11.056        .10705E-06** at limit **
  11  norm          1.5427        .90476       -.94558E-07    .13693E-02
  12  norm          .10000E-03    1.3087        .86710E-07** at limit **
  13  Prefactor     .10000E-03    60.528        .23506E-05** at limit **
  14  Prefactor     .10053E-03    16.460       -.40826E-05** at limit **
  15  norm          .66458        1.4125       -.26427E-05   -.13835E-02
  16  Prefactor     10.471        37.143        .35252E-04    .12967E-03
  17  Prefactor     3.5688        6.7937       -.61559E-06   -.51075E-04
  18  Prefactor     .10000E-03    3.5790       -.36342E-07** at limit **
  19  Prefactor     35.096        31.734        .68458E-06   -.44577E-05
  20  Normalizat    1.0365        .21084       -.30870E-05    .72639E-03
  21  Prefactor     .99459        .15717       -.16760E-06    .60888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.25559
  Prefactor  = 8.34387
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 24.7763
  norm       = 21.5542
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.54268
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100535
  norm       = 0.664576
  Prefactor  = 10.4705
  Prefactor  = 3.5688
  Prefactor  = 0.0001
  Prefactor  = 35.0964
  Normalizat = 1.03654
  Prefactor  = 0.994592
 **********
 **   18 **HESSE 
 **********

 FCN=   5848.394     FROM HESSE     STATUS=OK           325 CALLS     2619 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2556        7.6407        .19530E-03   -1.5295    
   2  Prefactor     8.3439        21.789        .13878E-03   -1.5130    
   3  Prefactor     .10000E-03    23.288        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.1813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    91.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.0252        .10584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.776        58.699        .80526E-04   -1.4712    
   8  norm          21.554        5.9575        .86274E-04   -1.4779    
   9  Prefactor     .10000E-03    45.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5427        .89889        .53245E-04   -1.5460    
  12  norm          .10000E-03    2.6592        .17035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    60.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10053E-03    35.990        .67083E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .66458        1.3563        .87614E-03   -1.5545    
  16  Prefactor     10.471        38.379        .12418E-03   -1.5061    
  17  Prefactor     3.5688        6.7789        .21388E-03   -1.5330    
  18  Prefactor     .10000E-03    3.5914        .14129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     35.096        31.740        .67645E-04   -1.4522    
  20  Normalizat    1.0365        .25272        .28509E-03   -.91816    
  21  Prefactor     .99459        .18889        .21972E-03   -.92910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2976e-09
Minuit parameter uncertainties:
  1  7.64244
  2  21.81
  3  8.1915e-05
  4  1.47858e-05
  5  0.00111511
  6  5.58403e-06
  7  58.8363
  8  5.95762
  9  6.57159e-05
  10  2.39972e-05
  11  0.898894
  12  1.36087e-05
  13  0.000206381
  14  0.00877806
  15  1.35632
  16  38.47
  17  6.78036
  18  9.00023e-06
  19  31.7554
  20  0.253012
  21  0.189012
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.543e+00  8.989e-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.946e-01  1.890e-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.037e+00  2.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.18
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 5.98e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 2.93e-05 +/- 1.70e-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) = 5848.32414861
delta logL = 0.0697011774564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5848.32212513
delta logL = 0.0717246503727

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4937       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8810       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99169       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=   5848.322     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4938        1.0088        .87662E-02    .13143E-03
   2  alpha         1.8810        .46858        .31962       -.18562E-04
   3  Normalizat    1.0455        .20483        .64218E-01    .10977E-04
   4  Prefactor     .99160        .15562        .46163E-01   -.50733E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.49375
  alpha      = 1.88101
  Normalizat = 1.04548
  Prefactor  = 0.991602
 **********
 **   18 **HESSE 
 **********

 FCN=   5848.322     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4938        .91100        .53478E-04   -1.5464    
   2  alpha         1.8810        .47334        .12635E-01   -.25020    
   3  Normalizat    1.0455        .24525        .28406E-03   -.91522    
   4  Prefactor     .99160        .18651        .22005E-03   -.93010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52045e-10
Minuit parameter uncertainties:
  1  0.911011
  2  0.476406
  3  0.245514
  4  0.186634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413571': 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) = 5848.32212501
delta logL = 0.0717247746788

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.494e+00  9.110e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.881e+00  4.764e-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.916e-01  1.866e-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.045e+00  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.32
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 1.88 +/- 0.48
Photon Flux (Free Index): 4.98e-08 +/- 3.88e-08
Energy Flux (Free Index): 3.39e-05 +/- 2.51e-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/413571/cmap_HighResolution_459907201_460166401_4FGL_J2236.5-1433_daily_bin851.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.98e-08', energy_flux2='3.39e-05', photon_flux_error='3.49e-08', dlogl='7.17e-02', energy_flux='2.93e-05', photon_flux2='4.98e-08', job_status='DONE', time_completed='2021-09-28 17:42:51.922117', photon_index_error2='0.48', photon_index2='1.88', ts='7.18', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.51e-05', EG='1.04', time_epoch_completed='1632876171.92', return_code='0', job_id='413571', GAL2='0.99', EG2='1.05', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='3.88e-08', ts2='7.32', photon_index='2.06' WHERE bin_id='851' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:42:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 413571: <4FGL_J2236.5-1433_daily_bin851> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin851 339.144 -14.5557 459907201 460166401 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 :                                   528.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            755 sec.

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

