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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin48
RA = 339.096, Dec = 28.4832
tmin = 251769601, tmax = 252028801
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='395176', job_status='RUN', time_executed='2021-09-28 16:34:59.042186', time_epoch_executed='1632872099.04' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='48'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395176

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395176/ft1_4FGL_J2236.3+2828_daily_bin48.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395176/ft2_4FGL_J2236.3+2828_daily_bin48.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395176/ft1_4FGL_J2236.3+2828_daily_bin48.fits outfile=/scratch/kocevski/395176/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin48.fits ra=339.096 dec=28.4832 rad=12.0 tmin=251769601.0 tmax=252028801.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 2.15
user 1.93
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395176/ft2_4FGL_J2236.3+2828_daily_bin48.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/395176/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin48.fits evtable="EVENTS" outfile="/scratch/kocevski/395176/ft1_filtered_4FGL_J2236.3+2828_daily_bin48.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/395176/ft1_filtered_4FGL_J2236.3+2828_daily_bin48.fits" evtable="EVENTS" scfile=/scratch/kocevski/395176/ft2_4FGL_J2236.3+2828_daily_bin48.fits sctable="SC_DATA" outfile=/scratch/kocevski/395176/ltcube_251769601_252028801_4FGL_J2236.3+2828_daily_bin48.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/395176/ft2_4FGL_J2236.3+2828_daily_bin48.fits
.....................!
real 12.37
user 12.00
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395176/ft1_filtered_4FGL_J2236.3+2828_daily_bin48.fits evtable="EVENTS" scfile=/scratch/kocevski/395176/ft2_4FGL_J2236.3+2828_daily_bin48.fits sctable="SC_DATA" expcube=/scratch/kocevski/395176/ltcube_251769601_252028801_4FGL_J2236.3+2828_daily_bin48.fits outfile=/scratch/kocevski/395176/expmap_251769601_252028801_4FGL_J2236.3+2828_daily_bin48.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/395176/ltcube_251769601_252028801_4FGL_J2236.3+2828_daily_bin48.fits
.....................!
real 190.20
user 184.92
sys 4.90

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/395176/ft1_filtered_4FGL_J2236.3+2828_daily_bin48.fits scfile=/scratch/kocevski/395176/ft2_4FGL_J2236.3+2828_daily_bin48.fits outfile=/scratch/kocevski/395176/cmap_251769601_252028801_4FGL_J2236.3+2828_daily_bin48.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395176/ft1_filtered_4FGL_J2236.3+2828_daily_bin48.fits scfile=/scratch/kocevski/395176/ft2_4FGL_J2236.3+2828_daily_bin48.fits outfile=/scratch/kocevski/395176/cmap_HighResolution_251769601_252028801_4FGL_J2236.3+2828_daily_bin48.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.509       1.0000         .10000E-03   10000.    
     2 'norm      '    .21454       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.881       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0357       1.0000         .10000E-03   10000.    
     6 'Prefactor '    135.85       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.659       1.0000         .10000E-03   10000.    
     8 'norm      '    .94186E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7563       1.0000         .10000E-03   10000.    
    11 'norm      '    4.8677       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.217       1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.652       1.0000         .10000E-03   10000.    
    16 'norm      '    .68881       1.0000         .10000E-03   10000.    
    17 'Prefactor '    53.491       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.282       1.0000         .10000E-03   10000.    
    19 'norm      '    4.9088       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .73472E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .82094       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94430       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=   7617.611     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2433 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.506        10.472       -.20429E-05    .39034E-03
   2  norm          .21512        .64961       -.27950E-06   -.12655E-02
   3  Prefactor     .10000E-03    18.968       -.26683E-06** at limit **
   4  Prefactor     18.882        17.054       -.80558E-06    .27912E-04
   5  norm          2.0357        3.3118       -.20907E-06   -.30952E-03
   6  Prefactor     135.85        102.26        .46386E-05   -.46908E-04
   7  Prefactor     10.659        11.995       -.15416E-05    .41096E-04
   8  norm          .49708E-02    .44836       -.36373E-07   -.32616E-03
   9  Prefactor     .10000E-03    47.538        .55860E-07** at limit **
  10  Prefactor     4.7760        16.645       -.23190E-05   -.18526E-04
  11  norm          4.8675        2.0631        .37856E-08    .72453E-04
  12  Prefactor     .10000E-03    3.7575       -.34973E-07** at limit **
  13  Prefactor     .10000E-03    6.6278       -.44476E-07** at limit **
  14  Prefactor     11.217        12.470       -.74440E-06   -.14287E-04
  15  Prefactor     39.651        29.113       -.47154E-06    .26106E-04
  16  norm          .68895        1.3666       -.52761E-06   -.16535E-02
  17  Prefactor     53.489        29.461        .81007E-06   -.47332E-04
  18  Prefactor     22.263        29.579       -.12553E-04    .16484E-03
  19  norm          4.9041        5.3420       -.31228E-06   -.93892E-03
  20  Prefactor     .10000E-03    14.169        .26759E-05** at limit **
  21  Normalizat    .82093        .23200        .14229E-05   -.79485E-04
  22  Prefactor     .94430        .10042        .45635E-06   -.83828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.506
  norm       = 0.215122
  Prefactor  = 0.0001
  Prefactor  = 18.8822
  norm       = 2.03565
  Prefactor  = 135.852
  Prefactor  = 10.659
  norm       = 0.00497081
  Prefactor  = 0.0001
  Prefactor  = 4.77605
  norm       = 4.86748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2172
  Prefactor  = 39.6515
  norm       = 0.688951
  Prefactor  = 53.4887
  Prefactor  = 22.2625
  norm       = 4.90412
  Prefactor  = 0.000100005
  Normalizat = 0.820928
  Prefactor  = 0.944303
 **********
 **   18 **HESSE 
 **********

 FCN=   7617.611     FROM HESSE     STATUS=OK           356 CALLS     2789 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.506        10.305        .90681E-04   -1.4824    
   2  norm          .21512        .80944        .11476E-02   -1.5615    
   3  Prefactor     .10000E-03    18.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.882        17.045        .92175E-04   -1.4839    
   5  norm          2.0357        3.2931        .19728E-03   -1.5423    
   6  Prefactor     135.85        102.06        .34555E-04   -1.3372    
   7  Prefactor     10.659        12.007        .12272E-03   -1.5055    
   8  norm          .49708E-02    .74901        .20809E-01   -1.5694    
   9  Prefactor     .10000E-03    47.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.7760        16.695        .18449E-03   -1.5271    
  11  norm          4.8675        2.0631        .79500E-04   -1.5267    
  12  Prefactor     .10000E-03    3.7644        .16521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.6340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.217        12.468        .11962E-03   -1.5038    
  15  Prefactor     39.651        29.026        .63654E-04   -1.4448    
  16  norm          .68895        1.3486        .13714E-03   -1.5542    
  17  Prefactor     53.489        29.446        .54841E-04   -1.4244    
  18  Prefactor     22.263        29.210        .84854E-04   -1.4764    
  19  norm          4.9041        4.9957        .18154E-03   -1.5265    
  20  Prefactor     .10000E-03    76.424        .57765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .82093        .25961        .39117E-03   -.99297    
  22  Prefactor     .94430        .11541        .17021E-03   -.94610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83275e-09
