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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin141
RA = 339.096, Dec = 28.4832
tmin = 275875201, tmax = 276134401
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='395315', job_status='RUN', time_executed='2021-09-28 16:31:24.040579', time_epoch_executed='1632871884.04' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395315

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395315/ft1_4FGL_J2236.3+2828_daily_bin141.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395315/ft2_4FGL_J2236.3+2828_daily_bin141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395315/ft1_4FGL_J2236.3+2828_daily_bin141.fits outfile=/scratch/kocevski/395315/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin141.fits ra=339.096 dec=28.4832 rad=12.0 tmin=275875201.0 tmax=276134401.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.23
user 2.99
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395315/ft1_filtered_4FGL_J2236.3+2828_daily_bin141.fits evtable="EVENTS" scfile=/scratch/kocevski/395315/ft2_4FGL_J2236.3+2828_daily_bin141.fits sctable="SC_DATA" expcube=/scratch/kocevski/395315/ltcube_275875201_276134401_4FGL_J2236.3+2828_daily_bin141.fits outfile=/scratch/kocevski/395315/expmap_275875201_276134401_4FGL_J2236.3+2828_daily_bin141.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/395315/ltcube_275875201_276134401_4FGL_J2236.3+2828_daily_bin141.fits
.....................!
real 193.92
user 187.99
sys 5.56

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/395315/ft1_filtered_4FGL_J2236.3+2828_daily_bin141.fits scfile=/scratch/kocevski/395315/ft2_4FGL_J2236.3+2828_daily_bin141.fits outfile=/scratch/kocevski/395315/cmap_275875201_276134401_4FGL_J2236.3+2828_daily_bin141.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395315/ft1_filtered_4FGL_J2236.3+2828_daily_bin141.fits scfile=/scratch/kocevski/395315/ft2_4FGL_J2236.3+2828_daily_bin141.fits outfile=/scratch/kocevski/395315/cmap_HighResolution_275875201_276134401_4FGL_J2236.3+2828_daily_bin141.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=339.096 yref=28.4832 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33260E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3273       1.0000         .10000E-03   10000.    
     3 'Prefactor '    73.831       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0108       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    78.111       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.213       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4344       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12434E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.070       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2423       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.8001       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0797       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0376       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=   9052.360     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2314 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.453       -.31138E-04** at limit **
   2  norm          1.3277        .95085       -.37696E-06   -.29888E-03
   3  Prefactor     73.844        60.186       -.42472E-05   -.26184E-05
   4  Prefactor     9.0163        12.349       -.42827E-06    .32096E-04
   5  norm          .10000E-03    2.8773       -.41989E-07** at limit **
   6  Prefactor     78.115        88.059       -.13965E-05    .11914E-04
   7  Prefactor     .10000E-03    13.311        .14670E-06** at limit **
   8  norm          .10000E-03    .33155       -.33060E-07** at limit **
   9  Prefactor     52.204        46.760        .30431E-05    .14577E-04
  10  Prefactor     .10000E-03    7.4985       -.11336E-05** at limit **
  11  norm          1.4368        2.2972       -.16409E-05    .13938E-03
  12  Prefactor     .10000E-03    22.704        .14964E-05** at limit **
  13  Prefactor     .10000E-03    14.311       -.18443E-05** at limit **
  14  Prefactor     11.073        9.7151       -.17034E-07    .31306E-04
  15  Prefactor     .10000E-03    7.5695       -.18756E-05** at limit **
  16  norm          2.2417        1.3883       -.14972E-06    .22725E-04
  17  Prefactor     9.7995        22.352       -.67102E-07   -.10058E-05
  18  Prefactor     .10000E-03    10.863        .20403E-05** at limit **
  19  norm          .10000E-03    2.3079        .48637E-07** at limit **
  20  Prefactor     .10000E-03    7.2200        .23893E-05** at limit **
  21  Normalizat    1.0797        .22896        .93158E-06    .54205E-04
  22  Prefactor     1.0376        .10373        .16658E-06    .96122E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.32772
  Prefactor  = 73.8437
  Prefactor  = 9.0163
  norm       = 0.0001
  Prefactor  = 78.115
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 52.2044
  Prefactor  = 0.0001
  norm       = 1.43675
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 11.0731
  Prefactor  = 0.0001
  norm       = 2.24167
  Prefactor  = 9.79949
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07971
  Prefactor  = 1.03762
 **********
 **   18 **HESSE 
 **********

 FCN=   9052.360     FROM HESSE     STATUS=OK           340 CALLS     2654 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    58.641        .37814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3277        .92889        .74236E-04   -1.5478    
   3  Prefactor     73.844        60.461        .46726E-04   -1.3987    
   4  Prefactor     9.0163        12.347        .13352E-03   -1.5107    
   5  norm          .10000E-03    2.9289        .15760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     78.115        88.083        .45438E-04   -1.3938    
   7  Prefactor     .10000E-03    13.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .33725        .53452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     52.204        46.944        .27752E-03   -1.4262    
  10  Prefactor     .10000E-03    7.5239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4368        2.3287        .18052E-03   -1.5468    
  12  Prefactor     .10000E-03    23.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.073        9.7155        .12041E-03   -1.5042    
  15  Prefactor     .10000E-03    7.6044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2417        1.3839        .84939E-04   -1.5409    
  17  Prefactor     9.7995        22.359        .12801E-03   -1.5082    
  18  Prefactor     .10000E-03    10.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.3393        .14112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.2749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0797        .26216        .39337E-03   -.90406    
  22  Prefactor     1.0376        .11962        .18328E-03   -.91486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19004e-10
