/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 90 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7401
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1360
RA = 339.144, Dec = -14.5557
tmin = 591840001, tmax = 592099201
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='415301', job_status='RUN', time_executed='2021-09-28 17:37:02.940872', time_epoch_executed='1632875822.94' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1360'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415301

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415301/ft1_4FGL_J2236.5-1433_daily_bin1360.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415301/ft2_4FGL_J2236.5-1433_daily_bin1360.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415301/ft1_4FGL_J2236.5-1433_daily_bin1360.fits outfile=/scratch/kocevski/415301/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1360.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=591840001.0 tmax=592099201.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 5.22
user 4.96
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/415301/ft2_4FGL_J2236.5-1433_daily_bin1360.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/415301/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1360.fits evtable="EVENTS" outfile="/scratch/kocevski/415301/ft1_filtered_4FGL_J2236.5-1433_daily_bin1360.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/415301/ft1_filtered_4FGL_J2236.5-1433_daily_bin1360.fits" evtable="EVENTS" scfile=/scratch/kocevski/415301/ft2_4FGL_J2236.5-1433_daily_bin1360.fits sctable="SC_DATA" outfile=/scratch/kocevski/415301/ltcube_591840001_592099201_4FGL_J2236.5-1433_daily_bin1360.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/415301/ft2_4FGL_J2236.5-1433_daily_bin1360.fits
.....................!
real 14.98
user 14.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415301/ft1_filtered_4FGL_J2236.5-1433_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/415301/ft2_4FGL_J2236.5-1433_daily_bin1360.fits sctable="SC_DATA" expcube=/scratch/kocevski/415301/ltcube_591840001_592099201_4FGL_J2236.5-1433_daily_bin1360.fits outfile=/scratch/kocevski/415301/expmap_591840001_592099201_4FGL_J2236.5-1433_daily_bin1360.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/415301/ltcube_591840001_592099201_4FGL_J2236.5-1433_daily_bin1360.fits
.....................!
real 189.97
user 185.72
sys 3.87

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415301/ft1_filtered_4FGL_J2236.5-1433_daily_bin1360.fits scfile=/scratch/kocevski/415301/ft2_4FGL_J2236.5-1433_daily_bin1360.fits outfile=/scratch/kocevski/415301/cmap_HighResolution_591840001_592099201_4FGL_J2236.5-1433_daily_bin1360.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415301/ft1_filtered_4FGL_J2236.5-1433_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/415301/ft2_4FGL_J2236.5-1433_daily_bin1360.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415301/Model_4FGL_J2236.5-1433_daily_bin1360.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/415301/ft1_filtered_4FGL_J2236.5-1433_daily_bin1360.fits.....................!
real 36.78
user 35.50
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1860       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2792       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.985       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .94033       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12708E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    59.569       1.0000         .10000E-03   10000.    
    10 'Prefactor '    61.829       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5151       1.0000         .10000E-03   10000.    
    12 'norm      '    7.7250       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .82160E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11828E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.1855       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5036       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.251       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .89723       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93639       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=   3730.508     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2209 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0061        .16476E-06** at limit **
   2  Prefactor     5.1824        17.053        .35612E-06    .90360E-05
   3  Prefactor     5.2701        16.194        .77635E-06    .13839E-04
   4  Prefactor     .10000E-03    5.5323       -.60327E-07** at limit **
   5  Prefactor     20.030        123.94        .39352E-06    .62182E-05
   6  Prefactor     .93992        3.5895        .88743E-06    .12012E-04
   7  Prefactor     .10000E-03    505.96        .41240E-05** at limit **
   8  norm          .10000E-03    1.0774        .86494E-07** at limit **
   9  Prefactor     59.530        62.694       -.22380E-06   -.17557E-04
  10  Prefactor     61.835        34.845       -.20457E-05   -.11593E-04
  11  norm          1.5146        1.1885        .12018E-06   -.10676E-04
  12  norm          7.7291        4.7925       -.54092E-06    .84987E-05
  13  Prefactor     .10001E-03    782.44       -.58484E-05** at limit **
  14  Prefactor     .10000E-03    46.540       -.48079E-07** at limit **
  15  norm          5.1855        2.3725        .71863E-08   -.14994E-04
  16  Prefactor     6.5038        92.753        .70639E-07   -.21841E-05
  17  Prefactor     18.246        13.399       -.53172E-07   -.61356E-04
  18  Prefactor     .10000E-03    5.9705       -.41128E-07** at limit **
  19  Prefactor     .10000E-03    9.5528       -.72577E-08** at limit **
  20  Normalizat    .89727        .26764       -.45676E-06   -.23368E-04
  21  Prefactor     .93642        .18551        .21465E-06   -.41254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.18237
  Prefactor  = 5.27011
  Prefactor  = 0.0001
  Prefactor  = 20.0303
  Prefactor  = 0.939916
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 59.5295
  Prefactor  = 61.8349
  norm       = 1.51457
  norm       = 7.72909
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 5.18546
  Prefactor  = 6.50379
  Prefactor  = 18.2464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.897272
  Prefactor  = 0.936422
 **********
 **   18 **HESSE 
 **********

 FCN=   3730.508     FROM HESSE     STATUS=OK           319 CALLS     2528 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1033        .15780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.1824        17.046        .17652E-03   -1.5253    
   3  Prefactor     5.2701        16.208        .17493E-03   -1.5249    
   4  Prefactor     .10000E-03    5.5406        .14029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.030        123.85        .89595E-04   -1.4813    
   6  Prefactor     .93992        3.5656        .21547E-03   -1.5514    
   7  Prefactor     .10000E-03    517.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.0793        .61887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     59.530        62.681        .25991E-03   -1.4163    
  10  Prefactor     61.835        35.264        .51030E-04   -1.4134    
  11  norm          1.5146        1.1923        .56366E-04   -1.5462    
  12  norm          7.7291        4.7840        .10080E-03   -1.5152    
  13  Prefactor     .10001E-03    780.16        .18431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    46.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.1855        2.3988        .48068E-04   -1.5252    
  16  Prefactor     6.5038        95.668        .15737E-03   -1.5198    
  17  Prefactor     18.246        13.413        .93752E-04   -1.4853    
  18  Prefactor     .10000E-03    5.9781        .14575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.5531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .89727        .32372        .29366E-03   -.96556    
  21  Prefactor     .93642        .22421        .21275E-03   -.94880    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36623e-11