Minuit parameter uncertainties:
  1  10.3064
  2  0.809484
  3  4.66337e-06
  4  17.049
  5  3.29338
  6  102.198
  7  12.0097
  8  0.120804
  9  2.71333e-05
  10  16.7111
  11  2.06313
  12  3.43434e-07
  13  1.45655e-06
  14  12.4704
  15  29.0361
  16  1.34868
  17  29.4542
  18  29.2286
  19  4.99612
  20  0.00117493
  21  0.260003
  22  0.115444
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  4.971e-03  1.208e-01  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.443e-01  1.154e-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.209e-01  2.600e-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: 6.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/395176/likelihoodResults_251769601_252028801_4FGL_J2236.3+2828_daily_bin48.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) = 7617.61098367
delta logL = 5.45696821064e-11

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7617.61098367
delta logL = 1.05501385406e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49708E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1458       1.0000          .0000       5.0000    
     3 'Normalizat'    .82093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94430       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=   7617.611     FROM MIGRAD    STATUS=FAILED       104 CALLS      285 TOTAL
                     EDM=   .73E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50534E-02    18.748        .20659E-01   -.20245E-02
   2  alpha         2.1866        3.1282        .50000       -.14385E-04
   3  Normalizat    .82091        .30067E-01    .39118E-03   -.93001E-04
   4  Prefactor     .94431        .14013E-01    .17021E-03    .11266E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7617.611     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      368 TOTAL
                     EDM=   .61E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50534E-02    18.748        .32490E-03   -.20245E-02
   2  alpha         2.1866        3.1282        .47444E-02   -.14385E-04
   3  Normalizat    .82091        .30067E-01    .39439E-04   -.93001E-04
   4  Prefactor     .94431        .14013E-01    .11129E-04    .11266E-03
                               ERR DEF=  .500    

 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=   7617.611     FROM MIGRAD    STATUS=FAILED        89 CALLS      457 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50563E-02    15.615        .22029E-01   -.20309E-02
   2  alpha         2.1862        3.8126        .50000       -.16314E-04
   3  Normalizat    .82091        .28411E-01    .31294E-05   -.93727E-04
   4  Prefactor     .94431        .13247E-01    .68086E-05    .11789E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00505634
  alpha      = 2.18625
  Normalizat = 0.820914
  Prefactor  = 0.944307
 **********
 **   18 **HESSE 
 **********

 FCN=   7617.611     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      496 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50563E-02    15.488        .22092E-01   -1.5694    
   2  alpha         2.1862        3.7774        .50000       -.12583    
   3  Normalizat    .82091        .28316E-01    .62588E-06   -.99298    
   4  Prefactor     .94431        .13213E-01    .13617E-05   -.94610    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.00852e-07
Minuit parameter uncertainties:
  1  0.554272
  2  72.5719
  3  0.0283165
  4  0.0132127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395176': 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): 1
logL (Free Index) = 7617.61098171
delta logL = 1.95227221411e-06

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  5.056e-03  5.543e-01  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.186e+00  7.257e+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.443e-01  1.321e-02  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  8.209e-01  2.832e-02  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/395176/cmap_HighResolution_251769601_252028801_4FGL_J2236.3+2828_daily_bin48.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.79e-05', job_status='DONE', photon_flux_upper_limit='6.89e-08', time_completed='2021-09-28 16:46:41.142718', job_id='395176', GAL2='0.94', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1632872801.14', return_code2='1', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.95e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='48' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:46:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 395176: <4FGL_J2236.3+2828_daily_bin48> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin48> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:30:57 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:30:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:30:58 2021
Terminated at Tue Sep 28 16:46:41 2021
Results reported at Tue Sep 28 16:46:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin48 339.096 28.4832 251769601 252028801 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 :                                   702.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            944 sec.

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