Minuit parameter uncertainties:
  1  3.99497e-05
  2  0.928901
  3  60.5114
  4  12.3509
  5  1.9509e-06
  6  88.2306
  7  3.17626e-05
  8  1.01889e-06
  9  46.9776
  10  1.23532e-05
  11  2.32881
  12  0.000415427
  13  2.31114e-05
  14  9.71692
  15  8.86973e-06
  16  1.38395
  17  22.378
  18  1.89602e-05
  19  1.20621e-05
  20  2.73469e-05
  21  0.262475
  22  0.119654
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.000e-04  1.019e-06  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.038e+00  1.197e-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.080e+00  2.625e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/395315/likelihoodResults_275875201_276134401_4FGL_J2236.3+2828_daily_bin141.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9052.36032166
delta logL = -0.000423119521656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9052.35989926
delta logL = -7.24547135178e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3321       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0804       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0375       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9052.360     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      271 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .35700        .10841E-03** at limit **
   2  alpha         2.5885        3.4934        .16508        .18939E-06
   3  Normalizat    1.0797        .25667        .39337E-03   -.62970E-03
   4  Prefactor     1.0376        .11843        .18328E-03   -.13876E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.58851
  Normalizat = 1.07971
  Prefactor  = 1.03762
 **********
 **   18 **HESSE 
 **********

 FCN=   9052.360     FROM HESSE     STATUS=OK            23 CALLS      294 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .35566        .21682E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5885        3.7708        .66031E-02    .35412E-01
   3  Normalizat    1.0797        .25683        .78674E-04   -.90406    
   4  Prefactor     1.0376        .11850        .36657E-04   -.91486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.34209e-10
Minuit parameter uncertainties:
  1  6.13429e-06
  2  114.385
  3  0.257132
  4  0.118533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395315': 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) = 9052.35989087
delta logL = 7.66995799495e-06

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.000e-04  6.134e-06  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.589e+00  1.144e+02  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.038e+00  1.185e-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.080e+00  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 339.096 28.483

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/395315/cmap_HighResolution_275875201_276134401_4FGL_J2236.3+2828_daily_bin141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.17e-05', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2021-09-28 16:44:06.129406', job_id='395315', GAL2='1.04', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632872646.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='7.67e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='141' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:44:06 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin141 339.096 28.4832 275875201 276134401 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 :                                   761.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             344.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            775 sec.

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

