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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin754
RA = 339.096, Dec = 28.4832
tmin = 434764801, tmax = 435024001
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='399421', job_status='RUN', time_executed='2021-09-28 16:45:28.180393', time_epoch_executed='1632872728.18' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399421

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399421/ft1_4FGL_J2236.3+2828_daily_bin754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399421/ft2_4FGL_J2236.3+2828_daily_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399421/ft1_4FGL_J2236.3+2828_daily_bin754.fits outfile=/scratch/kocevski/399421/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin754.fits ra=339.096 dec=28.4832 rad=12.0 tmin=434764801.0 tmax=435024001.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.67
user 5.41
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/399421/ft1_filtered_4FGL_J2236.3+2828_daily_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/399421/ft2_4FGL_J2236.3+2828_daily_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/399421/ltcube_434764801_435024001_4FGL_J2236.3+2828_daily_bin754.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/399421/ft2_4FGL_J2236.3+2828_daily_bin754.fits
.....................!
real 12.37
user 12.05
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399421/ft1_filtered_4FGL_J2236.3+2828_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/399421/ft2_4FGL_J2236.3+2828_daily_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/399421/ltcube_434764801_435024001_4FGL_J2236.3+2828_daily_bin754.fits outfile=/scratch/kocevski/399421/expmap_434764801_435024001_4FGL_J2236.3+2828_daily_bin754.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/399421/ltcube_434764801_435024001_4FGL_J2236.3+2828_daily_bin754.fits
.....................!
real 190.80
user 185.85
sys 4.51

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/399421/ft1_filtered_4FGL_J2236.3+2828_daily_bin754.fits scfile=/scratch/kocevski/399421/ft2_4FGL_J2236.3+2828_daily_bin754.fits outfile=/scratch/kocevski/399421/cmap_434764801_435024001_4FGL_J2236.3+2828_daily_bin754.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399421/ft1_filtered_4FGL_J2236.3+2828_daily_bin754.fits scfile=/scratch/kocevski/399421/ft2_4FGL_J2236.3+2828_daily_bin754.fits outfile=/scratch/kocevski/399421/cmap_HighResolution_434764801_435024001_4FGL_J2236.3+2828_daily_bin754.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.7958       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.949       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.865       1.0000         .10000E-03   10000.    
     5 'norm      '    8.3058       1.0000         .10000E-03   10000.    
     6 'Prefactor '    181.87       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.9905       1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.745       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.656       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5119       1.0000         .10000E-03   10000.    
    15 'Prefactor '    51.095       1.0000         .10000E-03   10000.    
    16 'norm      '    .68802       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .37393       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10988E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    40.018       1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.297       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .31290       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0657       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=   5890.244     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2502 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2777       -.69294E-07** at limit **
   2  norm          2.7966        1.0999       -.23609E-06   -.33521E-03
   3  Prefactor     24.961        34.155       -.15232E-05   -.50759E-05
   4  Prefactor     15.846        21.529       -.19061E-05   -.31978E-04
   5  norm          8.3132        9.2668       -.11525E-05   -.58905E-04
   6  Prefactor     182.03        188.18       -.15227E-05   -.33980E-05
   7  Prefactor     .10000E-03    22.946       -.39515E-06** at limit **
   8  norm          4.9916        2.2112       -.48088E-06   -.17137E-03
   9  Prefactor     36.624        91.934       -.78927E-05   -.69791E-06
  10  Prefactor     .10000E-03    44.342       -.43871E-06** at limit **
  11  norm          .10000E-03    1.2216       -.69818E-07** at limit **
  12  Prefactor     .10000E-03    10.350       -.19773E-06** at limit **
  13  Prefactor     18.665        24.832       -.32996E-06   -.30516E-05
  14  Prefactor     8.5146        13.987       -.11952E-05   -.10279E-04
  15  Prefactor     51.104        43.332       -.75710E-08   -.64504E-05
  16  norm          .68665        2.4617       -.13220E-05   -.41688E-04
  17  Prefactor     .67416        40.674       -.45356E-05    .11948E-03
  18  Prefactor     .10000E-03    69.757       -.97550E-06** at limit **
  19  norm          40.024        18.631        .55603E-06   -.93140E-05
  20  Prefactor     33.268        56.713       -.53181E-05    .63505E-06
  21  Normalizat    .31257        .34387        .38782E-04   -.10647E-04
  22  Prefactor     1.0658        .13924       -.70418E-05   -.82770E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.79663
  Prefactor  = 24.9614
  Prefactor  = 15.8457
  norm       = 8.31321
  Prefactor  = 182.031
  Prefactor  = 0.000100001
  norm       = 4.99155
  Prefactor  = 36.6235
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6652
  Prefactor  = 8.51459
  Prefactor  = 51.1037
  norm       = 0.686649
  Prefactor  = 0.674155
  Prefactor  = 0.000100001
  norm       = 40.0237
  Prefactor  = 33.2676
  Normalizat = 0.312568
  Prefactor  = 1.06577
 **********
 **   18 **HESSE 
 **********

 FCN=   5890.244     FROM HESSE     STATUS=OK           356 CALLS     2858 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2980        .13568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7966        1.1080        .47895E-04   -1.5373    
   3  Prefactor     24.961        34.180        .80198E-04   -1.4708    
   4  Prefactor     15.846        21.542        .10056E-03   -1.4912    
   5  norm          8.3132        9.2812        .13911E-03   -1.5131    
   6  Prefactor     182.03        188.83        .14967E-03   -1.3001    
   7  Prefactor     .10000E-03    23.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.9916        2.2136        .70706E-04   -1.5261    
   9  Prefactor     36.624        92.412        .66115E-04   -1.4497    
  10  Prefactor     .10000E-03    44.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2424        .82840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.665        24.865        .92728E-04   -1.4844    
  14  Prefactor     8.5146        13.989        .13740E-03   -1.5124    
  15  Prefactor     51.104        43.219        .56105E-04   -1.4277    
  16  norm          .68665        3.3359        .20183E-02   -1.5542    
  17  Prefactor     .67416        42.696        .14513       -1.5544    
  18  Prefactor     .10000E-03    69.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          40.024        18.613        .63363E-04   -1.4442    
  20  Prefactor     33.268        56.392        .69443E-04   -1.4554    
  21  Normalizat    .31257        .34775        .68110E-03   -1.2210    
  22  Prefactor     1.0658        .14090        .16029E-03   -.90568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98189e-08
