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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1441
RA = 339.144, Dec = -14.5557
tmin = 612835201, tmax = 613094401
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='415421', job_status='RUN', time_executed='2021-09-28 17:36:45.220190', time_epoch_executed='1632875805.22' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415421

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415421/ft1_4FGL_J2236.5-1433_daily_bin1441.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415421/ft2_4FGL_J2236.5-1433_daily_bin1441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415421/ft1_4FGL_J2236.5-1433_daily_bin1441.fits outfile=/scratch/kocevski/415421/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1441.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=612835201.0 tmax=613094401.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.88
user 2.66
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/415421/ft2_4FGL_J2236.5-1433_daily_bin1441.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/415421/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1441.fits evtable="EVENTS" outfile="/scratch/kocevski/415421/ft1_filtered_4FGL_J2236.5-1433_daily_bin1441.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.53
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415421/ft1_filtered_4FGL_J2236.5-1433_daily_bin1441.fits" evtable="EVENTS" scfile=/scratch/kocevski/415421/ft2_4FGL_J2236.5-1433_daily_bin1441.fits sctable="SC_DATA" outfile=/scratch/kocevski/415421/ltcube_612835201_613094401_4FGL_J2236.5-1433_daily_bin1441.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/415421/ft2_4FGL_J2236.5-1433_daily_bin1441.fits
.....................!
real 12.45
user 12.10
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415421/ft1_filtered_4FGL_J2236.5-1433_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/415421/ft2_4FGL_J2236.5-1433_daily_bin1441.fits sctable="SC_DATA" expcube=/scratch/kocevski/415421/ltcube_612835201_613094401_4FGL_J2236.5-1433_daily_bin1441.fits outfile=/scratch/kocevski/415421/expmap_612835201_613094401_4FGL_J2236.5-1433_daily_bin1441.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/415421/ltcube_612835201_613094401_4FGL_J2236.5-1433_daily_bin1441.fits
.....................!
real 190.58
user 185.30
sys 4.82

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/415421/ft1_filtered_4FGL_J2236.5-1433_daily_bin1441.fits scfile=/scratch/kocevski/415421/ft2_4FGL_J2236.5-1433_daily_bin1441.fits outfile=/scratch/kocevski/415421/cmap_612835201_613094401_4FGL_J2236.5-1433_daily_bin1441.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.56
user 0.39
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415421/ft1_filtered_4FGL_J2236.5-1433_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/415421/ft2_4FGL_J2236.5-1433_daily_bin1441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415421/Model_4FGL_J2236.5-1433_daily_bin1441.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/415421/ft1_filtered_4FGL_J2236.5-1433_daily_bin1441.fits....................!
real 70.23
user 68.77
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1719       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.887       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0451       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .72706       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.129       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .43418E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .86748       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3150       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3062       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6360       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1726       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87002       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8373.007     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     1974 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1703        6.1186         .0000        .37739E-01
   2  Prefactor     .10000E-03    5.1795         .0000    ** at limit **
   3  Prefactor     19.885        11.234         .0000       -.35996E-03
   4  Prefactor     4.0494        8.3132         .0000        .17697E-02
   5  Prefactor     .10004E-03    75.945         .0000    ** at limit **
   6  Prefactor     .10000E-03    1.5634         .0000    ** at limit **
   7  Prefactor     .10000E-03    21.644         .0000    ** at limit **
   8  norm          .72714        2.9058         .0000        .20058E-02
   9  Prefactor     24.133        64.487         .0000       -.22336E-02
  10  Prefactor     .10000E-03    3.2078         .0000    ** at limit **
  11  norm          .86741        .60201         .0000        .41987E-03
  12  norm          2.3147        1.7570         .0000        .12299E-03
  13  Prefactor     .10029E-03    37.148         .0000    ** at limit **
  14  Prefactor     .10045E-03    11.527         .0000    ** at limit **
  15  norm          3.3060        1.2619         .0000        .14550E-03
  16  Prefactor     .10000E-03    6.7452         .0000    ** at limit **
  17  Prefactor     6.6356        6.6634         .0000        .78729E-03
  18  Prefactor     .10000E-03    2.6755         .0000    ** at limit **
  19  Prefactor     .10000E-03    5.5849         .0000    ** at limit **
  20  Normalizat    1.1727        .16016         .0000       -.87338E-05
  21  Prefactor     .87003        .12471         .0000        .15489E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.17032
  Prefactor  = 0.0001
  Prefactor  = 19.8849
  Prefactor  = 4.04944
  Prefactor  = 0.000100045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.72714
  Prefactor  = 24.1332
  Prefactor  = 0.0001
  norm       = 0.867407
  norm       = 2.31473
  Prefactor  = 0.000100288
  Prefactor  = 0.000100453
  norm       = 3.30597
  Prefactor  = 0.0001
  Prefactor  = 6.6356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.17266
  Prefactor  = 0.870027
 **********
 **   18 **HESSE 
 **********

 FCN=   8373.007     FROM HESSE     STATUS=OK           325 CALLS     2299 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1703        6.2043        .21186E-02   -1.5492    
   2  Prefactor     .10000E-03    5.1916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.885        11.230        .89814E-04   -1.4816    
   4  Prefactor     4.0494        8.1991        .20049E-03   -1.5305    
   5  Prefactor     .10004E-03    76.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9625        .21752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .72714        2.9190        .28150E-02   -1.5537    
   9  Prefactor     24.133        63.801        .81548E-04   -1.4725    
  10  Prefactor     .10000E-03    14.602        .31812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .86741        .58151        .56809E-03   -1.5522    
  12  norm          2.3147        1.7521        .10258E-03   -1.5404    
  13  Prefactor     .10029E-03    37.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10045E-03    40.672        .45318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3060        .97256        .46655E-04   -1.5344    
  16  Prefactor     .10000E-03    6.7527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.6356        6.6583        .15577E-03   -1.5193    
  18  Prefactor     .10000E-03    2.6805        .14616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1727        .18986        .24701E-03   -.87452    
  21  Prefactor     .87003        .14881        .22113E-03   -.97196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27241e-07
