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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1146
RA = 339.096, Dec = 28.4832
tmin = 536371201, tmax = 536630401
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='401035', job_status='RUN', time_executed='2021-09-28 16:50:33.661798', time_epoch_executed='1632873033.66' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1146'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401035

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401035/ft1_4FGL_J2236.3+2828_daily_bin1146.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401035/ft2_4FGL_J2236.3+2828_daily_bin1146.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401035/ft1_4FGL_J2236.3+2828_daily_bin1146.fits outfile=/scratch/kocevski/401035/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1146.fits ra=339.096 dec=28.4832 rad=12.0 tmin=536371201.0 tmax=536630401.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.58
user 3.37
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/401035/ft2_4FGL_J2236.3+2828_daily_bin1146.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/401035/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1146.fits evtable="EVENTS" outfile="/scratch/kocevski/401035/ft1_filtered_4FGL_J2236.3+2828_daily_bin1146.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401035/ft1_filtered_4FGL_J2236.3+2828_daily_bin1146.fits" evtable="EVENTS" scfile=/scratch/kocevski/401035/ft2_4FGL_J2236.3+2828_daily_bin1146.fits sctable="SC_DATA" outfile=/scratch/kocevski/401035/ltcube_536371201_536630401_4FGL_J2236.3+2828_daily_bin1146.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/401035/ft2_4FGL_J2236.3+2828_daily_bin1146.fits
.....................!
real 11.99
user 11.57
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401035/ft1_filtered_4FGL_J2236.3+2828_daily_bin1146.fits evtable="EVENTS" scfile=/scratch/kocevski/401035/ft2_4FGL_J2236.3+2828_daily_bin1146.fits sctable="SC_DATA" expcube=/scratch/kocevski/401035/ltcube_536371201_536630401_4FGL_J2236.3+2828_daily_bin1146.fits outfile=/scratch/kocevski/401035/expmap_536371201_536630401_4FGL_J2236.3+2828_daily_bin1146.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/401035/ltcube_536371201_536630401_4FGL_J2236.3+2828_daily_bin1146.fits
.....................!
real 191.20
user 185.48
sys 5.36

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/401035/ft1_filtered_4FGL_J2236.3+2828_daily_bin1146.fits scfile=/scratch/kocevski/401035/ft2_4FGL_J2236.3+2828_daily_bin1146.fits outfile=/scratch/kocevski/401035/cmap_536371201_536630401_4FGL_J2236.3+2828_daily_bin1146.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401035/ft1_filtered_4FGL_J2236.3+2828_daily_bin1146.fits scfile=/scratch/kocevski/401035/ft2_4FGL_J2236.3+2828_daily_bin1146.fits outfile=/scratch/kocevski/401035/cmap_HighResolution_536371201_536630401_4FGL_J2236.3+2828_daily_bin1146.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.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/401035/ft1_filtered_4FGL_J2236.3+2828_daily_bin1146.fits', '/scratch/kocevski/401035/ft2_4FGL_J2236.3+2828_daily_bin1146.fits', expMap='/scratch/kocevski/401035/expmap_536371201_536630401_4FGL_J2236.3+2828_daily_bin1146.fits', expCube='/scratch/kocevski/401035/ltcube_536371201_536630401_4FGL_J2236.3+2828_daily_bin1146.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/401035/Model_4FGL_J2236.3+2828_daily_bin1146.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/401035/ft1_filtered_4FGL_J2236.3+2828_daily_bin1146.fits
Spacecraft file(s): /scratch/kocevski/401035/ft2_4FGL_J2236.3+2828_daily_bin1146.fits
Exposure map: /scratch/kocevski/401035/expmap_536371201_536630401_4FGL_J2236.3+2828_daily_bin1146.fits
Exposure cube: /scratch/kocevski/401035/ltcube_536371201_536630401_4FGL_J2236.3+2828_daily_bin1146.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/401035/Model_4FGL_J2236.3+2828_daily_bin1146.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) = 8886.17870601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0502       1.0000         .10000E-03   10000.    
     2 'norm      '    .24809       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.644       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.4849       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.493       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.086       1.0000         .10000E-03   10000.    
     8 'norm      '    .76674       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.535       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5440       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.608       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4198       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .42711       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.512       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2208       1.0000         .10000E-03   10000.    
    19 'norm      '    6.8933       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.830       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0946       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88781       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=   8886.166     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2367 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0478        7.5907       -.44607E-06    .13809E-03
   2  norm          .24791        .67080       -.56232E-06   -.12697E-02
   3  Prefactor     29.645        28.938        .96160E-06   -.36418E-04
   4  Prefactor     9.4862        13.738       -.12208E-06   -.61731E-04
   5  norm          .10000E-03    1.3683       -.64828E-07** at limit **
   6  Prefactor     29.491        77.250       -.30455E-05    .92532E-05
   7  Prefactor     11.090        12.325        .12459E-05   -.16332E-03
   8  norm          .76737        1.2105        .53932E-06   -.78745E-03
   9  Prefactor     .10000E-03    17.845        .21969E-06** at limit **
  10  Prefactor     13.530        25.942       -.88595E-05    .15807E-03
  11  norm          1.5439        1.1868        .37336E-08    .16376E-03
  12  Prefactor     .10000E-03    3.6542       -.14570E-07** at limit **
  13  Prefactor     25.604        22.071       -.43232E-05    .21562E-03
  14  Prefactor     1.4187        7.3377       -.42637E-05   -.58575E-03
  15  Prefactor     .10000E-03    14.225       -.12698E-06** at limit **
  16  norm          .42755        .89705       -.35216E-06   -.18326E-02
  17  Prefactor     14.512        16.862        .59637E-06   -.32696E-04
  18  Prefactor     6.2215        16.340        .11901E-05   -.50108E-04
  19  norm          6.8939        5.9907        .11342E-05   -.12572E-03
  20  Prefactor     18.826        22.086       -.46674E-05    .17940E-03
  21  Normalizat    1.0943        .21507        .16746E-05    .12645E-03
  22  Prefactor     .88794        .94943E-01    .50594E-06    .31609E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.04782
  norm       = 0.247913
  Prefactor  = 29.6451
  Prefactor  = 9.48617
  norm       = 0.0001
  Prefactor  = 29.4914
  Prefactor  = 11.0901
  norm       = 0.767373
  Prefactor  = 0.0001
  Prefactor  = 13.5304
  norm       = 1.54393
  Prefactor  = 0.0001
  Prefactor  = 25.6043
  Prefactor  = 1.41866
  Prefactor  = 0.0001
  norm       = 0.427552
  Prefactor  = 14.5125
  Prefactor  = 6.22149
  norm       = 6.89393
  Prefactor  = 18.8265
  Normalizat = 1.09425
  Prefactor  = 0.887939
 **********
 **   18 **HESSE 
 **********

 FCN=   8886.166     FROM HESSE     STATUS=OK           352 CALLS     2719 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0478        7.5516        .14131E-03   -1.5141    
   2  norm          .24791        .85148        .11924E-02   -1.5608    
   3  Prefactor     29.645        28.913        .73586E-04   -1.4618    
   4  Prefactor     9.4862        13.737        .13012E-03   -1.5092    
   5  norm          .10000E-03    1.3714        .10768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.491        77.190        .73774E-04   -1.4621    
   7  Prefactor     11.090        12.333        .12032E-03   -1.5042    
   8  norm          .76737        1.1283        .10799E-03   -1.5533    
   9  Prefactor     .10000E-03    17.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.530        24.677        .10887E-03   -1.4972    
  11  norm          1.5439        1.1901        .87803E-04   -1.5459    
  12  Prefactor     .10000E-03    3.6761        .17597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.604        21.904        .79162E-04   -1.4696    
  14  Prefactor     1.4187        8.4079        .36310E-03   -1.5470    
  15  Prefactor     .10000E-03    14.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .42755        .87252        .12595E-02   -1.5577    
  17  Prefactor     14.512        16.852        .10514E-03   -1.4946    
  18  Prefactor     6.2215        16.293        .16095E-03   -1.5209    
  19  norm          6.8939        5.9432        .15281E-03   -1.5183    
  20  Prefactor     18.826        21.770        .92300E-04   -1.4840    
  21  Normalizat    1.0943        .25427        .34945E-03   -.89937    
  22  Prefactor     .88794        .11337        .17670E-03   -.96564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58721e-09