Minuit parameter uncertainties:
  1  1.30828e-06
  2  1.10804
  3  34.2066
  4  21.5529
  5  9.28276
  6  189.463
  7  0.000235359
  8  2.21363
  9  92.7765
  10  2.94654e-05
  11  8.80836e-07
  12  2.85259e-06
  13  24.8787
  14  13.9947
  15  43.245
  16  3.027
  17  10.7373
  18  0.000454141
  19  18.616
  20  56.4829
  21  0.35019
  22  0.140945
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  4.992e+00  2.214e+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:  1.066e+00  1.409e-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:  3.126e-01  3.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.58
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.60e-07 +/- 7.10e-08
Energy Flux (Fixed Index): 6.49e-05 +/- 2.88e-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) = 5890.0730182
delta logL = 0.170961009303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5890.0597847
delta logL = 0.184194507847

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0291       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4028       1.0000          .0000       5.0000    
     3 'Normalizat'    .26280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0780       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=   5890.060     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0294        33.124        .44828E-02    .11678E-03
   2  alpha         2.4024        3.5517        .26858        .24422E-04
   3  Normalizat    .26311        .75174        .16807        .59871E-04
   4  Prefactor     1.0779        .30465        .38491E-01   -.97320E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.02941
  alpha      = 2.4024
  Normalizat = 0.263113
  Prefactor  = 1.07788
 **********
 **   18 **HESSE 
 **********

 FCN=   5890.060     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0294        2.0985        .66250E-04   -1.5259    
   2  alpha         2.4024        .42305        .11062E-01   -.39049E-01
   3  Normalizat    .26311        .33484        .73847E-03   -1.2511    
   4  Prefactor     1.0779        .13835        .15941E-03   -.90177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.20408e-12
Minuit parameter uncertainties:
  1  2.09854
  2  0.425095
  3  0.337429
  4  0.138398
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399421': 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) = 5890.05978382
delta logL = 0.184195385622

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  5.029e+00  2.099e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.402e+00  4.251e-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:  1.078e+00  1.384e-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:  2.631e-01  3.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.05
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.40 +/- 0.43
Photon Flux (Free Index): 2.05e-07 +/- 1.09e-07
Energy Flux (Free Index): 6.29e-05 +/- 2.59e-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/399421/cmap_HighResolution_434764801_435024001_4FGL_J2236.3+2828_daily_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.60e-07', energy_flux2='6.29e-05', photon_flux_error='7.10e-08', dlogl='1.84e-01', energy_flux='6.49e-05', photon_flux2='2.05e-07', job_status='DONE', time_completed='2021-09-28 16:54:48.408162', photon_index_error2='0.43', photon_index2='2.40', ts='14.58', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='2.59e-05', EG='0.31', time_epoch_completed='1632873288.41', return_code='0', job_id='399421', GAL2='1.08', EG2='0.26', return_code2='0', energy_flux_error='2.88e-05', photon_flux_error2='1.09e-07', ts2='15.05', photon_index='2.15' WHERE bin_id='754' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:54:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 399421: <4FGL_J2236.3+2828_daily_bin754> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin754> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 16:45:13 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:45:15 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:45:15 2021
Terminated at Tue Sep 28 16:54:49 2021
Results reported at Tue Sep 28 16:54:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin754 339.096 28.4832 434764801 435024001 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 :                                   559.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   573 sec.
    Turnaround time :                            576 sec.

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

