/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 81 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 = 7411
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0923.5+3852_daily_bin1017
RA = 140.885, Dec = 38.8743
tmin = 502934401, tmax = 503193601
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='198646', job_status='RUN', time_executed='2021-08-31 10:23:02.849861', time_epoch_executed='1630430582.85' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198646

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198646/ft1_4FGL_J0923.5+3852_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198646/ft2_4FGL_J0923.5+3852_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198646/ft1_4FGL_J0923.5+3852_daily_bin1017.fits outfile=/scratch/kocevski/198646/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1017.fits ra=140.885 dec=38.8743 rad=12.0 tmin=502934401.0 tmax=503193601.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.71
user 3.33
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/198646/ft2_4FGL_J0923.5+3852_daily_bin1017.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/198646/ft2_4FGL_J0923.5+3852_daily_bin1017.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/198646/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1017.fits evtable="EVENTS" outfile="/scratch/kocevski/198646/ft1_filtered_4FGL_J0923.5+3852_daily_bin1017.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.55
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198646/ft1_filtered_4FGL_J0923.5+3852_daily_bin1017.fits" evtable="EVENTS" scfile=/scratch/kocevski/198646/ft2_4FGL_J0923.5+3852_daily_bin1017.fits sctable="SC_DATA" outfile=/scratch/kocevski/198646/ltcube_502934401_503193601_4FGL_J0923.5+3852_daily_bin1017.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/198646/ft2_4FGL_J0923.5+3852_daily_bin1017.fits
.....................!
real 12.83
user 12.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198646/ft1_filtered_4FGL_J0923.5+3852_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/198646/ft2_4FGL_J0923.5+3852_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/198646/ltcube_502934401_503193601_4FGL_J0923.5+3852_daily_bin1017.fits outfile=/scratch/kocevski/198646/expmap_502934401_503193601_4FGL_J0923.5+3852_daily_bin1017.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/198646/ltcube_502934401_503193601_4FGL_J0923.5+3852_daily_bin1017.fits
.....................!
real 191.10
user 185.41
sys 4.81

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 203 point sources and 0 extended sources

