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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin41
RA = 339.096, Dec = 28.4832
tmin = 249955201, tmax = 250214401
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='395165', job_status='RUN', time_executed='2021-09-28 16:33:33.646817', time_epoch_executed='1632872013.65' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395165

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395165/ft1_4FGL_J2236.3+2828_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395165/ft2_4FGL_J2236.3+2828_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395165/ft1_4FGL_J2236.3+2828_daily_bin41.fits outfile=/scratch/kocevski/395165/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin41.fits ra=339.096 dec=28.4832 rad=12.0 tmin=249955201.0 tmax=250214401.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.44
user 1.27
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395165/ft1_filtered_4FGL_J2236.3+2828_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/395165/ft2_4FGL_J2236.3+2828_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/395165/ltcube_249955201_250214401_4FGL_J2236.3+2828_daily_bin41.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/395165/ft2_4FGL_J2236.3+2828_daily_bin41.fits
.....................!
real 13.15
user 12.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395165/ft1_filtered_4FGL_J2236.3+2828_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/395165/ft2_4FGL_J2236.3+2828_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/395165/ltcube_249955201_250214401_4FGL_J2236.3+2828_daily_bin41.fits outfile=/scratch/kocevski/395165/expmap_249955201_250214401_4FGL_J2236.3+2828_daily_bin41.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/395165/ltcube_249955201_250214401_4FGL_J2236.3+2828_daily_bin41.fits
.....................!
real 191.71
user 186.91
sys 4.42

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/395165/ft1_filtered_4FGL_J2236.3+2828_daily_bin41.fits scfile=/scratch/kocevski/395165/ft2_4FGL_J2236.3+2828_daily_bin41.fits outfile=/scratch/kocevski/395165/cmap_249955201_250214401_4FGL_J2236.3+2828_daily_bin41.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395165/ft1_filtered_4FGL_J2236.3+2828_daily_bin41.fits scfile=/scratch/kocevski/395165/ft2_4FGL_J2236.3+2828_daily_bin41.fits outfile=/scratch/kocevski/395165/cmap_HighResolution_249955201_250214401_4FGL_J2236.3+2828_daily_bin41.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0240       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2429       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1540       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.997       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2550       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.389       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6917       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.5850       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7829       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9787       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6345       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.9348       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7233       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.3366       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.256       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .70322       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1083       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=   14382.21     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2035 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0248        5.6433       -.93201E-06   -.18122E-03
   2  norm          1.2429        .82301        .26265E-07    .16324E-04
   3  Prefactor     9.1541        24.814       -.19423E-06   -.25564E-05
   4  Prefactor     25.998        13.656       -.19700E-06   -.84245E-05
   5  norm          2.2552        4.5449        .17796E-05   -.81325E-04
   6  Prefactor     .10000E-03    65.023       -.12430E-06** at limit **
   7  Prefactor     10.388        8.2731       -.14605E-06   -.19816E-03
   8  norm          1.6914        1.0401        .46115E-07   -.45280E-04
   9  Prefactor     .10000E-03    21.507        .98047E-07** at limit **
  10  Prefactor     9.5831        19.932       -.74109E-06   -.59120E-05
  11  norm          2.7829        1.3429        .39764E-08    .20281E-04
  12  Prefactor     3.9792        7.4385       -.14168E-06   -.29102E-04
  13  Prefactor     5.6347        7.0939       -.42654E-07   -.31012E-06
  14  Prefactor     .10000E-03    1.9950        .27767E-08** at limit **
  15  Prefactor     .10000E-03    12.152       -.32835E-07** at limit **
  16  norm          1.9349        1.0213        .12212E-07   -.18899E-03
  17  Prefactor     3.7217        9.6200        .23947E-06   -.19771E-03
  18  Prefactor     .10000E-03    8.5463        .10527E-07** at limit **
  19  norm          5.3370        4.2363       -.26704E-06   -.36175E-04
  20  Prefactor     26.252        17.609        .30038E-08    .64578E-06
  21  Normalizat    .70316        .19039       -.32628E-06   -.11156E-04
  22  Prefactor     1.1084        .84056E-01    .74809E-07   -.15115E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.02484
  norm       = 1.24285
  Prefactor  = 9.15407
  Prefactor  = 25.9979
  norm       = 2.25524
  Prefactor  = 0.0001
  Prefactor  = 10.388
  norm       = 1.69136
  Prefactor  = 0.0001
  Prefactor  = 9.58307
  norm       = 2.78287
  Prefactor  = 3.97918
  Prefactor  = 5.63471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.93487
  Prefactor  = 3.72172
  Prefactor  = 0.0001
  norm       = 5.33701
  Prefactor  = 26.2521
  Normalizat = 0.703163
  Prefactor  = 1.10835
 **********
 **   18 **HESSE 
 **********

 FCN=   14382.21     FROM HESSE     STATUS=OK           354 CALLS     2389 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0248        7.3076        .50722E-03   -1.5506    
   2  norm          1.2429        .80687        .82801E-04   -1.5485    
   3  Prefactor     9.1541        24.817        .13247E-03   -1.5103    
   4  Prefactor     25.998        13.660        .78567E-04   -1.4688    
   5  norm          2.2552        4.5911        .27359E-03   -1.5408    
   6  Prefactor     .10000E-03    65.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.388        8.5112        .62154E-03   -1.5063    
   8  norm          1.6914        1.0253        .83789E-04   -1.5448    
   9  Prefactor     .10000E-03    21.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.5831        19.788        .12944E-03   -1.5089    
  11  norm          2.7829        1.3427        .92540E-04   -1.5374    
  12  Prefactor     3.9792        7.4305        .20221E-03   -1.5309    
  13  Prefactor     5.6347        7.0920        .16923E-03   -1.5233    
  14  Prefactor     .10000E-03    1.9996        .16541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.9349        1.0267        .14927E-03   -1.5430    
  17  Prefactor     3.7217        17.054        .10463E-02   -1.5322    
  18  Prefactor     .10000E-03    8.5665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.3370        4.2239        .17397E-03   -1.5246    
  20  Prefactor     26.252        17.548        .78180E-04   -1.4683    
  21  Normalizat    .70316        .20975        .45546E-03   -1.0377    
  22  Prefactor     1.1084        .92808E-01    .17206E-03   -.89200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00478e-10
