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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin30
RA = 339.096, Dec = 28.4832
tmin = 247104001, tmax = 247363201
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='395147', job_status='RUN', time_executed='2021-09-28 16:33:45.504043', time_epoch_executed='1632872025.5' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='30'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395147

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395147/ft1_4FGL_J2236.3+2828_daily_bin30.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395147/ft2_4FGL_J2236.3+2828_daily_bin30.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395147/ft1_4FGL_J2236.3+2828_daily_bin30.fits outfile=/scratch/kocevski/395147/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin30.fits ra=339.096 dec=28.4832 rad=12.0 tmin=247104001.0 tmax=247363201.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.49
user 1.30
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395147/ft2_4FGL_J2236.3+2828_daily_bin30.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/395147/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin30.fits evtable="EVENTS" outfile="/scratch/kocevski/395147/ft1_filtered_4FGL_J2236.3+2828_daily_bin30.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.50
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395147/ft1_filtered_4FGL_J2236.3+2828_daily_bin30.fits evtable="EVENTS" scfile=/scratch/kocevski/395147/ft2_4FGL_J2236.3+2828_daily_bin30.fits sctable="SC_DATA" expcube=/scratch/kocevski/395147/ltcube_247104001_247363201_4FGL_J2236.3+2828_daily_bin30.fits outfile=/scratch/kocevski/395147/expmap_247104001_247363201_4FGL_J2236.3+2828_daily_bin30.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/395147/ltcube_247104001_247363201_4FGL_J2236.3+2828_daily_bin30.fits
.....................!
real 190.32
user 184.76
sys 4.80

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/395147/ft1_filtered_4FGL_J2236.3+2828_daily_bin30.fits scfile=/scratch/kocevski/395147/ft2_4FGL_J2236.3+2828_daily_bin30.fits outfile=/scratch/kocevski/395147/cmap_247104001_247363201_4FGL_J2236.3+2828_daily_bin30.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395147/ft1_filtered_4FGL_J2236.3+2828_daily_bin30.fits scfile=/scratch/kocevski/395147/ft2_4FGL_J2236.3+2828_daily_bin30.fits outfile=/scratch/kocevski/395147/cmap_HighResolution_247104001_247363201_4FGL_J2236.3+2828_daily_bin30.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.819       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5659       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3692       1.0000         .10000E-03   10000.    
     5 'norm      '    9.8884       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.6421       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.137       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5331       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10434E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.268       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.4293       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2362       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.851       1.0000         .10000E-03   10000.    
    19 'norm      '    8.2068       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.330       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .90792       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93316       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=   7768.122     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2468 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.820        8.9191        .29131E-02   -.83215E-04
   2  norm          1.5660        .94665        .84969E-02   -.23422E-02
   3  Prefactor     .10003E-03    82.643        .90712E-02** at limit **
   4  Prefactor     9.3691        9.4803        .32732E-02   -.28751E-04
   5  norm          9.8886        5.5528        .31857E-02   -.25155E-03
   6  Prefactor     .10008E-03    180.73        .90712E-02** at limit **
   7  Prefactor     .10000E-03    15.026        .90712E-02** at limit **
   8  norm          2.6421        1.3099        .62708E-02    .12930E-02
   9  Prefactor     .10000E-03    31.199        .90712E-02** at limit **
  10  Prefactor     21.138        19.939        .21780E-02    .10664E-04
  11  norm          1.5318        1.6404        .86153E-02    .23935E-03
  12  Prefactor     .10000E-03    24.307        .90712E-02** at limit **
  13  Prefactor     14.268        12.824        .26510E-02   -.12136E-04
  14  Prefactor     .10000E-03    18.382        .90712E-02** at limit **
  15  Prefactor     8.4304        17.964        .34519E-02   -.40849E-04
  16  norm          1.2363        1.2420        .10095E-01    .60255E-03
  17  Prefactor     .10000E-03    6.1826        .90712E-02** at limit **
  18  Prefactor     12.853        23.055        .27935E-02    .55926E-04
  19  norm          8.2069        6.8683        .34987E-02    .10219E-03
  20  Prefactor     24.334        27.501        .20303E-02    .67890E-04
  21  Normalizat    .90782        .22776        .86887E-01   -.17150E-03
  22  Prefactor     .93315        .10283        .45426E-01   -.30980E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8197
  norm       = 1.566
  Prefactor  = 0.000100025
  Prefactor  = 9.36907
  norm       = 9.88857
  Prefactor  = 0.000100083
  Prefactor  = 0.0001
  norm       = 2.64211
  Prefactor  = 0.000100001
  Prefactor  = 21.1383
  norm       = 1.53177
  Prefactor  = 0.000100003
  Prefactor  = 14.268
  Prefactor  = 0.0001
  Prefactor  = 8.43043
  norm       = 1.23633
  Prefactor  = 0.000100001
  Prefactor  = 12.853
  norm       = 8.2069
  Prefactor  = 24.3339
  Normalizat = 0.907823
  Prefactor  = 0.933147
 **********
 **   18 **HESSE 
 **********

 FCN=   7768.122     FROM HESSE     STATUS=OK           348 CALLS     2816 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.820        8.9179        .11653E-03   -1.5020    
   2  norm          1.5660        .93826        .63639E-04   -1.5458    
   3  Prefactor     .10003E-03    84.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.3691        9.4855        .13093E-03   -1.5096    
   5  norm          9.8886        5.5535        .12743E-03   -1.5079    
   6  Prefactor     .10008E-03    181.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.403        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.6421        1.3071        .66796E-04   -1.5383    
   9  Prefactor     .10000E-03    31.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.138        19.947        .87121E-04   -1.4788    
  11  norm          1.5318        1.6246        .11339E-03   -1.5460    
  12  Prefactor     .10000E-03    25.041        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.268        12.828        .10604E-03   -1.4952    
  14  Prefactor     .10000E-03    19.098        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.4304        17.967        .13808E-03   -1.5127    
  16  norm          1.2363        1.2240        .94593E-04   -1.5486    
  17  Prefactor     .10000E-03    6.1864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.853        23.036        .11174E-03   -1.4991    
  19  norm          8.2069        6.8642        .13995E-03   -1.5135    
  20  Prefactor     24.334        27.522        .81210E-04   -1.4721    
  21  Normalizat    .90782        .26363        .38475E-03   -.96186    
  22  Prefactor     .93315        .12005        .17571E-03   -.94992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65134e-09
