/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 165 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 = 7440
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2236.3+2828_daily_bin34
RA = 339.096, Dec = 28.4832
tmin = 248140801, tmax = 248400001
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='395154', job_status='RUN', time_executed='2021-09-28 16:33:51.014523', time_epoch_executed='1632872031.01' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='34'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395154

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395154/ft1_4FGL_J2236.3+2828_daily_bin34.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395154/ft2_4FGL_J2236.3+2828_daily_bin34.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395154/ft1_4FGL_J2236.3+2828_daily_bin34.fits outfile=/scratch/kocevski/395154/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin34.fits ra=339.096 dec=28.4832 rad=12.0 tmin=248140801.0 tmax=248400001.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 1.41
user 1.22
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/395154/ft2_4FGL_J2236.3+2828_daily_bin34.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395154/ft2_4FGL_J2236.3+2828_daily_bin34.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/395154/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin34.fits evtable="EVENTS" outfile="/scratch/kocevski/395154/ft1_filtered_4FGL_J2236.3+2828_daily_bin34.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/395154/ft1_filtered_4FGL_J2236.3+2828_daily_bin34.fits" evtable="EVENTS" scfile=/scratch/kocevski/395154/ft2_4FGL_J2236.3+2828_daily_bin34.fits sctable="SC_DATA" outfile=/scratch/kocevski/395154/ltcube_248140801_248400001_4FGL_J2236.3+2828_daily_bin34.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/395154/ft2_4FGL_J2236.3+2828_daily_bin34.fits
.....................!
real 12.74
user 12.38
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395154/ft1_filtered_4FGL_J2236.3+2828_daily_bin34.fits evtable="EVENTS" scfile=/scratch/kocevski/395154/ft2_4FGL_J2236.3+2828_daily_bin34.fits sctable="SC_DATA" expcube=/scratch/kocevski/395154/ltcube_248140801_248400001_4FGL_J2236.3+2828_daily_bin34.fits outfile=/scratch/kocevski/395154/expmap_248140801_248400001_4FGL_J2236.3+2828_daily_bin34.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/395154/ltcube_248140801_248400001_4FGL_J2236.3+2828_daily_bin34.fits
.....................!
real 190.85
user 185.62
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 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J2236.3+2828 @ 339.096 28.4832

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/395154/ft1_filtered_4FGL_J2236.3+2828_daily_bin34.fits scfile=/scratch/kocevski/395154/ft2_4FGL_J2236.3+2828_daily_bin34.fits outfile=/scratch/kocevski/395154/cmap_248140801_248400001_4FGL_J2236.3+2828_daily_bin34.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.096 yref=28.4832 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395154/ft1_filtered_4FGL_J2236.3+2828_daily_bin34.fits scfile=/scratch/kocevski/395154/ft2_4FGL_J2236.3+2828_daily_bin34.fits outfile=/scratch/kocevski/395154/cmap_HighResolution_248140801_248400001_4FGL_J2236.3+2828_daily_bin34.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.096 yref=28.4832 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395154/ft1_filtered_4FGL_J2236.3+2828_daily_bin34.fits evtable="EVENTS" scfile=/scratch/kocevski/395154/ft2_4FGL_J2236.3+2828_daily_bin34.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395154/Model_4FGL_J2236.3+2828_daily_bin34.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/395154/ft1_filtered_4FGL_J2236.3+2828_daily_bin34.fits.....................!
real 103.71
user 101.34
sys 2.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/395154/ft1_filtered_4FGL_J2236.3+2828_daily_bin34.fits', '/scratch/kocevski/395154/ft2_4FGL_J2236.3+2828_daily_bin34.fits', expMap='/scratch/kocevski/395154/expmap_248140801_248400001_4FGL_J2236.3+2828_daily_bin34.fits', expCube='/scratch/kocevski/395154/ltcube_248140801_248400001_4FGL_J2236.3+2828_daily_bin34.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/395154/Model_4FGL_J2236.3+2828_daily_bin34.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2236.3+2828'

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.238e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.146e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  1.046e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/395154/ft1_filtered_4FGL_J2236.3+2828_daily_bin34.fits
Spacecraft file(s): /scratch/kocevski/395154/ft2_4FGL_J2236.3+2828_daily_bin34.fits
Exposure map: /scratch/kocevski/395154/expmap_248140801_248400001_4FGL_J2236.3+2828_daily_bin34.fits
Exposure cube: /scratch/kocevski/395154/ltcube_248140801_248400001_4FGL_J2236.3+2828_daily_bin34.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/395154/Model_4FGL_J2236.3+2828_daily_bin34.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) = 9607.47248013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2117       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8660       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.107       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3742       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11586E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .83160       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.7731       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0502       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2182       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.2870       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.0568       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7936       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.276       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1000       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80749       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9607.463     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2374 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3908       -.30033E-07** at limit **
   2  norm          1.2117        .73071       -.74770E-07   -.37390E-03
   3  Prefactor     .10000E-03    29.991        .38976E-07** at limit **
   4  Prefactor     1.8669        5.4523       -.63336E-06   -.57026E-03
   5  norm          .10000E-03    2.2467       -.65505E-07** at limit **
   6  Prefactor     29.083        78.696       -.39160E-04    .29312E-05
   7  Prefactor     .10000E-03    3.3179        .60844E-07** at limit **
   8  norm          2.3746        1.2379        .21282E-06   -.24280E-03
   9  Prefactor     .10000E-03    91.026        .16106E-05** at limit **
  10  Prefactor     .10000E-03    31.995       -.29741E-06** at limit **
  11  norm          .83158        .82430        .36395E-07    .37272E-03
  12  Prefactor     8.7734        7.7096       -.82206E-06   -.19780E-04
  13  Prefactor     7.0492        10.529        .22828E-06   -.24169E-04
  14  Prefactor     5.2189        10.287       -.15030E-05   -.12075E-03
  15  Prefactor     .10000E-03    7.9042       -.15688E-06** at limit **
  16  norm          3.2870        1.4800       -.97080E-07   -.34000E-03
  17  Prefactor     9.0590        17.339        .43117E-06   -.15157E-04
  18  Prefactor     6.7762        22.953       -.57402E-05   -.25425E-04
  19  norm          .10000E-03    2.3803        .18144E-07** at limit **
  20  Prefactor     20.282        16.539       -.24529E-06    .45142E-05
  21  Normalizat    1.0999        .19750        .20852E-05   -.31034E-04
  22  Prefactor     .80751        .86411E-01    .31266E-06    .84323E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.21172
  Prefactor  = 0.0001
  Prefactor  = 1.86691
  norm       = 0.0001
  Prefactor  = 29.0827
  Prefactor  = 0.0001
  norm       = 2.37456
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.831581
  Prefactor  = 8.77339
  Prefactor  = 7.04916
  Prefactor  = 5.21889
  Prefactor  = 0.0001
  norm       = 3.28701
  Prefactor  = 9.05901
  Prefactor  = 6.77623
  norm       = 0.0001
  Prefactor  = 20.2819
  Normalizat = 1.09993
  Prefactor  = 0.807508
 **********
 **   18 **HESSE 
 **********

 FCN=   9607.463     FROM HESSE     STATUS=OK           346 CALLS     2720 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2117        .72466        .62646E-04   -1.5488    
   3  Prefactor     .10000E-03    30.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8669        5.4537        .30497E-03   -1.5435    
   5  norm          .10000E-03    2.2839        .14346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.083        77.816        .74261E-04   -1.4629    
   7  Prefactor     .10000E-03    3.3320        .17434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3746        1.2313        .73893E-04   -1.5400    
   9  Prefactor     .10000E-03    91.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .83158        .84080        .86186E-04   -1.5526    
  12  Prefactor     8.7734        7.7038        .13533E-03   -1.5115    
  13  Prefactor     7.0492        10.526        .15108E-03   -1.5177    
  14  Prefactor     5.2189        10.301        .17597E-03   -1.5251    
  15  Prefactor     .10000E-03    7.9095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.2870        1.4787        .76387E-04   -1.5345    
  17  Prefactor     9.0590        17.353        .13318E-03   -1.5106    
  18  Prefactor     6.7762        22.965        .15394E-03   -1.5187    
  19  norm          .10000E-03    2.3981        .14735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.282        16.528        .88949E-04   -1.4807    
  21  Normalizat    1.0999        .23091        .34156E-03   -.89754    
  22  Prefactor     .80751        .10153        .17860E-03   -.99452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23048e-10
