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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1138
RA = 339.096, Dec = 28.4832
tmin = 534297601, tmax = 534556801
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='401023', job_status='RUN', time_executed='2021-09-28 16:53:07.517853', time_epoch_executed='1632873187.52' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401023

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401023/ft1_4FGL_J2236.3+2828_daily_bin1138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401023/ft2_4FGL_J2236.3+2828_daily_bin1138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401023/ft1_4FGL_J2236.3+2828_daily_bin1138.fits outfile=/scratch/kocevski/401023/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1138.fits ra=339.096 dec=28.4832 rad=12.0 tmin=534297601.0 tmax=534556801.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.51
user 3.28
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/401023/ft2_4FGL_J2236.3+2828_daily_bin1138.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/401023/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1138.fits evtable="EVENTS" outfile="/scratch/kocevski/401023/ft1_filtered_4FGL_J2236.3+2828_daily_bin1138.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/401023/ft1_filtered_4FGL_J2236.3+2828_daily_bin1138.fits" evtable="EVENTS" scfile=/scratch/kocevski/401023/ft2_4FGL_J2236.3+2828_daily_bin1138.fits sctable="SC_DATA" outfile=/scratch/kocevski/401023/ltcube_534297601_534556801_4FGL_J2236.3+2828_daily_bin1138.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/401023/ft2_4FGL_J2236.3+2828_daily_bin1138.fits
.....................!
real 11.87
user 11.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401023/ft1_filtered_4FGL_J2236.3+2828_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/401023/ft2_4FGL_J2236.3+2828_daily_bin1138.fits sctable="SC_DATA" expcube=/scratch/kocevski/401023/ltcube_534297601_534556801_4FGL_J2236.3+2828_daily_bin1138.fits outfile=/scratch/kocevski/401023/expmap_534297601_534556801_4FGL_J2236.3+2828_daily_bin1138.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/401023/ltcube_534297601_534556801_4FGL_J2236.3+2828_daily_bin1138.fits
.....................!
real 189.94
user 184.98
sys 4.59

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/401023/ft1_filtered_4FGL_J2236.3+2828_daily_bin1138.fits scfile=/scratch/kocevski/401023/ft2_4FGL_J2236.3+2828_daily_bin1138.fits outfile=/scratch/kocevski/401023/cmap_534297601_534556801_4FGL_J2236.3+2828_daily_bin1138.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/401023/ft1_filtered_4FGL_J2236.3+2828_daily_bin1138.fits scfile=/scratch/kocevski/401023/ft2_4FGL_J2236.3+2828_daily_bin1138.fits outfile=/scratch/kocevski/401023/cmap_HighResolution_534297601_534556801_4FGL_J2236.3+2828_daily_bin1138.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5445       1.0000         .10000E-03   10000.    
     2 'norm      '    .10249E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4474       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.9680       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.888       1.0000         .10000E-03   10000.    
    16 'norm      '    .62182       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.5328       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3852       1.0000         .10000E-03   10000.    
    19 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    45.654       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84888       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97064       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=   8921.973     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2395 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5467        11.756        .47211E-02    .57227E-03
   2  norm          .10000E-03    .50041        .22322E-01** at limit **
   3  Prefactor     .10001E-03    14.414        .90712E-02** at limit **
   4  Prefactor     .10000E-03    3.9807        .90712E-02** at limit **
   5  norm          .10000E-03    1.5998        .90712E-02** at limit **
   6  Prefactor     .10000E-03    21.517        .90712E-02** at limit **
   7  Prefactor     .10000E-03    9.4862        .90712E-02** at limit **
   8  norm          3.4478        1.2955        .54457E-02    .12306E-03
   9  Prefactor     .10000E-03    170.46        .90712E-02** at limit **
  10  Prefactor     .10003E-03    13.970        .90712E-02** at limit **
  11  norm          2.9679        1.6235        .58923E-02   -.10645E-03
  12  Prefactor     .10001E-03    14.095        .90712E-02** at limit **
  13  Prefactor     .10000E-03    17.335        .90712E-02** at limit **
  14  Prefactor     .10000E-03    3.4852        .90712E-02** at limit **
  15  Prefactor     14.884        22.533        .25951E-02   -.64386E-03
  16  norm          .62232        1.1730        .27177E-01    .15664E-02
  17  Prefactor     7.5293        30.044        .36530E-02   -.35646E-04
  18  Prefactor     6.3826        30.252        .39710E-02   -.34694E-03
  19  norm          .10000E-03    2.7475        .90712E-02** at limit **
  20  Prefactor     45.649        25.079        .14835E-02   -.11927E-02
  21  Normalizat    .84863        .21959        .91854E-01    .35742E-04
  22  Prefactor     .97074        .94127E-01    .45899E-01   -.53308E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.5467
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.44783
  Prefactor  = 0.000100002
  Prefactor  = 0.000100028
  norm       = 2.96794
  Prefactor  = 0.000100011
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 14.8844
  norm       = 0.622324
  Prefactor  = 7.52931
  Prefactor  = 6.38259
  norm       = 0.0001
  Prefactor  = 45.6494
  Normalizat = 0.848626
  Prefactor  = 0.970744
 **********
 **   18 **HESSE 
 **********

 FCN=   8921.973     FROM HESSE     STATUS=OK           340 CALLS     2735 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5467        11.581        .18884E-03   -1.5281    
   2  norm          .10000E-03    1.0813        .12650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    14.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.6053        .11667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.5616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4478        1.2948        .63077E-04   -1.5337    
   9  Prefactor     .10000E-03    171.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    14.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9679        1.6239        .86646E-04   -1.5363    
  12  Prefactor     .10001E-03    14.434        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.4886        .17220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.884        22.510        .10380E-03   -1.4936    
  16  norm          .62232        .98892        .13272E-02   -1.5550    
  17  Prefactor     7.5293        30.101        .14612E-03   -1.5159    
  18  Prefactor     6.3826        30.057        .15884E-03   -1.5203    
  19  norm          .10000E-03    2.7566        .15264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     45.649        24.913        .59339E-04   -1.4356    
  21  Normalizat    .84863        .25206        .40688E-03   -.98290    
  22  Prefactor     .97074        .10946        .17027E-03   -.93711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50827e-08