Minuit parameter uncertainties:
  1  5.38989
  2  2.99304e-05
  3  11.2316
  4  8.20134
  5  0.00369863
  6  1.18023e-05
  7  9.01857e-05
  8  2.91381
  9  63.9825
  10  7.19294e-05
  11  0.581513
  12  1.75213
  13  0.00656868
  14  0.00859325
  15  0.97256
  16  3.70627e-05
  17  6.659
  18  3.98048e-06
  19  6.83671e-05
  20  0.189972
  21  0.148875
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  8.674e-01  5.815e-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:  8.700e-01  1.489e-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.173e+00  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.51
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 3.37e-08 +/- 2.26e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.10e-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) = 8372.87801326
delta logL = 0.129137594966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8372.87465402
delta logL = 0.132496836482

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .82989       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3344       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87335       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8372.875     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      272 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .82996        .57447        .52546E-03    .76366E-03
   2  alpha         2.3345        .54115        .14997E-01    .21130E-04
   3  Normalizat    1.1643        .18685        .24772E-03    .50575E-04
   4  Prefactor     .87323        .14677        .22073E-03    .30800E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.829957
  alpha      = 2.33447
  Normalizat = 1.16427
  Prefactor  = 0.873228
 **********
 **   18 **HESSE 
 **********

 FCN=   8372.875     FROM HESSE     STATUS=OK            27 CALLS      299 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .82996        .56128        .21018E-04   -1.5526    
   2  alpha         2.3345        .52893        .59990E-03   -.66262E-01
   3  Normalizat    1.1643        .18702        .99086E-05   -.87714    
   4  Prefactor     .87323        .14690        .88291E-05   -.97083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03918e-11
Minuit parameter uncertainties:
  1  0.561286
  2  0.532971
  3  0.18713
  4  0.146964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415421': 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) = 8372.87465328
delta logL = 0.132497579476

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  8.300e-01  5.613e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.334e+00  5.330e-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:  8.732e-01  1.470e-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.164e+00  1.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.77
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 2.33 +/- 0.53
Photon Flux (Free Index): 4.21e-08 +/- 3.04e-08
Energy Flux (Free Index): 1.43e-05 +/- 9.78e-06

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/415421/cmap_HighResolution_612835201_613094401_4FGL_J2236.5-1433_daily_bin1441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.37e-08', energy_flux2='1.43e-05', photon_flux_error='2.26e-08', dlogl='1.32e-01', energy_flux='1.64e-05', photon_flux2='4.21e-08', job_status='DONE', time_completed='2021-09-28 17:46:37.397007', photon_index_error2='0.53', photon_index2='2.33', ts='4.51', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='9.78e-06', EG='1.17', time_epoch_completed='1632876397.4', return_code='0', job_id='415421', GAL2='0.87', EG2='1.16', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='3.04e-08', ts2='4.77', photon_index='2.06' WHERE bin_id='1441' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:46:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 415421: <4FGL_J2236.5-1433_daily_bin1441> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1441 339.144 -14.5557 612835201 613094401 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 :                                   589.37 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             267.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            665 sec.

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

