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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1006
RA = 339.096, Dec = 28.4832
tmin = 500083201, tmax = 500342401
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='399791', job_status='RUN', time_executed='2021-09-28 16:48:23.019008', time_epoch_executed='1632872903.02' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399791

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399791/ft1_4FGL_J2236.3+2828_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399791/ft2_4FGL_J2236.3+2828_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399791/ft1_4FGL_J2236.3+2828_daily_bin1006.fits outfile=/scratch/kocevski/399791/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1006.fits ra=339.096 dec=28.4832 rad=12.0 tmin=500083201.0 tmax=500342401.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 4.37
user 4.10
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/399791/ft2_4FGL_J2236.3+2828_daily_bin1006.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/399791/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1006.fits evtable="EVENTS" outfile="/scratch/kocevski/399791/ft1_filtered_4FGL_J2236.3+2828_daily_bin1006.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.41
user 0.27
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/399791/ft1_filtered_4FGL_J2236.3+2828_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/399791/ft2_4FGL_J2236.3+2828_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/399791/ltcube_500083201_500342401_4FGL_J2236.3+2828_daily_bin1006.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/399791/ft2_4FGL_J2236.3+2828_daily_bin1006.fits
.....................!
real 9.44
user 9.13
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399791/ft1_filtered_4FGL_J2236.3+2828_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/399791/ft2_4FGL_J2236.3+2828_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/399791/ltcube_500083201_500342401_4FGL_J2236.3+2828_daily_bin1006.fits outfile=/scratch/kocevski/399791/expmap_500083201_500342401_4FGL_J2236.3+2828_daily_bin1006.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/399791/ltcube_500083201_500342401_4FGL_J2236.3+2828_daily_bin1006.fits
.....................!
real 147.75
user 143.43
sys 4.09

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/399791/ft1_filtered_4FGL_J2236.3+2828_daily_bin1006.fits scfile=/scratch/kocevski/399791/ft2_4FGL_J2236.3+2828_daily_bin1006.fits outfile=/scratch/kocevski/399791/cmap_500083201_500342401_4FGL_J2236.3+2828_daily_bin1006.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.45
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399791/ft1_filtered_4FGL_J2236.3+2828_daily_bin1006.fits scfile=/scratch/kocevski/399791/ft2_4FGL_J2236.3+2828_daily_bin1006.fits outfile=/scratch/kocevski/399791/cmap_HighResolution_500083201_500342401_4FGL_J2236.3+2828_daily_bin1006.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.46
user 0.31
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.081       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6737       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1593       1.0000         .10000E-03   10000.    
     8 'norm      '    .11138E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.4336       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.753       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.268       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4524       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.227       1.0000         .10000E-03   10000.    
    19 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6527       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2034       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91578       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=   5059.696     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2374 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0495        .10509E-07** at limit **
   2  norm          .10000E-03    .47939        .73126E-07** at limit **
   3  Prefactor     11.080        36.437        .11918E-06   -.20429E-05
   4  Prefactor     4.6748        17.354       -.64146E-06   -.22448E-04
   5  norm          .10000E-03    2.7759       -.80571E-07** at limit **
   6  Prefactor     .10000E-03    55.785        .10102E-05** at limit **
   7  Prefactor     5.1616        22.909        .86899E-05   -.31275E-04
   8  norm          .10000E-03    .92548        .66712E-07** at limit **
   9  Prefactor     .10000E-03    88.500       -.11248E-05** at limit **
  10  Prefactor     .10000E-03    34.116       -.30600E-08** at limit **
  11  norm          2.4339        2.3552       -.48809E-07   -.14719E-04
  12  Prefactor     26.756        23.048       -.56369E-07   -.81398E-05
  13  Prefactor     .10000E-03    14.349        .44949E-07** at limit **
  14  Prefactor     23.269        19.508        .65808E-07   -.95440E-05
  15  Prefactor     .10000E-03    10.447       -.13084E-07** at limit **
  16  norm          1.4528        1.7845        .16977E-06    .13555E-05
  17  Prefactor     .10000E-03    32.911        .41358E-07** at limit **
  18  Prefactor     45.237        41.918        .80317E-07    .21035E-04
  19  norm          .10000E-03    8.1041       -.14588E-06** at limit **
  20  Prefactor     4.6469        25.569        .95547E-06   -.19041E-05
  21  Normalizat    1.2029        .31862       -.21498E-05   -.17822E-04
  22  Prefactor     .91592        .13086        .13485E-06   -.13287E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.0805
  Prefactor  = 4.67482
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 5.16165
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 2.43386
  Prefactor  = 26.7556
  Prefactor  = 0.0001
  Prefactor  = 23.2689
  Prefactor  = 0.0001
  norm       = 1.45275
  Prefactor  = 0.0001
  Prefactor  = 45.2365
  norm       = 0.0001
  Prefactor  = 4.64693
  Normalizat = 1.2029
  Prefactor  = 0.915925
 **********
 **   18 **HESSE 
 **********

 FCN=   5059.696     FROM HESSE     STATUS=OK           344 CALLS     2718 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0519        .12131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .74970        .95229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.080        36.457        .12035E-03   -1.5042    
   4  Prefactor     4.6748        17.327        .18615E-03   -1.5276    
   5  norm          .10000E-03    2.7862        .11576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    55.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.1616        23.000        .88495E-03   -1.5254    
   8  norm          .10000E-03    6.1913        .13154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    88.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    34.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4339        2.3614        .10334E-03   -1.5396    
  12  Prefactor     26.756        23.030        .77452E-04   -1.4673    
  13  Prefactor     .10000E-03    14.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.269        19.520        .83040E-04   -1.4743    
  15  Prefactor     .10000E-03    10.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4528        1.7631        .10100E-03   -1.5467    
  17  Prefactor     .10000E-03    33.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     45.237        41.886        .59618E-04   -1.4362    
  19  norm          .10000E-03    8.1721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.6469        25.252        .18658E-03   -1.5277    
  21  Normalizat    1.2029        .37362        .37347E-03   -.86513    
  22  Prefactor     .91592        .15581        .18421E-03   -.95587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32885e-10
