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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1069
RA = 339.096, Dec = 28.4832
tmin = 516412801, tmax = 516672001
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='399885', job_status='RUN', time_executed='2021-09-28 16:45:59.587259', time_epoch_executed='1632872759.59' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1069'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399885

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399885/ft1_4FGL_J2236.3+2828_daily_bin1069.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399885/ft2_4FGL_J2236.3+2828_daily_bin1069.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399885/ft1_4FGL_J2236.3+2828_daily_bin1069.fits outfile=/scratch/kocevski/399885/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1069.fits ra=339.096 dec=28.4832 rad=12.0 tmin=516412801.0 tmax=516672001.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.48
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/399885/ft1_filtered_4FGL_J2236.3+2828_daily_bin1069.fits" evtable="EVENTS" scfile=/scratch/kocevski/399885/ft2_4FGL_J2236.3+2828_daily_bin1069.fits sctable="SC_DATA" outfile=/scratch/kocevski/399885/ltcube_516412801_516672001_4FGL_J2236.3+2828_daily_bin1069.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/399885/ft2_4FGL_J2236.3+2828_daily_bin1069.fits
.....................!
real 11.71
user 11.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399885/ft1_filtered_4FGL_J2236.3+2828_daily_bin1069.fits evtable="EVENTS" scfile=/scratch/kocevski/399885/ft2_4FGL_J2236.3+2828_daily_bin1069.fits sctable="SC_DATA" expcube=/scratch/kocevski/399885/ltcube_516412801_516672001_4FGL_J2236.3+2828_daily_bin1069.fits outfile=/scratch/kocevski/399885/expmap_516412801_516672001_4FGL_J2236.3+2828_daily_bin1069.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/399885/ltcube_516412801_516672001_4FGL_J2236.3+2828_daily_bin1069.fits
.....................!
real 192.27
user 184.64
sys 6.21

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/399885/ft1_filtered_4FGL_J2236.3+2828_daily_bin1069.fits scfile=/scratch/kocevski/399885/ft2_4FGL_J2236.3+2828_daily_bin1069.fits outfile=/scratch/kocevski/399885/cmap_516412801_516672001_4FGL_J2236.3+2828_daily_bin1069.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 14.57
user 0.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3877       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5318       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12191E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8270       1.0000         .10000E-03   10000.    
     5 'norm      '    3.4317       1.0000         .10000E-03   10000.    
     6 'Prefactor '    186.08       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.042       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5488       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4674       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7394       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8000       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.088       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21225       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.860       1.0000         .10000E-03   10000.    
    16 'norm      '    5.1719       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10840E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0122       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0268       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=   11851.24     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2426 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3872        7.7317       -.18571E-05   -.96239E-03
   2  norm          1.5315        .87461        .96781E-06   -.53865E-02
   3  Prefactor     .10000E-03    161.78       -.12675E-05** at limit **
   4  Prefactor     6.8310        17.292        .10464E-05   -.35701E-04
   5  norm          3.4316        3.9125        .13535E-06   -.13694E-03
   6  Prefactor     186.03        110.41       -.75720E-05   -.47652E-03
   7  Prefactor     11.046        12.014        .18467E-06    .48786E-05
   8  norm          2.5491        1.0767        .57085E-07   -.19989E-04
   9  Prefactor     .10000E-03    27.885       -.18815E-05** at limit **
  10  Prefactor     8.4645        16.820        .60381E-06    .45972E-04
  11  norm          1.7394        1.2413       -.27891E-07    .43886E-04
  12  Prefactor     6.8007        9.5487        .75124E-06    .20488E-03
  13  Prefactor     13.083        17.405        .82993E-06    .13081E-03
  14  Prefactor     .22329        3.7326       -.12048E-06    .30017E-04
  15  Prefactor     19.859        19.077        .12780E-06    .22230E-04
  16  norm          5.1726        1.7772        .40413E-08   -.22161E-03
  17  Prefactor     .10000E-03    5.3235        .51300E-07** at limit **
  18  Prefactor     .10000E-03    22.852        .76454E-06** at limit **
  19  norm          .10000E-03    2.5444        .80933E-07** at limit **
  20  Prefactor     .10000E-03    33.634        .14012E-05** at limit **
  21  Normalizat    1.0118        .21823        .21652E-06   -.97839E-04
  22  Prefactor     1.0270        .93819E-01   -.43923E-06   -.12818E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.3872
  norm       = 1.53147
  Prefactor  = 0.000100001
  Prefactor  = 6.83103
  norm       = 3.4316
  Prefactor  = 186.03
  Prefactor  = 11.0465
  norm       = 2.54906
  Prefactor  = 0.000100002
  Prefactor  = 8.46452
  norm       = 1.73937
  Prefactor  = 6.80069
  Prefactor  = 13.083
  Prefactor  = 0.223295
  Prefactor  = 19.8586
  norm       = 5.17261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.01176
  Prefactor  = 1.027
 **********
 **   18 **HESSE 
 **********

 FCN=   11851.24     FROM HESSE     STATUS=OK           352 CALLS     2778 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3872        7.8621        .13842E-03   -1.5129    
   2  norm          1.5315        .94036        .39435E-03   -1.5460    
   3  Prefactor     .10000E-03    164.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.8310        17.272        .15356E-03   -1.5185    
   5  norm          3.4316        3.9050        .21835E-03   -1.5337    
   6  Prefactor     186.03        117.75        .14800E-03   -1.2972    
   7  Prefactor     11.046        12.030        .12057E-03   -1.5043    
   8  norm          2.5491        1.0762        .25576E-04   -1.5389    
   9  Prefactor     .10000E-03    28.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.4645        16.801        .13776E-03   -1.5126    
  11  norm          1.7394        1.2454        .99014E-04   -1.5444    
  12  Prefactor     6.8007        9.5354        .15387E-03   -1.5186    
  13  Prefactor     13.083        17.443        .11072E-03   -1.4984    
  14  Prefactor     .22329        41.606        .40556E-02   -1.5613    
  15  Prefactor     19.859        19.080        .89876E-04   -1.4816    
  16  norm          5.1726        1.7699        .80446E-04   -1.5253    
  17  Prefactor     .10000E-03    5.3289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.4378        .33348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    34.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0118        .24918        .41847E-03   -.92637    
  22  Prefactor     1.0270        .10851        .18643E-03   -.91835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07802e-09