Minuit parameter uncertainties:
  1  2.94623e-06
  2  17.0617
  3  16.2213
  4  6.82612e-06
  5  99.9208
  6  3.56637
  7  0.00208638
  8  4.78846e-07
  9  62.7501
  10  35.2757
  11  1.19233
  12  4.78422
  13  0.00416284
  14  1.00337e-05
  15  2.39881
  16  49.984
  17  13.4151
  18  1.22558e-06
  19  2.92105e-07
  20  0.324422
  21  0.224436
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.515e+00  1.192e+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:  9.364e-01  2.244e-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:  8.973e-01  3.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.58
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 5.88e-08 +/- 4.62e-08
Energy Flux (Fixed Index): 2.87e-05 +/- 2.26e-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) = 3730.3104737
delta logL = 0.197738515734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3730.1997103
delta logL = 0.30850191141

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74415       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3661       1.0000          .0000       5.0000    
     3 'Normalizat'    .92264       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93533       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=   3730.200     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      209 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74124        .76925        .10925E-01   -.33369E-03
   2  alpha         1.3647        .50290        .28750       -.18879E-04
   3  Normalizat    .92284        .24566        .65619E-01    .17808E-04
   4  Prefactor     .93536        .18271        .45454E-01    .91948E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.741237
  alpha      = 1.36468
  Normalizat = 0.922838
  Prefactor  = 0.935362
 **********
 **   18 **HESSE 
 **********

 FCN=   3730.200     FROM HESSE     STATUS=OK            35 CALLS      244 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74124        1.3484        .45825E-03   -1.5536    
   2  alpha         1.3647        .89124        .11718E-01   -.47139    
   3  Normalizat    .92284        .29287        .29026E-03   -.95662    
   4  Prefactor     .93536        .21849        .21313E-03   -.94916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85236e-09
Minuit parameter uncertainties:
  1  1.3485
  2  0.916922
  3  0.293382
  4  0.218691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415301': 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) = 3730.19970709
delta logL = 0.308505117254

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  7.412e-01  1.348e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.365e+00  9.169e-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.354e-01  2.187e-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:  9.228e-01  2.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.20
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 1.36 +/- 0.92
Photon Flux (Free Index): 1.98e-08 +/- 3.62e-08
Energy Flux (Free Index): 4.85e-05 +/- 6.68e-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/415301/cmap_HighResolution_591840001_592099201_4FGL_J2236.5-1433_daily_bin1360.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.88e-08', energy_flux2='4.85e-05', photon_flux_error='4.62e-08', dlogl='3.09e-01', energy_flux='2.87e-05', photon_flux2='1.98e-08', job_status='DONE', time_completed='2021-09-28 17:44:33.523725', photon_index_error2='0.92', photon_index2='1.36', ts='7.58', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='6.68e-05', EG='0.90', time_epoch_completed='1632876273.52', return_code='0', job_id='415301', GAL2='0.94', EG2='0.92', return_code2='0', energy_flux_error='2.26e-05', photon_flux_error2='3.62e-08', ts2='8.20', photon_index='2.06' WHERE bin_id='1360' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:44:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 415301: <4FGL_J2236.5-1433_daily_bin1360> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1360> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:35:23 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:35:24 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:24 2021
Terminated at Tue Sep 28 17:44:34 2021
Results reported at Tue Sep 28 17:44:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1360 339.144 -14.5557 591840001 592099201 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 :                                   446.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   549 sec.
    Turnaround time :                            551 sec.

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