Minuit parameter uncertainties:
  1  1.29492e-06
  2  3.94573e-06
  3  36.5304
  4  17.3457
  5  6.36065e-06
  6  0.000742373
  7  21.8052
  8  5.38785e-06
  9  0.00103565
  10  5.56831e-07
  11  2.36147
  12  23.0381
  13  1.57069e-05
  14  19.5249
  15  4.16366e-06
  16  1.76316
  17  0.000101959
  18  41.9133
  19  3.77393e-06
  20  21.6791
  21  0.37445
  22  0.155887
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.000e-04  5.388e-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:  9.159e-01  1.559e-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.203e+00  3.744e-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: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.13e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/399791/likelihoodResults_500083201_500342401_4FGL_J2236.3+2828_daily_bin1006.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): 102
logL (Free Index) = 5059.69709789
delta logL = -0.000782530135439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5059.69631362
delta logL = 1.74326851266e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12026E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2432       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91604       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=   5059.696     FROM MIGRAD    STATUS=FAILED       116 CALLS      285 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17154E-03    1.1724        .14596E-01** at limit **
   2  alpha         3.5082        4.0311        .16572        .17504E-04
   3  Normalizat    1.2029        .98810E-02    .37347E-03    .18045E-02
   4  Prefactor     .91593        .43465E-02    .18421E-03    .23060E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5059.694     FROM SIMPLEX   STATUS=PROGRESS      95 CALLS      380 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63900E-01    1.1724        .21849E-03    .57456E-01
   2  alpha         2.9693        4.0311        .14908E-01    .17504E-04
   3  Normalizat    1.2016        .98810E-02    .15178E-04    .18045E-02
   4  Prefactor     .91537        .43465E-02    .81658E-05    .23060E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5059.694     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      450 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65449E-01    187.48        .11844E-02    .25442E-03
   2  alpha         2.9837        2.9835        .66287E-01   -.36342E-06
   3  Normalizat    1.1973        .43717        .74695E-04    .10654E-05
   4  Prefactor     .91703        .15581        .36842E-04    .41349E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0654489
  alpha      = 2.98368
  Normalizat = 1.19726
  Prefactor  = 0.917033
 **********
 **   18 **HESSE 
 **********

 FCN=   5059.694     FROM HESSE     STATUS=OK            27 CALLS      477 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65449E-01    4.3897        .47377E-04   -1.5657    
   2  alpha         2.9837        3.3502        .26515E-02    .19470    
   3  Normalizat    1.1973        .35962        .14939E-04   -.86687    
   4  Prefactor     .91703        .15473        .73685E-05   -.95548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65614e-11
Minuit parameter uncertainties:
  1  1.07127
  2  6.93651
  3  0.360361
  4  0.154807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399791': 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) = 5059.69412468
delta logL = 0.00219067906801

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  6.545e-02  1.071e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.984e+00  6.937e+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:  9.170e-01  1.548e-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.197e+00  3.604e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/399791/cmap_HighResolution_500083201_500342401_4FGL_J2236.3+2828_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-05', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-28 16:56:01.101667', job_id='399791', GAL2='0.92', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1632873361.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.19e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1006' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:56:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 399791: <4FGL_J2236.3+2828_daily_bin1006> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin1006> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 16:45:40 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:45:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:45:41 2021
Terminated at Tue Sep 28 16:56:01 2021
Results reported at Tue Sep 28 16:56:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1006 339.096 28.4832 500083201 500342401 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 :                                   455.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             269.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            621 sec.

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

