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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1503
RA = 339.096, Dec = 28.4832
tmin = 628905601, tmax = 629164801
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='401553', job_status='RUN', time_executed='2021-09-28 16:52:59.487537', time_epoch_executed='1632873179.49' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401553

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401553/ft1_4FGL_J2236.3+2828_daily_bin1503.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401553/ft2_4FGL_J2236.3+2828_daily_bin1503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401553/ft1_4FGL_J2236.3+2828_daily_bin1503.fits outfile=/scratch/kocevski/401553/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1503.fits ra=339.096 dec=28.4832 rad=12.0 tmin=628905601.0 tmax=629164801.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.54
user 3.29
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401553/ft1_filtered_4FGL_J2236.3+2828_daily_bin1503.fits" evtable="EVENTS" scfile=/scratch/kocevski/401553/ft2_4FGL_J2236.3+2828_daily_bin1503.fits sctable="SC_DATA" outfile=/scratch/kocevski/401553/ltcube_628905601_629164801_4FGL_J2236.3+2828_daily_bin1503.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/401553/ft2_4FGL_J2236.3+2828_daily_bin1503.fits
.....................!
real 12.23
user 11.88
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401553/ft1_filtered_4FGL_J2236.3+2828_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/401553/ft2_4FGL_J2236.3+2828_daily_bin1503.fits sctable="SC_DATA" expcube=/scratch/kocevski/401553/ltcube_628905601_629164801_4FGL_J2236.3+2828_daily_bin1503.fits outfile=/scratch/kocevski/401553/expmap_628905601_629164801_4FGL_J2236.3+2828_daily_bin1503.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/401553/ltcube_628905601_629164801_4FGL_J2236.3+2828_daily_bin1503.fits
.....................!
real 190.44
user 185.09
sys 4.96

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/401553/ft1_filtered_4FGL_J2236.3+2828_daily_bin1503.fits scfile=/scratch/kocevski/401553/ft2_4FGL_J2236.3+2828_daily_bin1503.fits outfile=/scratch/kocevski/401553/cmap_628905601_629164801_4FGL_J2236.3+2828_daily_bin1503.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401553/ft1_filtered_4FGL_J2236.3+2828_daily_bin1503.fits scfile=/scratch/kocevski/401553/ft2_4FGL_J2236.3+2828_daily_bin1503.fits outfile=/scratch/kocevski/401553/cmap_HighResolution_628905601_629164801_4FGL_J2236.3+2828_daily_bin1503.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/401553/ft1_filtered_4FGL_J2236.3+2828_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/401553/ft2_4FGL_J2236.3+2828_daily_bin1503.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/401553/Model_4FGL_J2236.3+2828_daily_bin1503.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/401553/ft1_filtered_4FGL_J2236.3+2828_daily_bin1503.fits....................!
real 97.04
user 95.49
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.475       1.0000         .10000E-03   10000.    
     2 'norm      '    .61736       1.0000         .10000E-03   10000.    
     3 'Prefactor '    175.39       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.435       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11689E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4113       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.8834       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.163       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0183       1.0000         .10000E-03   10000.    
    19 'norm      '    .10356E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.354       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3617       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77898       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=   9123.219     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2379 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.474        9.9832        .24479E-05    .72773E-04
   2  norm          .61759        .68880       -.26170E-06   -.20168E-02
   3  Prefactor     175.42        72.328        .20579E-04    .35597E-04
   4  Prefactor     17.433        14.385        .41130E-05    .42196E-03
   5  norm          .10000E-03    2.6107       -.11743E-06** at limit **
   6  Prefactor     .10004E-03    342.46       -.31316E-03** at limit **
   7  Prefactor     .10000E-03    10.639       -.12092E-05** at limit **
   8  norm          .10000E-03    .38206        .13987E-07** at limit **
   9  Prefactor     1.4124        652.45        .72379E-05   -.11415E-04
  10  Prefactor     .10000E-03    4.3495        .31822E-06** at limit **
  11  norm          1.8834        1.2923        .15263E-07    .31388E-03
  12  Prefactor     .10000E-03    3.6817       -.29965E-07** at limit **
  13  Prefactor     .10000E-03    7.9945        .94766E-06** at limit **
  14  Prefactor     .10000E-03    6.2423        .26597E-05** at limit **
  15  Prefactor     .10000E-03    6.1337       -.26476E-05** at limit **
  16  norm          .10000E-03    .26994        .12361E-06** at limit **
  17  Prefactor     22.165        18.091       -.15564E-05    .22565E-04
  18  Prefactor     4.0181        15.905       -.52647E-05   -.24268E-04
  19  norm          .10000E-03    2.0245        .65170E-06** at limit **
  20  Prefactor     32.376        18.356       -.14444E-04   -.18263E-04
  21  Normalizat    1.3615        .20308        .25858E-05    .48969E-03
  22  Prefactor     .77901        .90625E-01   -.82158E-06    .10692E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.4736
  norm       = 0.617587
  Prefactor  = 175.421
  Prefactor  = 17.4332
  norm       = 0.0001
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.4124
  Prefactor  = 0.0001
  norm       = 1.88343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.1653
  Prefactor  = 4.01811
  norm       = 0.000100001
  Prefactor  = 32.3764
  Normalizat = 1.36153
  Prefactor  = 0.779009
 **********
 **   18 **HESSE 
 **********

 FCN=   9123.219     FROM HESSE     STATUS=OK           340 CALLS     2719 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.474        9.9331        .93180E-04   -1.4848    
   2  norm          .61759        .61482        .79445E-03   -1.5551    
   3  Prefactor     175.42        72.305        .15236E-03   -1.3051    
   4  Prefactor     17.433        14.419        .95919E-04   -1.4873    
   5  norm          .10000E-03    2.6802        .30141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10004E-03    343.55        .20656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .64301        .11447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4124        671.01        .36464E-03   -1.5470    
  10  Prefactor     .10000E-03    4.3513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8834        1.3008        .87726E-04   -1.5433    
  12  Prefactor     .10000E-03    3.7044        .17898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.0285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.2802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.1368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .27258        .48444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.165        18.122        .85082E-04   -1.4766    
  18  Prefactor     4.0181        15.886        .20118E-03   -1.5307    
  19  norm          .10000E-03    2.0352        .13260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.376        18.409        .70446E-04   -1.4569    
  21  Normalizat    1.3615        .23843        .32183E-03   -.81748    
  22  Prefactor     .77901        .10634        .18503E-03   -1.0051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87445e-09