Minuit parameter uncertainties:
  1  5.30114e-06
  2  0.724669
  3  2.35674e-05
  4  5.45519
  5  4.05242e-06
  6  78.0896
  7  1.77556e-07
  8  1.23129
  9  0.000127458
  10  5.99453e-05
  11  0.840813
  12  7.70466
  13  10.5291
  14  10.304
  15  4.49854e-06
  16  1.47872
  17  17.3625
  18  22.9949
  19  6.17831e-07
  20  16.5317
  21  0.231122
  22  0.101552
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.375e+00  1.231e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.146e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  1.046e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  8.075e-01  1.016e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.100e+00  2.311e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.08
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 7.62e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 3.09e-05 +/- 1.60e-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) = 9606.07682313
delta logL = 1.38609619168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9606.06863731
delta logL = 1.39428201092

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7438       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0001       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0041       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83600       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9606.069     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      242 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7438        9.0543        .79409E-02    .19499E-03
   2  alpha         3.0001        3.9317        .29381        .67427E-04
   3  Normalizat    1.0041        .75135E-01    .80323E-01    .88527E-04
   4  Prefactor     .83600        .33347E-01    .44184E-01    .18861E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.74382
  alpha      = 3.00014
  Normalizat = 1.00407
  Prefactor  = 0.835999
 **********
 **   18 **HESSE 
 **********

 FCN=   9606.069     FROM HESSE     STATUS=OK            31 CALLS      273 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7438        1.2720        .50066E-04   -1.5444    
   2  alpha         3.0001        .61901        .11962E-01    .20141    
   3  Normalizat    1.0041        .23145        .35552E-03   -.92894    
   4  Prefactor     .83600        .10322        .17583E-03   -.98415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71252e-09
