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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin639
RA = 140.885, Dec = 38.8743
tmin = 404956801, tmax = 405216001
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='194829', job_status='RUN', time_executed='2021-08-31 10:11:51.821456', time_epoch_executed='1630429911.82' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='639'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194829

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194829/ft1_4FGL_J0923.5+3852_daily_bin639.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194829/ft2_4FGL_J0923.5+3852_daily_bin639.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194829/ft1_4FGL_J0923.5+3852_daily_bin639.fits outfile=/scratch/kocevski/194829/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin639.fits ra=140.885 dec=38.8743 rad=12.0 tmin=404956801.0 tmax=405216001.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.49
user 3.22
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/194829/ft2_4FGL_J0923.5+3852_daily_bin639.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/194829/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin639.fits evtable="EVENTS" outfile="/scratch/kocevski/194829/ft1_filtered_4FGL_J0923.5+3852_daily_bin639.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/194829/ft1_filtered_4FGL_J0923.5+3852_daily_bin639.fits" evtable="EVENTS" scfile=/scratch/kocevski/194829/ft2_4FGL_J0923.5+3852_daily_bin639.fits sctable="SC_DATA" outfile=/scratch/kocevski/194829/ltcube_404956801_405216001_4FGL_J0923.5+3852_daily_bin639.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/194829/ft2_4FGL_J0923.5+3852_daily_bin639.fits
.....................!
real 11.76
user 11.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194829/ft1_filtered_4FGL_J0923.5+3852_daily_bin639.fits evtable="EVENTS" scfile=/scratch/kocevski/194829/ft2_4FGL_J0923.5+3852_daily_bin639.fits sctable="SC_DATA" expcube=/scratch/kocevski/194829/ltcube_404956801_405216001_4FGL_J0923.5+3852_daily_bin639.fits outfile=/scratch/kocevski/194829/expmap_404956801_405216001_4FGL_J0923.5+3852_daily_bin639.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/194829/ltcube_404956801_405216001_4FGL_J0923.5+3852_daily_bin639.fits
.....................!
real 190.08
user 185.21
sys 4.46

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/194829/ft1_filtered_4FGL_J0923.5+3852_daily_bin639.fits scfile=/scratch/kocevski/194829/ft2_4FGL_J0923.5+3852_daily_bin639.fits outfile=/scratch/kocevski/194829/cmap_404956801_405216001_4FGL_J0923.5+3852_daily_bin639.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.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194829/ft1_filtered_4FGL_J0923.5+3852_daily_bin639.fits scfile=/scratch/kocevski/194829/ft2_4FGL_J0923.5+3852_daily_bin639.fits outfile=/scratch/kocevski/194829/cmap_HighResolution_404956801_405216001_4FGL_J0923.5+3852_daily_bin639.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.53
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/194829/ft1_filtered_4FGL_J0923.5+3852_daily_bin639.fits', '/scratch/kocevski/194829/ft2_4FGL_J0923.5+3852_daily_bin639.fits', expMap='/scratch/kocevski/194829/expmap_404956801_405216001_4FGL_J0923.5+3852_daily_bin639.fits', expCube='/scratch/kocevski/194829/ltcube_404956801_405216001_4FGL_J0923.5+3852_daily_bin639.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/194829/Model_4FGL_J0923.5+3852_daily_bin639.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/194829/ft1_filtered_4FGL_J0923.5+3852_daily_bin639.fits
Spacecraft file(s): /scratch/kocevski/194829/ft2_4FGL_J0923.5+3852_daily_bin639.fits
Exposure map: /scratch/kocevski/194829/expmap_404956801_405216001_4FGL_J0923.5+3852_daily_bin639.fits
Exposure cube: /scratch/kocevski/194829/ltcube_404956801_405216001_4FGL_J0923.5+3852_daily_bin639.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/194829/Model_4FGL_J0923.5+3852_daily_bin639.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) = 6678.1956276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0282       1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.528       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8030       1.0000         .10000E-03   10000.    
     5 'norm      '    .42286       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16261E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6778       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2445       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.278       1.0000         .10000E-03   10000.    
    13 'norm      '    .32612       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    25.744       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12760E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0691       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.604       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    42.226       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.7319       1.0000         .10000E-03   10000.    
    28 'norm      '    15.153       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .76190       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1563       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=   6678.186     FROM MIGRAD    STATUS=CONVERGED    782 CALLS     3976 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5477       -.47312E-07** at limit **
   2  Prefactor     2.0281        1.9924       -.55041E-07   -.84685E-04
   3  Prefactor     39.533        31.981        .22484E-05   -.52122E-04
   4  Prefactor     5.8015        11.027       -.10752E-05   -.73095E-04
   5  norm          .43721        3.9800       -.97609E-06   -.38755E-03
   6  Prefactor     .10000E-03    1.2124       -.23576E-06** at limit **
   7  Prefactor     .10000E-03    87.443       -.63904E-06** at limit **
   8  Prefactor     5.6779        3.5292        .96671E-07   -.19106E-03
   9  Prefactor     .10000E-03    52.339        .20204E-06** at limit **
  10  Prefactor     1.2447        2.6703       -.12215E-05   -.10459E-02
  11  norm          .10000E-03    .70569       -.28909E-07** at limit **
  12  Prefactor     33.287        27.723        .35383E-05   -.15450E-03
  13  norm          .32590        .30575        .83516E-08    .84606E-04
  14  Prefactor     .10000E-03    1.1301        .37060E-08** at limit **
  15  norm          25.747        13.560        .32979E-06   -.13725E-03
  16  Prefactor     .10000E-03    1.1582       -.10951E-06** at limit **
  17  Prefactor     4.0694        3.1946       -.56157E-07   -.14095E-03
  18  Prefactor     .10000E-03    2.4906       -.72208E-08** at limit **
  19  Prefactor     .10000E-03    6.0836        .17804E-05** at limit **
  20  norm          .10000E-03    6.4206       -.21635E-05** at limit **
  21  Prefactor     12.608        17.494       -.43066E-07    .39763E-04
  22  Prefactor     .10000E-03    19.406       -.28647E-06** at limit **
  23  Prefactor     .10000E-03    4.2421        .12276E-05** at limit **
  24  norm          .10000E-03    7.0774        .54684E-06** at limit **
  25  Prefactor     .10000E-03    1.1743        .73823E-08** at limit **
  26  Prefactor     42.222        37.876       -.32564E-05    .10297E-03
  27  Prefactor     5.7328        4.5595       -.77552E-07   -.26448E-03
  28  norm          15.155        12.726        .93604E-06   -.57829E-04
  29  Normalizat    .76168        .16427       -.16605E-06    .16405E-03
  30  Prefactor     1.1565        .17537        .33292E-07    .14689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.02811
  Prefactor  = 39.5327
  Prefactor  = 5.80149
  norm       = 0.437207
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 5.67789
  Prefactor  = 0.0001
  Prefactor  = 1.24466
  norm       = 0.0001
  Prefactor  = 33.2866
  norm       = 0.325904
  Prefactor  = 0.0001
  norm       = 25.747
  Prefactor  = 0.0001
  Prefactor  = 4.06941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.6077
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.2219
  Prefactor  = 5.7328
  norm       = 15.1553
  Normalizat = 0.761684
  Prefactor  = 1.15652
 **********
 **   18 **HESSE 
 **********

 FCN=   6678.186     FROM HESSE     STATUS=OK           592 CALLS     4568 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5491        .15032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0281        1.9908        .11083E-03   -1.5423    
   3  Prefactor     39.533        31.753        .63753E-04   -1.4450    
   4  Prefactor     5.8015        11.002        .16672E-03   -1.5226    
   5  norm          .43721        9.9164        .32018E-02   -1.5576    
   6  Prefactor     .10000E-03    4.2960        .16905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    87.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.6779        3.5228        .11661E-03   -1.5231    
   9  Prefactor     .10000E-03    52.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2447        2.7572        .18855E-03   -1.5485    
  11  norm          .10000E-03    .71706        .66973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     33.287        27.634        .69464E-04   -1.4553    
  13  norm          .32590        .27383        .39735E-03   -1.5594    
  14  Prefactor     .10000E-03    1.6332        .15764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          25.747        13.394        .78952E-04   -1.4693    
  16  Prefactor     .10000E-03    5.0388        .15909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.0694        3.1911        .12468E-03   -1.5304    
  18  Prefactor     .10000E-03    2.4944        .12595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.0464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.3516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.608        17.476        .11283E-03   -1.4998    
  22  Prefactor     .10000E-03    19.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.2376        .16380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    7.1161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.1794        .86351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     42.222        37.713        .61690E-04   -1.4407    
  27  Prefactor     5.7328        4.5632        .14922E-03   -1.5229    
  28  norm          15.155        12.664        .10289E-03   -1.4929    
  29  Normalizat    .76168        .18972        .25887E-03   -1.0151    
  30  Prefactor     1.1565        .20599        .24522E-03   -.87680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10538e-09