Setting source of interest to:
4FGL J0923.5+3852 @ 140.885 38.8743

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/198646/ft1_filtered_4FGL_J0923.5+3852_daily_bin1017.fits scfile=/scratch/kocevski/198646/ft2_4FGL_J0923.5+3852_daily_bin1017.fits outfile=/scratch/kocevski/198646/cmap_502934401_503193601_4FGL_J0923.5+3852_daily_bin1017.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=140.885 yref=38.8743 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.61
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198646/ft1_filtered_4FGL_J0923.5+3852_daily_bin1017.fits scfile=/scratch/kocevski/198646/ft2_4FGL_J0923.5+3852_daily_bin1017.fits outfile=/scratch/kocevski/198646/cmap_HighResolution_502934401_503193601_4FGL_J0923.5+3852_daily_bin1017.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=140.885 yref=38.8743 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.59
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/198646/ft1_filtered_4FGL_J0923.5+3852_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/198646/ft2_4FGL_J0923.5+3852_daily_bin1017.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/198646/Model_4FGL_J0923.5+3852_daily_bin1017.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/198646/ft1_filtered_4FGL_J0923.5+3852_daily_bin1017.fits.....................!
real 45.85
user 44.50
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/198646/ft1_filtered_4FGL_J0923.5+3852_daily_bin1017.fits', '/scratch/kocevski/198646/ft2_4FGL_J0923.5+3852_daily_bin1017.fits', expMap='/scratch/kocevski/198646/expmap_502934401_503193601_4FGL_J0923.5+3852_daily_bin1017.fits', expCube='/scratch/kocevski/198646/ltcube_502934401_503193601_4FGL_J0923.5+3852_daily_bin1017.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/198646/Model_4FGL_J0923.5+3852_daily_bin1017.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0923.5+3852'

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  3.377e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.609e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  2.149e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.637e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/198646/ft1_filtered_4FGL_J0923.5+3852_daily_bin1017.fits
Spacecraft file(s): /scratch/kocevski/198646/ft2_4FGL_J0923.5+3852_daily_bin1017.fits
Exposure map: /scratch/kocevski/198646/expmap_502934401_503193601_4FGL_J0923.5+3852_daily_bin1017.fits
Exposure cube: /scratch/kocevski/198646/ltcube_502934401_503193601_4FGL_J0923.5+3852_daily_bin1017.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/198646/Model_4FGL_J0923.5+3852_daily_bin1017.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) = 5275.86260062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8759       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .14791       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0292       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .52083E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11284E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6382       1.0000         .10000E-03   10000.    
    13 'norm      '    .23626       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1106       1.0000         .10000E-03   10000.    
    15 'norm      '    .16949E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4285       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.2642       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.945       1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.880       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    19.911       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.5410       1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.600       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.2463       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1206       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .75727       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5275.813     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     4005 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2630        .53196E-07** at limit **
   2  Prefactor     1.8765        2.0062        .48973E-07    .26218E-04
   3  Prefactor     .10000E-03    9.3801        .67971E-07** at limit **
   4  Prefactor     .10000E-03    3.1919       -.29597E-07** at limit **
   5  norm          .21969        11.677       -.71389E-05    .43825E-03
   6  Prefactor     2.0278        1.7590        .13312E-07    .99834E-04
   7  Prefactor     .10000E-03    26.732        .16643E-05** at limit **
   8  Prefactor     .10001E-03    2.0388       -.10155E-05** at limit **
   9  Prefactor     .10000E-03    68.995        .10904E-05** at limit **
  10  Prefactor     .10000E-03    1.3069        .64356E-07** at limit **
  11  norm          .10000E-03    1.1377       -.50910E-06** at limit **
  12  Prefactor     4.6655        17.776        .22208E-05    .11612E-03
  13  norm          .23606        .36230        .24706E-07    .70996E-03
  14  Prefactor     1.1130        3.0658        .11079E-06   -.23086E-05
  15  norm          .10000E-03    8.1798        .26056E-05** at limit **
  16  Prefactor     .10000E-03    1.5152       -.12402E-06** at limit **
  17  Prefactor     3.4282        3.2733        .67371E-08   -.68915E-04
  18  Prefactor     .10000E-03    14.859        .37752E-06** at limit **
  19  Prefactor     .10000E-03    20.396       -.29059E-06** at limit **
  20  norm          2.2778        21.764        .14077E-04    .22948E-03
  21  Prefactor     21.921        28.592       -.11450E-05   -.11808E-03
  22  Prefactor     34.881        36.158       -.16788E-05    .52622E-04
  23  Prefactor     .10000E-03    2.4875        .38833E-07** at limit **
  24  norm          19.912        14.604        .33295E-07   -.36268E-05
  25  Prefactor     1.5396        3.0222        .26481E-06    .13807E-03
  26  Prefactor     20.588        31.651        .25067E-07   -.14096E-03
  27  Prefactor     .10000E-03    2.9576       -.98452E-07** at limit **
  28  norm          1.2408        7.9157        .19731E-05   -.38422E-04
  29  Normalizat    1.1208        .17947        .10991E-05    .13461E-03
  30  Prefactor     .75681        .18627       -.21059E-05   -.44989E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.87652
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.219691
  Prefactor  = 2.02776
  Prefactor  = 0.000100001
  Prefactor  = 0.00010001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.66546
  norm       = 0.236056
  Prefactor  = 1.11296
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.42818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.27777
  Prefactor  = 21.921
  Prefactor  = 34.8811
  Prefactor  = 0.0001
  norm       = 19.9116
  Prefactor  = 1.53963
  Prefactor  = 20.5885
  Prefactor  = 0.0001
  norm       = 1.24084
  Normalizat = 1.12081
  Prefactor  = 0.756815
 **********
 **   18 **HESSE 
 **********

 FCN=   5275.813     FROM HESSE     STATUS=OK           596 CALLS     4601 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8765        1.9966        .10333E-03   -1.5434    
   3  Prefactor     .10000E-03    9.3898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.1956        .12673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .21969        47.102        .35407E-02   -1.5614    
   6  Prefactor     2.0278        1.7492        .86415E-04   -1.5423    
   7  Prefactor     .10000E-03    26.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    18.041        .19293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    69.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3228        .15971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.0881        .14845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6655        16.542        .18688E-03   -1.5276    
  13  norm          .23606        .31646        .42032E-03   -1.5611    
  14  Prefactor     1.1130        2.8791        .15677E-03   -1.5497    
  15  norm          .10000E-03    19.612        .34792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.5608        .17385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.4282        3.2560        .12309E-03   -1.5338    
  18  Prefactor     .10000E-03    15.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.2778        25.048        .13649E-02   -1.5406    
  21  Prefactor     21.921        28.944        .85504E-04   -1.4771    
  22  Prefactor     34.881        36.217        .67854E-04   -1.4526    
  23  Prefactor     .10000E-03    2.4917        .11187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          19.912        14.615        .89760E-04   -1.4815    
  25  Prefactor     1.5396        2.9891        .16885E-03   -1.5460    
  26  Prefactor     20.588        31.516        .88247E-04   -1.4800    
  27  Prefactor     .10000E-03    2.9857        .12132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.2408        7.8066        .39240E-03   -1.5485    
  29  Normalizat    1.1208        .21010        .20556E-03   -.89087    
  30  Prefactor     .75681        .21996        .27495E-03   -1.0134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.33016e-09
