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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin298
RA = 339.096, Dec = 28.4832
tmin = 316569601, tmax = 316828801
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='396525', job_status='RUN', time_executed='2021-09-28 16:35:36.278268', time_epoch_executed='1632872136.28' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='298'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/396525

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/396525/ft1_4FGL_J2236.3+2828_daily_bin298.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/396525/ft2_4FGL_J2236.3+2828_daily_bin298.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/396525/ft1_4FGL_J2236.3+2828_daily_bin298.fits outfile=/scratch/kocevski/396525/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin298.fits ra=339.096 dec=28.4832 rad=12.0 tmin=316569601.0 tmax=316828801.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.23
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/396525/ft2_4FGL_J2236.3+2828_daily_bin298.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/396525/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin298.fits evtable="EVENTS" outfile="/scratch/kocevski/396525/ft1_filtered_4FGL_J2236.3+2828_daily_bin298.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/396525/ft1_filtered_4FGL_J2236.3+2828_daily_bin298.fits" evtable="EVENTS" scfile=/scratch/kocevski/396525/ft2_4FGL_J2236.3+2828_daily_bin298.fits sctable="SC_DATA" outfile=/scratch/kocevski/396525/ltcube_316569601_316828801_4FGL_J2236.3+2828_daily_bin298.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/396525/ft2_4FGL_J2236.3+2828_daily_bin298.fits
.....................!
real 12.13
user 11.78
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/396525/ft1_filtered_4FGL_J2236.3+2828_daily_bin298.fits evtable="EVENTS" scfile=/scratch/kocevski/396525/ft2_4FGL_J2236.3+2828_daily_bin298.fits sctable="SC_DATA" expcube=/scratch/kocevski/396525/ltcube_316569601_316828801_4FGL_J2236.3+2828_daily_bin298.fits outfile=/scratch/kocevski/396525/expmap_316569601_316828801_4FGL_J2236.3+2828_daily_bin298.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/396525/ltcube_316569601_316828801_4FGL_J2236.3+2828_daily_bin298.fits
.....................!
real 193.89
user 187.96
sys 5.61

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/396525/ft1_filtered_4FGL_J2236.3+2828_daily_bin298.fits scfile=/scratch/kocevski/396525/ft2_4FGL_J2236.3+2828_daily_bin298.fits outfile=/scratch/kocevski/396525/cmap_316569601_316828801_4FGL_J2236.3+2828_daily_bin298.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/396525/ft1_filtered_4FGL_J2236.3+2828_daily_bin298.fits scfile=/scratch/kocevski/396525/ft2_4FGL_J2236.3+2828_daily_bin298.fits outfile=/scratch/kocevski/396525/cmap_HighResolution_316569601_316828801_4FGL_J2236.3+2828_daily_bin298.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/396525/ft1_filtered_4FGL_J2236.3+2828_daily_bin298.fits evtable="EVENTS" scfile=/scratch/kocevski/396525/ft2_4FGL_J2236.3+2828_daily_bin298.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/396525/Model_4FGL_J2236.3+2828_daily_bin298.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/396525/ft1_filtered_4FGL_J2236.3+2828_daily_bin298.fits.....................!
real 121.34
user 119.76
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0108       1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.223       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    66.370       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6800       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4742       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2834       1.0000         .10000E-03   10000.    
    11 'norm      '    2.4984       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.443       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.831       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.184       1.0000         .10000E-03   10000.    
    16 'norm      '    13.093       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.9975       1.0000         .10000E-03   10000.    
    19 'norm      '    4.2814       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    2.2612       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .63873       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=   10442.33     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     2452 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5651        .37832E-06** at limit **
   2  norm          2.0107        1.0073        .32748E-08   -.27014E-03
   3  Prefactor     36.223        41.787        .13878E-06    .13620E-04
   4  Prefactor     .10000E-03    3.4940       -.97652E-08** at limit **
   5  norm          .10000E-03    2.9936        .11704E-07** at limit **
   6  Prefactor     66.384        83.986        .49713E-05    .17624E-03
   7  Prefactor     1.6856        26.873        .37363E-05    .40328E-04
   8  norm          1.4744        .96366        .21507E-07    .35937E-05
   9  Prefactor     .10000E-03    14.091        .34179E-05** at limit **
  10  Prefactor     9.2839        9.8967       -.17714E-07    .13529E-04
  11  norm          2.4996        2.3412        .38279E-06    .75205E-04
  12  Prefactor     18.430        18.842       -.45033E-05   -.80477E-03
  13  Prefactor     20.831        17.198       -.19445E-06   -.65970E-04
  14  Prefactor     .10000E-03    10.804       -.14443E-05** at limit **
  15  Prefactor     14.183        17.965       -.29671E-06   -.58931E-04
  16  norm          13.093        2.3727       -.64390E-07    .88173E-05
  17  Prefactor     .10000E-03    16.899       -.16215E-05** at limit **
  18  Prefactor     8.9973        13.539        .64314E-06   -.15480E-03
  19  norm          4.2814        3.8623        .23382E-05   -.23823E-02
  20  Prefactor     .10000E-03    4.8568       -.53498E-06** at limit **
  21  Normalizat    2.2608        .25756        .64832E-06   -.32202E-04
  22  Prefactor     .63889        .10672       -.60422E-06    .92219E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.01073
  Prefactor  = 36.2232
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 66.3844
  Prefactor  = 1.68565
  norm       = 1.47436
  Prefactor  = 0.000100004
  Prefactor  = 9.28393
  norm       = 2.49964
  Prefactor  = 18.4298
  Prefactor  = 20.8306
  Prefactor  = 0.0001
  Prefactor  = 14.1826
  norm       = 13.0932
  Prefactor  = 0.000100001
  Prefactor  = 8.99728
  norm       = 4.28139
  Prefactor  = 0.0001
  Normalizat = 2.26081
  Prefactor  = 0.638885
 **********
 **   18 **HESSE 
 **********

 FCN=   10442.33     FROM HESSE     STATUS=OK           342 CALLS     2794 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0107        1.0034        .69592E-04   -1.5424    
   3  Prefactor     36.223        41.796        .66588E-04   -1.4504    
   4  Prefactor     .10000E-03    3.4972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.0192        .17263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     66.384        84.977        .49264E-04   -1.4077    
   7  Prefactor     1.6856        27.548        .32501E-03   -1.5448    
   8  norm          1.4744        .95362        .78137E-04   -1.5465    
   9  Prefactor     .10000E-03    14.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.2839        9.8983        .13154E-03   -1.5098    
  11  norm          2.4996        2.3439        .14195E-03   -1.5392    
  12  Prefactor     18.430        20.068        .93263E-04   -1.4849    
  13  Prefactor     20.831        17.214        .87756E-04   -1.4795    
  14  Prefactor     .10000E-03    10.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.183        17.975        .10635E-03   -1.4955    
  16  norm          13.093        2.3768        .64240E-04   -1.4984    
  17  Prefactor     .10000E-03    17.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.9973        13.560        .66810E-03   -1.5108    
  19  norm          4.2814        4.3263        .97356E-03   -1.5294    
  20  Prefactor     .10000E-03    4.8741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    2.2608        .30394        .34045E-03   -.58163    
  22  Prefactor     .63889        .12523        .25134E-03   -1.0597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69428e-09