Minuit parameter uncertainties:
  1  1.20579e-06
  2  1.99086
  3  31.7665
  4  11.0059
  5  4.16468
  6  0.000255996
  7  0.000142923
  8  3.52292
  9  0.000302328
  10  2.75752
  11  4.16259e-07
  12  27.645
  13  0.273829
  14  1.41849e-05
  15  13.3953
  16  7.14522e-06
  17  3.19118
  18  4.44866e-07
  19  4.73804e-05
  20  6.05677e-05
  21  17.4833
  22  2.32396e-05
  23  2.83271e-05
  24  1.25912e-05
  25  8.23456e-07
  26  37.7341
  27  4.56343
  28  12.6665
  29  0.189883
  30  0.206136
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  2.575e+01  1.340e+01  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:  1.157e+00  2.061e-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:  7.617e-01  1.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.79
Ra Dec: 140.885 38.874
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 5.48e-08
Energy Flux (Fixed Index): 2.80e-05 +/- 1.46e-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) = 6678.18063453
delta logL = 0.00525454853141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6678.17600402
delta logL = 0.0098850564973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.480       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6973       1.0000          .0000       5.0000    
     3 'Normalizat'    .75397       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1634       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6678.176     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      234 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.483        15.162        .80961E-04   -.17318E-02
   2  alpha         2.6974        .66259        .12238E-01   -.25081E-03
   3  Normalizat    .75422        .18783        .26001E-03    .36156E-03
   4  Prefactor     1.1632        .20948        .24464E-03    .78568E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 24.4831
  alpha      = 2.69736
  Normalizat = 0.754222
  Prefactor  = 1.16321
 **********
 **   18 **HESSE 
 **********

 FCN=   6678.176     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.483        14.419        .16192E-04   -1.4718    
   2  alpha         2.6974        .62981        .48951E-03    .79026E-01
   3  Normalizat    .75422        .18742        .10400E-04   -1.0179    
   4  Prefactor     1.1632        .20906        .48929E-04   -.87471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26244e-09
