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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin200
RA = 339.096, Dec = 28.4832
tmin = 291168001, tmax = 291427201
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='395408', job_status='RUN', time_executed='2021-09-28 16:31:38.217759', time_epoch_executed='1632871898.22' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395408

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395408/ft1_4FGL_J2236.3+2828_daily_bin200.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395408/ft2_4FGL_J2236.3+2828_daily_bin200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395408/ft1_4FGL_J2236.3+2828_daily_bin200.fits outfile=/scratch/kocevski/395408/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin200.fits ra=339.096 dec=28.4832 rad=12.0 tmin=291168001.0 tmax=291427201.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.46
user 3.21
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395408/ft1_filtered_4FGL_J2236.3+2828_daily_bin200.fits" evtable="EVENTS" scfile=/scratch/kocevski/395408/ft2_4FGL_J2236.3+2828_daily_bin200.fits sctable="SC_DATA" outfile=/scratch/kocevski/395408/ltcube_291168001_291427201_4FGL_J2236.3+2828_daily_bin200.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/395408/ft2_4FGL_J2236.3+2828_daily_bin200.fits
.....................!
real 12.36
user 11.77
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395408/ft1_filtered_4FGL_J2236.3+2828_daily_bin200.fits evtable="EVENTS" scfile=/scratch/kocevski/395408/ft2_4FGL_J2236.3+2828_daily_bin200.fits sctable="SC_DATA" expcube=/scratch/kocevski/395408/ltcube_291168001_291427201_4FGL_J2236.3+2828_daily_bin200.fits outfile=/scratch/kocevski/395408/expmap_291168001_291427201_4FGL_J2236.3+2828_daily_bin200.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/395408/ltcube_291168001_291427201_4FGL_J2236.3+2828_daily_bin200.fits
.....................!
real 190.78
user 185.30
sys 4.97

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/395408/ft1_filtered_4FGL_J2236.3+2828_daily_bin200.fits scfile=/scratch/kocevski/395408/ft2_4FGL_J2236.3+2828_daily_bin200.fits outfile=/scratch/kocevski/395408/cmap_291168001_291427201_4FGL_J2236.3+2828_daily_bin200.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395408/ft1_filtered_4FGL_J2236.3+2828_daily_bin200.fits scfile=/scratch/kocevski/395408/ft2_4FGL_J2236.3+2828_daily_bin200.fits outfile=/scratch/kocevski/395408/cmap_HighResolution_291168001_291427201_4FGL_J2236.3+2828_daily_bin200.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78916       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9630       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.835       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    65.548       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18361E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13033E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.1656       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9970       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.059       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5736       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.2285       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16851E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .27153E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16056E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4442       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0453       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=   11190.33     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2462 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76817        5.2141       -.73320E-06   -.82674E-04
   2  norm          1.9635        1.0763        .39379E-07    .21725E-03
   3  Prefactor     .10000E-03    17.970        .28423E-05** at limit **
   4  Prefactor     37.842        22.325       -.58282E-06   -.57446E-04
   5  norm          .10000E-03    1.6160       -.26099E-09** at limit **
   6  Prefactor     65.565        84.239        .18604E-04   -.52738E-05
   7  Prefactor     .10000E-03    17.411        .44619E-05** at limit **
   8  norm          .10000E-03    .33142       -.39149E-07** at limit **
   9  Prefactor     .10000E-03    15.931       -.45697E-05** at limit **
  10  Prefactor     .10000E-03    24.158        .60308E-05** at limit **
  11  norm          4.1663        2.2483       -.92730E-07   -.15581E-03
  12  Prefactor     1.9761        18.348        .29330E-05   -.19867E-03
  13  Prefactor     12.039        11.647        .18736E-05    .15535E-04
  14  Prefactor     6.5804        9.0862       -.24796E-06   -.75137E-04
  15  Prefactor     .10000E-03    16.415        .27239E-05** at limit **
  16  norm          5.2277        2.0817        .16155E-07   -.43727E-03
  17  Prefactor     .10000E-03    21.052       -.11862E-04** at limit **
  18  Prefactor     .10000E-03    8.3897        .99032E-08** at limit **
  19  norm          .10002E-03    3.9646        .29684E-07** at limit **
  20  Prefactor     .10001E-03    14.415        .12460E-06** at limit **
  21  Normalizat    1.4443        .24505       -.10462E-05   -.68656E-05
  22  Prefactor     1.0452        .10483       -.10453E-06   -.24594E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.768169
  norm       = 1.96346
  Prefactor  = 0.0001
  Prefactor  = 37.8419
  norm       = 0.0001
  Prefactor  = 65.5652
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.1663
  Prefactor  = 1.97612
  Prefactor  = 12.0394
  Prefactor  = 6.58043
  Prefactor  = 0.0001
  norm       = 5.22774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100022
  Prefactor  = 0.000100007
  Normalizat = 1.44431
  Prefactor  = 1.04521
 **********
 **   18 **HESSE 
 **********

 FCN=   11190.33     FROM HESSE     STATUS=OK           356 CALLS     2818 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76817        35.108        .45586E-02   -1.5533    
   2  norm          1.9635        1.0733        .29604E-04   -1.5428    
   3  Prefactor     .10000E-03    17.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     37.842        22.363        .65159E-04   -1.4477    
   5  norm          .10000E-03    1.6203        .13132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     65.565        84.240        .49570E-04   -1.4087    
   7  Prefactor     .10000E-03    17.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .33607        .59429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1663        2.2335        .10940E-03   -1.5300    
  12  Prefactor     1.9761        17.780        .29311E-03   -1.5427    
  13  Prefactor     12.039        11.657        .11536E-03   -1.5014    
  14  Prefactor     6.5804        9.0807        .15652E-03   -1.5195    
  15  Prefactor     .10000E-03    16.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.2277        2.0775        .91203E-04   -1.5251    
  17  Prefactor     .10000E-03    21.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.3985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10002E-03    3.8076        .59985E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    94.285        .71542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4443        .28305        .41180E-03   -.79356    
  22  Prefactor     1.0452        .12283        .20514E-03   -.91237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74624e-08