Minuit parameter uncertainties:
  1  3.00292e-05
  2  1.00345
  3  41.8294
  4  5.14837e-06
  5  5.56004e-06
  6  85.1324
  7  13.6359
  8  0.953629
  9  0.000484926
  10  9.90006
  11  2.34402
  12  20.0757
  13  17.2178
  14  9.4868e-05
  15  17.9822
  16  2.3768
  17  0.000243648
  18  13.565
  19  4.32657
  20  4.48162e-05
  21  0.304206
  22  0.125287
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.474e+00  9.536e-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:  6.389e-01  1.253e-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:  2.261e+00  3.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.61
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.73e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.24e-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) = 10442.2785161
delta logL = 0.0551074724735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10442.2754565
delta logL = 0.0581670543161

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4118       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3359       1.0000          .0000       5.0000    
     3 'Normalizat'    2.2516       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64144       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=   10442.28     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      199 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4118        22.238        .91138E-02    .22865E-02
   2  alpha         2.3359        3.2624        .41264        .39973E-04
   3  Normalizat    2.2516        .10926        .77075E-01    .18988E-04
   4  Prefactor     .64144        .47238E-01    .41616E-01    .29395E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.4118
  alpha      = 2.33588
  Normalizat = 2.25163
  Prefactor  = 0.641439
 **********
 **   18 **HESSE 
 **********

 FCN=   10442.28     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4118        .95450        .74910E-04   -1.5470    
   2  alpha         2.3359        .57122        .18523E-01   -.65696E-01
   3  Normalizat    2.2516        .28394        .34095E-03   -.58383    
   4  Prefactor     .64144        .12211        .25089E-03   -1.0587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76309e-10
Minuit parameter uncertainties:
  1  0.954508
  2  0.576338
  3  0.284163
  4  0.122159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/396525': 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) = 10442.2754565
delta logL = 0.0581670561842

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.412e+00  9.545e-01  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.336e+00  5.763e-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:  6.414e-01  1.222e-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:  2.252e+00  2.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.74
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.34 +/- 0.58
Photon Flux (Free Index): 5.39e-08 +/- 3.80e-08
Energy Flux (Free Index): 1.76e-05 +/- 1.21e-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/396525/cmap_HighResolution_316569601_316828801_4FGL_J2236.3+2828_daily_bin298.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.73e-08', energy_flux2='1.76e-05', photon_flux_error='3.06e-08', dlogl='5.82e-02', energy_flux='1.92e-05', photon_flux2='5.39e-08', job_status='DONE', time_completed='2021-09-28 16:48:53.314106', photon_index_error2='0.58', photon_index2='2.34', ts='4.61', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='1.21e-05', EG='2.26', time_epoch_completed='1632872933.31', return_code='0', job_id='396525', GAL2='0.64', EG2='2.25', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='3.80e-08', ts2='4.74', photon_index='2.15' WHERE bin_id='298' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:48:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 396525: <4FGL_J2236.3+2828_daily_bin298> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin298> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 16:35:20 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:35:21 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:35:21 2021
Terminated at Tue Sep 28 16:48:56 2021
Results reported at Tue Sep 28 16:48:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin298 339.096 28.4832 316569601 316828801 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 :                                   794.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            816 sec.

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