Minuit parameter uncertainties:
  1  8.9189
  2  0.938266
  3  0.00291692
  4  9.48702
  5  5.55381
  6  0.00776755
  7  7.29848e-05
  8  1.30715
  9  0.000289245
  10  19.9536
  11  1.62466
  12  0.000516741
  13  12.8301
  14  3.0627e-05
  15  17.9787
  16  1.22399
  17  0.000146612
  18  23.0519
  19  6.86486
  20  27.5363
  21  0.264004
  22  0.12008
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.642e+00  1.307e+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:  9.331e-01  1.201e-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:  9.078e-01  2.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.94
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 8.48e-08 +/- 4.19e-08
Energy Flux (Fixed Index): 3.44e-05 +/- 1.70e-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) = 7767.58155358
delta logL = 0.540077806008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7767.57345485
delta logL = 0.5481765423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2824       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6336       1.0000          .0000       5.0000    
     3 'Normalizat'    .86270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94588       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=   7767.573     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      264 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2818        17.662        .67940E-02    .29971E-03
   2  alpha         2.6333        3.7883        .30256        .47198E-04
   3  Normalizat    .86267        .11604        .88891E-01    .31498E-04
   4  Prefactor     .94590        .48560E-01    .45587E-01   -.69145E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.28183
  alpha      = 2.63326
  Normalizat = 0.86267
  Prefactor  = 0.945896
 **********
 **   18 **HESSE 
 **********

 FCN=   7767.573     FROM HESSE     STATUS=OK            31 CALLS      295 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2818        1.2596        .56586E-04   -1.5406    
   2  alpha         2.6333        .49404        .12324E-01    .53329E-01
   3  Normalizat    .86267        .26124        .39368E-03   -.97785    
   4  Prefactor     .94590        .11973        .17461E-03   -.94555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86282e-12
Minuit parameter uncertainties:
  1  1.25965
  2  0.497326
  3  0.261626
  4  0.119763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395147': 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) = 7767.5734541
delta logL = 0.548177290112

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.282e+00  1.260e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.633e+00  4.973e-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:  9.459e-01  1.198e-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:  8.627e-01  2.616e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.12
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.63 +/- 0.50
Photon Flux (Free Index): 1.18e-07 +/- 5.88e-08
Energy Flux (Free Index): 3.02e-05 +/- 1.40e-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/395147/cmap_HighResolution_247104001_247363201_4FGL_J2236.3+2828_daily_bin30.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.48e-08', energy_flux2='3.02e-05', photon_flux_error='4.19e-08', dlogl='5.48e-01', energy_flux='3.44e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-28 16:44:19.948564', photon_index_error2='0.50', photon_index2='2.63', ts='8.94', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='0.91', time_epoch_completed='1632872659.95', return_code='0', job_id='395147', GAL2='0.95', EG2='0.86', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='5.88e-08', ts2='10.12', photon_index='2.15' WHERE bin_id='30' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:44:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 395147: <4FGL_J2236.3+2828_daily_bin30> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin30> 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) <bullet0075>, 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:44:20 2021
Results reported at Tue Sep 28 16:44:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin30 339.096 28.4832 247104001 247363201 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 :                                   632.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            805 sec.

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