Minuit parameter uncertainties:
  1  10.3921
  2  1.07329
  3  2.01235e-06
  4  22.3677
  5  3.37248e-07
  6  84.3937
  7  2.14754e-05
  8  2.29327e-06
  9  3.01483e-07
  10  3.71956e-05
  11  2.23352
  12  11.8596
  13  11.6594
  14  9.08261
  15  1.35568e-07
  16  2.07752
  17  5.31539e-05
  18  3.68842e-06
  19  0.000575565
  20  0.00166126
  21  0.28336
  22  0.122865
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.045e+00  1.229e-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.444e+00  2.834e-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.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/395408/likelihoodResults_291168001_291427201_4FGL_J2236.3+2828_daily_bin200.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) = 11190.3252199
delta logL = -0.000164657398273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11190.3242917
delta logL = 0.000763522561101

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19330E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0462       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11190.32     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      318 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19373E-02    .88375        .38238E-03** at limit **
   2  alpha         5.0000        3.6913        .50000    ** at limit **
   3  Normalizat    1.4409        .33711        .41224E-03    .16458E-03
   4  Prefactor     1.0462        .13225        .20506E-03    .22997E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00193735
  alpha      = 5
  Normalizat = 1.44088
  Prefactor  = 1.04617
 **********
 **   18 **HESSE 
 **********

 FCN=   11190.32     FROM HESSE     STATUS=OK            31 CALLS      349 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19373E-02    1.0599        .15295E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        2.5849        .50000        1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4409        .33103        .16490E-04   -.79454    
   4  Prefactor     1.0462        .13113        .41012E-04   -.91206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83311e-09
Minuit parameter uncertainties:
  1  0.0882601
  2  0.00569027
  3  0.33153
  4  0.131175
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395408': 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) = 11190.3242917
delta logL = 0.000763527190429

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.046e+00  1.312e-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.441e+00  3.315e-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/395408/cmap_HighResolution_291168001_291427201_4FGL_J2236.3+2828_daily_bin200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.21e-05', job_status='DONE', photon_flux_upper_limit='5.46e-08', time_completed='2021-09-28 16:46:21.915370', job_id='395408', GAL2='1.05', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1632872781.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='7.64e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='200' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:46:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 395408: <4FGL_J2236.3+2828_daily_bin200> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin200 339.096 28.4832 291168001 291427201 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 :                                   881.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            903 sec.

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