Minuit parameter uncertainties:
  1  7.55252
  2  0.851522
  3  28.9264
  4  13.7417
  5  1.70676e-06
  6  77.4528
  7  12.3354
  8  1.12832
  9  7.2739e-06
  10  24.6952
  11  1.19012
  12  3.11261e-06
  13  21.9108
  14  6.90859
  15  9.34792e-06
  16  0.872551
  17  16.8572
  18  16.3042
  19  5.94374
  20  21.7794
  21  0.254559
  22  0.113399
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  7.674e-01  1.128e+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.879e-01  1.134e-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.094e+00  2.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.73
Ra Dec: 339.096 28.483
Photon Flux Upper Limit: 9.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.00e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/401035/likelihoodResults_536371201_536630401_4FGL_J2236.3+2828_daily_bin1146.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8885.45645794
delta logL = 0.709294974369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8885.41858842
delta logL = 0.747164497205

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42274       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6926       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0016       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91558       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=   8885.419     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      228 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42201        3.8941        .95813E-02    .20894E-02
   2  alpha         3.6938        4.3134        .49553        .71524E-04
   3  Normalizat    1.0014        .47957E-01    .82118E-01    .28549E-04
   4  Prefactor     .91564        .22204E-01    .45203E-01    .10176E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.422013
  alpha      = 3.69383
  Normalizat = 1.00141
  Prefactor  = 0.915636
 **********
 **   18 **HESSE 
 **********

 FCN=   8885.419     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      263 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42201        10.670        .43690E-03   -1.5578    
   2  alpha         3.6938        3.4038        .20329E-01    .49784    
   3  Normalizat    1.0014        .21757        .36350E-03   -.92983    
   4  Prefactor     .91564        .10190        .17429E-03   -.95597    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.81775e-07