Minuit parameter uncertainties:
  1  11.587
  2  1.73791e-07
  3  0.000737652
  4  2.11415e-07
  5  2.71475e-07
  6  0.000126187
  7  5.0147e-06
  8  1.29477
  9  0.0011129
  10  0.00125031
  11  1.62395
  12  0.000783104
  13  0.000405964
  14  1.15445e-07
  15  22.5224
  16  0.988941
  17  30.1356
  18  27.7239
  19  2.9639e-08
  20  24.9182
  21  0.252407
  22  0.109483
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  3.448e+00  1.295e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.146e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  1.046e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.707e-01  1.095e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  8.486e-01  2.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.20
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 4.15e-08
Energy Flux (Fixed Index): 4.48e-05 +/- 1.68e-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) = 8921.92110744
delta logL = 0.0515609425584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8921.91872616
delta logL = 0.0539422210022

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3858       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0227       1.0000          .0000       5.0000    
     3 'Normalizat'    .86274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96750       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=   8921.919     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3857        1.4947        .54973E-02    .14618E-02
   2  alpha         2.0226        .38691        .30612       -.23035E-04
   3  Normalizat    .86279        .21030        .91177E-01   -.28175E-03
   4  Prefactor     .96749        .92861E-01    .45860E-01   -.36944E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.38568
  alpha      = 2.02264
  Normalizat = 0.862794
  Prefactor  = 0.967488
 **********
 **   18 **HESSE 
 **********

 FCN=   8921.919     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3857        1.3279        .64136E-04   -1.5340    
   2  alpha         2.0226        .37304        .12389E-01   -.19212    
   3  Normalizat    .86279        .24325        .40386E-03   -.97780    
   4  Prefactor     .96749        .10736        .17054E-03   -.93821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5459e-10
Minuit parameter uncertainties:
  1  1.32793
  2  0.374493
  3  0.243558
  4  0.107379
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401023': 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) = 8921.91872613
delta logL = 0.0539422496131

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  3.386e+00  1.328e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.023e+00  3.745e-01  0.000e+00  5.000e+00 ( 1.000e+00)
288         beta:  1.046e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.675e-01  1.074e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  8.628e-01  2.436e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.22
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.02 +/- 0.37
Photon Flux (Free Index): 9.83e-08 +/- 5.24e-08
Energy Flux (Free Index): 4.71e-05 +/- 1.99e-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/401023/cmap_HighResolution_534297601_534556801_4FGL_J2236.3+2828_daily_bin1138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='4.71e-05', photon_flux_error='4.15e-08', dlogl='5.39e-02', energy_flux='4.48e-05', photon_flux2='9.83e-08', job_status='DONE', time_completed='2021-09-28 17:04:11.574277', photon_index_error2='0.37', photon_index2='2.02', ts='24.20', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.99e-05', EG='0.85', time_epoch_completed='1632873851.57', return_code='0', job_id='401023', GAL2='0.97', EG2='0.86', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='5.24e-08', ts2='24.22', photon_index='2.15' WHERE bin_id='1138' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:04:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 401023: <4FGL_J2236.3+2828_daily_bin1138> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1138 339.096 28.4832 534297601 534556801 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 :                                   662.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            835 sec.

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