Minuit parameter uncertainties:
  1  9.934
  2  0.614822
  3  72.3414
  4  14.4218
  5  1.14187e-05
  6  0.00765061
  7  0.000101558
  8  4.0054e-06
  9  62.2833
  10  1.00131e-06
  11  1.30081
  12  2.7384e-06
  13  8.56887e-07
  14  2.31529e-06
  15  3.41163e-06
  16  4.2586e-06
  17  18.1264
  18  15.9024
  19  9.92718e-05
  20  18.4122
  21  0.238627
  22  0.106371
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.000e-04  4.005e-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:  7.790e-01  1.064e-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.362e+00  2.386e-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.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/401553/likelihoodResults_628905601_629164801_4FGL_J2236.3+2828_daily_bin1503.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) = 9123.22644139
delta logL = -0.00742641888792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9123.21901781
delta logL = -2.84162160824e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10206E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1396       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3616       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77905       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9123.219     FROM MIGRAD    STATUS=FAILED        96 CALLS      255 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    139.48        .11460E-02** at limit **
   2  alpha         2.0544        2.6196        .16682        .11498E-05
   3  Normalizat    1.3615        .13427        .32183E-03   -.17916E-02
   4  Prefactor     .77901        .60630E-01    .18503E-03   -.31955E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9123.219     FROM SIMPLEX   STATUS=UNCHANGED    182 CALLS      437 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    139.48        .12621E-03** at limit **
   2  alpha         2.0544        2.6196        .13511E-05    .11498E-05
   3  Normalizat    1.3615        .13427        .13649E-06   -.17916E-02
   4  Prefactor     .77901        .60630E-01    .46416E-07   -.31955E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9123.219     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      477 TOTAL
                     EDM=   .44E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .65232        .22920E-03** at limit **
   2  alpha         2.0522        2.9597        .66728E-02   -.20445E-07
   3  Normalizat    1.3615        .23025        .64366E-04    .11304E-05
   4  Prefactor     .77901        .10398        .37007E-04   -.63898E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.05224
  Normalizat = 1.36153
  Prefactor  = 0.779007
 **********
 **   18 **HESSE 
 **********

 FCN=   9123.219     FROM HESSE     STATUS=OK            23 CALLS      500 TOTAL
                     EDM=   .34E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .65229        .45841E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0522        3.0324        .26691E-03   -.18008    
   3  Normalizat    1.3615        .23026        .12873E-04   -.81748    
   4  Prefactor     .77901        .10398        .74014E-05   -1.0051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3659e-13
Minuit parameter uncertainties:
  1  2.11094e-07
  2  67.5017
  3  0.230438
  4  0.104009
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401553': 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) = 9123.21901404
delta logL = 9.32239345275e-07

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.000e-04  2.111e-07  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.052e+00  6.750e+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:  7.790e-01  1.040e-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.362e+00  2.304e-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/401553/cmap_HighResolution_628905601_629164801_4FGL_J2236.3+2828_daily_bin1503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.28e-05', job_status='DONE', photon_flux_upper_limit='5.63e-08', time_completed='2021-09-28 17:06:04.925550', job_id='401553', GAL2='0.78', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1632873964.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='9.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1503' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:06:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 401553: <4FGL_J2236.3+2828_daily_bin1503> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin1503> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 16:50:52 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:50:54 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:50:54 2021
Terminated at Tue Sep 28 17:06:05 2021
Results reported at Tue Sep 28 17:06:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1503 339.096 28.4832 628905601 629164801 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 :                                   776.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             302.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