Minuit parameter uncertainties:
  1  14.4209
  2  0.636712
  3  0.187582
  4  0.209208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194829': 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) = 6678.17600222
delta logL = 0.00988685655466

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  2.448e+01  1.442e+01  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.697e+00  6.367e-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:  1.163e+00  2.092e-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:  7.542e-01  1.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.98
Ra Dec: 140.885 38.874
Photon Index (Free Index): 2.70 +/- 0.64
Photon Flux (Free Index): 1.10e-07 +/- 5.66e-08
Energy Flux (Free Index): 2.77e-05 +/- 1.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/194829/cmap_HighResolution_404956801_405216001_4FGL_J0923.5+3852_daily_bin639.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='2.77e-05', photon_flux_error='5.48e-08', dlogl='9.89e-03', energy_flux='2.80e-05', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-08-31 10:25:42.976098', photon_index_error2='0.64', photon_index2='2.70', ts='7.79', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='0.76', time_epoch_completed='1630430742.98', return_code='0', job_id='194829', GAL2='1.16', EG2='0.75', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='5.66e-08', ts2='7.98', photon_index='2.61' WHERE bin_id='639' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:25:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 194829: <4FGL_J0923.5+3852_daily_bin639> in cluster <slac> Done

Job <4FGL_J0923.5+3852_daily_bin639> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 10:10:50 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 10:10:51 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:10:51 2021
Terminated at Tue Aug 31 10:25:43 2021
Results reported at Tue Aug 31 10:25:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin639 140.885 38.8743 404956801 405216001 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 :                                   826.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            893 sec.

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