Minuit parameter uncertainties:
  1  1.31125e-05
  2  1.99662
  3  1.33868e-05
  4  1.10657e-05
  5  6.43731
  6  1.74928
  7  0.000374811
  8  0.000869875
  9  0.000943432
  10  8.01719e-06
  11  9.40197e-06
  12  16.5578
  13  0.316458
  14  2.87949
  15  0.000177315
  16  1.55137e-05
  17  3.25617
  18  1.7743e-05
  19  0.000127335
  20  15.1146
  21  28.9621
  22  36.2394
  23  2.33926e-06
  24  14.6181
  25  2.98936
  26  31.5409
  27  1.32592e-06
  28  6.22566
  29  0.21026
  30  0.220217
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.000e-04  1.773e-04  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.609e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  2.149e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.637e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  7.568e-01  2.202e-01  0.000e+00  1.000e+01 ( 1.000e+00)
636        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
637        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
634   Normalization:  1.121e+00  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 140.885 38.874
Photon Flux Upper Limit: 7.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.06e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/198646/likelihoodResults_502934401_503193601_4FGL_J0923.5+3852_daily_bin1017.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) = 5275.8128181
delta logL = -0.000242225232796

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5275.81257553
delta logL = 3.43521605828e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14935E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7072       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1207       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75688       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5275.671     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      266 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68805        55.977        .90712E-02    .15899E-02
   2  alpha         4.2796        3.3690        .41332        .48321E-04
   3  Normalizat    1.0901        .45549E-01    .37213E-01    .15000E-03
   4  Prefactor     .77771        .50719E-01    .43153E-01    .97254E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.688053
  alpha      = 4.27959
  Normalizat = 1.09012
  Prefactor  = 0.777711
 **********
 **   18 **HESSE 
 **********

 FCN=   5275.671     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      297 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68805        128.32        .11038E-03   -1.5542    
   2  alpha         4.2796        3.8444        .52067E-01    .79211    
   3  Normalizat    1.0901        .17555        .20804E-03   -.90070    
   4  Prefactor     .77771        .18245        .27138E-03   -1.0056    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.12543e-08
Minuit parameter uncertainties:
  1  18.8327
  2  17.2859
  3  0.175641
  4  0.182593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198646': 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): 102
logL (Free Index) = 5275.67068861
delta logL = 0.141887271757

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  6.881e-01  1.883e+01  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  4.280e+00  1.729e+01  0.000e+00  5.000e+00 ( 1.000e+00)
307         beta:  2.149e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.637e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  7.777e-01  1.826e-01  0.000e+00  1.000e+01 ( 1.000e+00)
636        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
637        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
634   Normalization:  1.090e+00  1.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 140.885 38.874

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/198646/cmap_HighResolution_502934401_503193601_4FGL_J0923.5+3852_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.06e-05', job_status='DONE', photon_flux_upper_limit='7.74e-08', time_completed='2021-08-31 10:37:16.730593', job_id='198646', GAL2='0.78', fit_tolerance='1e-08', EG2='1.09', EG='1.12', time_epoch_completed='1630431436.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.42e-01', ts2='0.30', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1017' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:37:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 198646: <4FGL_J0923.5+3852_daily_bin1017> in cluster <slac> Done

Job <4FGL_J0923.5+3852_daily_bin1017> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 10:20:45 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 10:21:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 10:21:19 2021
Terminated at Tue Aug 31 10:37:17 2021
Results reported at Tue Aug 31 10:37:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin1017 140.885 38.8743 502934401 503193601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0923.5+3852 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   850.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            992 sec.

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