Minuit parameter uncertainties:
  1  7.86305
  2  0.940365
  3  0.000879756
  4  17.2848
  5  3.90524
  6  117.898
  7  12.0328
  8  1.07624
  9  0.000465305
  10  16.8109
  11  1.24542
  12  9.53749
  13  17.4497
  14  6.09895
  15  19.0855
  16  1.76996
  17  1.16916e-06
  18  0.000129333
  19  2.83962e-05
  20  0.000267267
  21  0.249469
  22  0.108533
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.549e+00  1.076e+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.027e+00  1.085e-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.012e+00  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.38
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 8.18e-08 +/- 3.45e-08
Energy Flux (Fixed Index): 3.32e-05 +/- 1.40e-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) = 11848.3913674
delta logL = 2.84997462123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11848.3738457
delta logL = 2.86749632465

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8094       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2876       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0650       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0132       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=   11848.37     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      216 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8092        .81832        .77656E-02    .41571E-03
   2  alpha         1.2875        .24141        .26655       -.80176E-04
   3  Normalizat    1.0650        .20352        .92362E-01   -.11023E-03
   4  Prefactor     1.0132        .91654E-01    .42895E-01   -.35471E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.80923
  alpha      = 1.28752
  Normalizat = 1.06501
  Prefactor  = 1.01321
 **********
 **   18 **HESSE 
 **********

 FCN=   11848.37     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8092        1.0494        .60557E-04   -1.5439    
   2  alpha         1.2875        .32955        .11042E-01   -.50635    
   3  Normalizat    1.0650        .23450        .40911E-03   -.90883    
   4  Prefactor     1.0132        .10585        .18750E-03   -.92291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2506e-09
Minuit parameter uncertainties:
  1  1.04942
  2  0.330807
  3  0.234729
  4  0.105874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399885': 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) = 11848.3738456
delta logL = 2.86749635338

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.809e+00  1.049e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.288e+00  3.308e-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.013e+00  1.059e-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.065e+00  2.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.13
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.29 +/- 0.33
Photon Flux (Free Index): 3.94e-08 +/- 2.18e-08
Energy Flux (Free Index): 8.61e-05 +/- 5.58e-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/399885/cmap_HighResolution_516412801_516672001_4FGL_J2236.3+2828_daily_bin1069.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.18e-08', energy_flux2='8.61e-05', photon_flux_error='3.45e-08', dlogl='2.87e+00', energy_flux='3.32e-05', photon_flux2='3.94e-08', job_status='DONE', time_completed='2021-09-28 16:59:45.363626', photon_index_error2='0.33', photon_index2='1.29', ts='17.38', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='5.58e-05', EG='1.01', time_epoch_completed='1632873585.36', return_code='0', job_id='399885', GAL2='1.01', EG2='1.07', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='2.18e-08', ts2='23.13', photon_index='2.15' WHERE bin_id='1069' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:59:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 399885: <4FGL_J2236.3+2828_daily_bin1069> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1069 339.096 28.4832 516412801 516672001 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 :                                   798.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            840 sec.

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