Minuit parameter uncertainties:
  1  1.27201
  2  0.625799
  3  0.231681
  4  0.103246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395154': 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) = 9606.06863731
delta logL = 1.39428201093

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.744e+00  1.272e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  3.000e+00  6.258e-01  0.000e+00  5.000e+00 ( 1.000e+00)
288         beta:  1.046e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  8.360e-01  1.032e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.004e+00  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.19
Ra Dec: 339.096 28.483
Photon Index (Free Index): 3.00 +/- 0.63
Photon Flux (Free Index): 1.38e-07 +/- 6.09e-08
Energy Flux (Free Index): 2.86e-05 +/- 1.24e-05

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/395154/cmap_HighResolution_248140801_248400001_4FGL_J2236.3+2828_daily_bin34.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.62e-08', energy_flux2='2.86e-05', photon_flux_error='3.95e-08', dlogl='1.39e+00', energy_flux='3.09e-05', photon_flux2='1.38e-07', job_status='DONE', time_completed='2021-09-28 16:45:39.868455', photon_index_error2='0.63', photon_index2='3.00', ts='6.08', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='1.10', time_epoch_completed='1632872739.87', return_code='0', job_id='395154', GAL2='0.84', EG2='1.00', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='6.09e-08', ts2='9.19', photon_index='2.15' WHERE bin_id='34' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:45:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 395154: <4FGL_J2236.3+2828_daily_bin34> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin34> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:30:55 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:30:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:30:56 2021
Terminated at Tue Sep 28 16:45:40 2021
Results reported at Tue Sep 28 16:45:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin34 339.096 28.4832 248140801 248400001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2236.3+2828 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   707.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            885 sec.

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