Minuit parameter uncertainties:
  1  4.24431
  2  7.44925
  3  0.217764
  4  0.101923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401035': 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): 102
logL (Free Index) = 8885.41858779
delta logL = 0.747165124534

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  4.220e-01  4.244e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  3.694e+00  7.449e+00  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:  9.156e-01  1.019e-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.001e+00  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.55
Ra Dec: 339.096 28.483
Photon Index (Free Index): 3.69 +/- 7.45
Photon Flux (Free Index): 8.17e-08 +/- 5.94e-08
Energy Flux (Free Index): 1.35e-05 +/- 2.51e-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/401035/cmap_HighResolution_536371201_536630401_4FGL_J2236.3+2828_daily_bin1146.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-05', comment='SUCCESS', energy_flux2='1.35e-05', dlogl='7.47e-01', photon_flux2='8.17e-08', job_status='DONE', time_completed='2021-09-28 17:03:10.721406', photon_index_error2='7.45', photon_index2='3.69', ts='0.73', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='9.87e-08', energy_flux_error2='2.51e-05', EG='1.09', time_epoch_completed='1632873790.72', return_code='0', job_id='401035', GAL2='0.92', EG2='1.00', return_code2='102', photon_flux_error2='5.94e-08', ts2='2.55', photon_index='2.15' WHERE bin_id='1146' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:03:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 401035: <4FGL_J2236.3+2828_daily_bin1146> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin1146> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 16:50:17 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:50:19 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:50:19 2021
Terminated at Tue Sep 28 17:03:11 2021
Results reported at Tue Sep 28 17:03:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1146 339.096 28.4832 536371201 536630401 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 :                                   755.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             385.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            774 sec.

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