Minuit parameter uncertainties:
  1  5.47393
  2  0.806876
  3  24.8449
  4  13.662
  5  4.59181
  6  1.1557e-05
  7  8.51218
  8  1.02535
  9  8.75598e-07
  10  19.8016
  11  1.34272
  12  7.43222
  13  7.09306
  14  2.67745e-07
  15  3.79558e-07
  16  1.02674
  17  15.9409
  18  1.77932e-06
  19  4.22417
  20  17.551
  21  0.20999
  22  0.0928219
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.691e+00  1.025e+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.108e+00  9.282e-02  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:  7.032e-01  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.44
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 5.43e-08 +/- 3.29e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.33e-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) = 14381.2719362
delta logL = 0.933624991907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14381.2597722
delta logL = 0.945788904683

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1307       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2079       1.0000          .0000       5.0000    
     3 'Normalizat'    .59846       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1407       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=   14381.26     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      244 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1299        4.5151        .10983E-01    .16498E-02
   2  alpha         3.2086        3.8807        .41783        .11875E-03
   3  Normalizat    .59854        .49226E-01    .11086        .92318E-04
   4  Prefactor     1.1407        .21866E-01    .36210E-01   -.13818E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.12989
  alpha      = 3.20858
  Normalizat = 0.598544
  Prefactor  = 1.1407
 **********
 **   18 **HESSE 
 **********

 FCN=   14381.26     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1299        2.5036        .53166E-04   -1.5495    
   2  alpha         3.2086        1.8336        .15630E-01    .28737    
   3  Normalizat    .59854        .24267        .49150E-03   -1.0805    
   4  Prefactor     1.1407        .10661        .16995E-03   -.88176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68438e-10
Minuit parameter uncertainties:
  1  2.50382
  2  2.0876
  3  0.243104
  4  0.106627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395165': 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) = 14381.2597717
delta logL = 0.945789438219

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.130e+00  2.504e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  3.209e+00  2.088e+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:  1.141e+00  1.066e-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:  5.985e-01  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.79
Ra Dec: 339.096 28.483
Photon Index (Free Index): 3.21 +/- 2.09
Photon Flux (Free Index): 1.16e-07 +/- 7.39e-08
Energy Flux (Free Index): 2.20e-05 +/- 1.19e-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/395165/cmap_HighResolution_249955201_250214401_4FGL_J2236.3+2828_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.43e-08', energy_flux2='2.20e-05', photon_flux_error='3.29e-08', dlogl='9.46e-01', energy_flux='2.20e-05', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-28 16:47:29.010935', photon_index_error2='2.09', photon_index2='3.21', ts='5.44', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.19e-05', EG='0.70', time_epoch_completed='1632872849.01', return_code='0', job_id='395165', GAL2='1.14', EG2='0.60', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='7.39e-08', ts2='7.79', photon_index='2.15' WHERE bin_id='41' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:47:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 395165: <4FGL_J2236.3+2828_daily_bin41> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin41> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:30:56 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:30:57 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:57 2021
Terminated at Tue Sep 28 16:47:29 2021
Results reported at Tue Sep 28 16:47:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin41 339.096 28.4832 249955201 250214401 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 :                                   834.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            993 sec.

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

