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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin852
RA = 140.885, Dec = 38.8743
tmin = 460166401, tmax = 460425601
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='198357', job_status='RUN', time_executed='2021-08-31 10:20:40.919553', time_epoch_executed='1630430440.92' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='852'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198357

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198357/ft1_4FGL_J0923.5+3852_daily_bin852.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198357/ft2_4FGL_J0923.5+3852_daily_bin852.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198357/ft1_4FGL_J0923.5+3852_daily_bin852.fits outfile=/scratch/kocevski/198357/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin852.fits ra=140.885 dec=38.8743 rad=12.0 tmin=460166401.0 tmax=460425601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.74
user 2.56
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/198357/ft2_4FGL_J0923.5+3852_daily_bin852.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/198357/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin852.fits evtable="EVENTS" outfile="/scratch/kocevski/198357/ft1_filtered_4FGL_J0923.5+3852_daily_bin852.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.43
user 0.27
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198357/ft1_filtered_4FGL_J0923.5+3852_daily_bin852.fits" evtable="EVENTS" scfile=/scratch/kocevski/198357/ft2_4FGL_J0923.5+3852_daily_bin852.fits sctable="SC_DATA" outfile=/scratch/kocevski/198357/ltcube_460166401_460425601_4FGL_J0923.5+3852_daily_bin852.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/198357/ft2_4FGL_J0923.5+3852_daily_bin852.fits
.....................!
real 10.08
user 9.75
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198357/ft1_filtered_4FGL_J0923.5+3852_daily_bin852.fits evtable="EVENTS" scfile=/scratch/kocevski/198357/ft2_4FGL_J0923.5+3852_daily_bin852.fits sctable="SC_DATA" expcube=/scratch/kocevski/198357/ltcube_460166401_460425601_4FGL_J0923.5+3852_daily_bin852.fits outfile=/scratch/kocevski/198357/expmap_460166401_460425601_4FGL_J0923.5+3852_daily_bin852.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/198357/ltcube_460166401_460425601_4FGL_J0923.5+3852_daily_bin852.fits
.....................!
real 157.32
user 152.52
sys 4.39

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/198357/ft1_filtered_4FGL_J0923.5+3852_daily_bin852.fits scfile=/scratch/kocevski/198357/ft2_4FGL_J0923.5+3852_daily_bin852.fits outfile=/scratch/kocevski/198357/cmap_460166401_460425601_4FGL_J0923.5+3852_daily_bin852.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.48
user 0.32
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198357/ft1_filtered_4FGL_J0923.5+3852_daily_bin852.fits scfile=/scratch/kocevski/198357/ft2_4FGL_J0923.5+3852_daily_bin852.fits outfile=/scratch/kocevski/198357/cmap_HighResolution_460166401_460425601_4FGL_J0923.5+3852_daily_bin852.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.50
user 0.33
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1775       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2013       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0698       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1226       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.531       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3879       1.0000         .10000E-03   10000.    
    11 'norm      '    2.6988       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.502       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4554       1.0000         .10000E-03   10000.    
    15 'norm      '    .66237       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26972E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14468       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.7794       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.5122       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.1583       1.0000         .10000E-03   10000.    
    28 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1044       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1201       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6188.984     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     2771 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10015E-03    9.4993        .10269E-05** at limit **
   2  Prefactor     2.1783        3.8255        .10020E-04    .92142E-03
   3  Prefactor     .10014E-03    11.999       -.61514E-05** at limit **
   4  Prefactor     4.2011        1.0103        .63860E-07    .11939E-03
   5  norm          1.0698        4.3364       -.54739E-05   -.11374E-03
   6  Prefactor     4.1226        2.8437        .53176E-06    .13662E-03
   7  Prefactor     .10000E-03    31.233        .63264E-05** at limit **
   8  Prefactor     .10000E-03    1.7408       -.14347E-05** at limit **
   9  Prefactor     33.547        1.6685       -.14113E-06    .31612E-02
  10  Prefactor     1.3805        3.2749        .15600E-05    .99214E-04
  11  norm          2.6986        1.7596        .48548E-06    .20586E-03
  12  Prefactor     16.494        1.2188        .23059E-06   -.18119E-02
  13  norm          .10000E-03    .75083        .63538E-06** at limit **
  14  Prefactor     4.4549        2.4154       -.51218E-07    .39977E-04
  15  norm          .65726        .99177       -.31637E-06   -.28440E-04
  16  Prefactor     .10000E-03    .41021        .77429E-06** at limit **
  17  Prefactor     .10001E-03    4.1114        .89152E-05** at limit **
  18  Prefactor     .10002E-03    3.4293        .55146E-06** at limit **
  19  Prefactor     .10087E-03    1026.1       -.31123E-04** at limit **
  20  norm          .10001E-03    3.1643       -.47854E-05** at limit **
  21  Prefactor     .10000E-03    11.417       -.10226E-04** at limit **
  22  Prefactor     .10000E-03    14.307        .13139E-04** at limit **
  23  Prefactor     .10000E-03    3.9656        .31699E-05** at limit **
  24  norm          4.7803        1.0304       -.18976E-06    .14773E-04
  25  Prefactor     5.5139        2.3240       -.80991E-06   -.30879E-03
  26  Prefactor     .10000E-03    7.7948        .15499E-05** at limit **
  27  Prefactor     1.1564        2.8563       -.22389E-05   -.40692E-04
  28  norm          .10001E-03    5.0879       -.58852E-05** at limit **
  29  Normalizat    1.1044        .19448        .19589E-05    .83459E-04
  30  Prefactor     1.1201        .21603       -.75187E-05    .64678E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100148
  Prefactor  = 2.17833
  Prefactor  = 0.000100138
  Prefactor  = 4.20106
  norm       = 1.06984
  Prefactor  = 4.12261
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 33.5467
  Prefactor  = 1.38047
  norm       = 2.69862
  Prefactor  = 16.4942
  norm       = 0.0001
  Prefactor  = 4.45495
  norm       = 0.657262
  Prefactor  = 0.000100001
  Prefactor  = 0.000100013
  Prefactor  = 0.000100016
  Prefactor  = 0.000100866
  norm       = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100002
  norm       = 4.78033
  Prefactor  = 5.51387
  Prefactor  = 0.0001
  Prefactor  = 1.15638
  norm       = 0.000100005
  Normalizat = 1.10445
  Prefactor  = 1.12012
 **********
 **   18 **HESSE 
 **********

 FCN=   6188.984     FROM HESSE     STATUS=OK           670 CALLS     3441 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10015E-03    19.753        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1783        3.9184        .69753E-02   -1.5413    
   3  Prefactor     .10014E-03    21.157        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.2011        5.6317        .49153E-02   -1.5298    
   5  norm          1.0698        4.5112        .11748E-01   -1.5501    
   6  Prefactor     4.1226        2.8587        .49633E-02   -1.5302    
   7  Prefactor     .10000E-03    31.428        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.7326        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.547        34.352        .17300E-02   -1.4549    
  10  Prefactor     1.3805        3.4778        .92258E-02   -1.5473    
  11  norm          2.6986        1.7603        .61993E-02   -1.5379    
  12  Prefactor     16.494        20.176        .24648E-02   -1.4895    
  13  norm          .10000E-03    .38607        .14518E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4549        2.8502        .47692E-02   -1.5286    
  15  norm          .65726        5.0083        .83247E-01   -1.5546    
  16  Prefactor     .10000E-03    1.2022        .45492E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    5.0966        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    4.6423        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10087E-03    14.407        .97222E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10001E-03    4.3836        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.494        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.803        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.2049        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.7803        8.4813        .46008E-02   -1.5271    
  25  Prefactor     5.5139        5.2229        .42783E-02   -1.5238    
  26  Prefactor     .10000E-03    7.8318        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.1564        7.0634        .10714E-01   -1.5493    
  28  norm          .10001E-03    5.5937        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1044        .17190        .37825E-01   -.89609    
  30  Prefactor     1.1201        .18854        .60579E-01   -.88826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.38635e-08
Minuit parameter uncertainties:
  1  0.00341798
  2  3.91888
  3  0.00342108
  4  5.63236
  5  4.39411
  6  2.85877
  7  0.000485418
  8  1.04883e-06
  9  34.3724
  10  3.47835
  11  1.76037
  12  20.1848
  13  2.63785e-06
  14  2.85033
  15  3.62879
  16  5.12621e-05
  17  0.000506827
  18  0.000544812
  19  0.00706628
  20  0.000497278
  21  5.60529e-05
  22  0.000470347
  23  0.000171078
  24  8.48346
  25  5.22333
  26  4.08576e-05
  27  5.71669
  28  0.000349643
  29  0.171991
  30  0.18865
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  6.573e-01  3.629e+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

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  1.120e+00  1.887e-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.104e+00  1.720e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/198357/likelihoodResults_460166401_460425601_4FGL_J0923.5+3852_daily_bin852.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) = 6188.92506943
delta logL = 0.0590483928881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6188.92278865
delta logL = 0.0613291744148

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3639       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8888       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1058       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1159       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=   6188.923     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      313 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3639        7.0409        .26653E-03    .12195E-03
   2  alpha         1.8888        1.4653        .45519E-01    .91188E-05
   3  Normalizat    1.1058        .18699        .23677E-03   -.39373E-05
   4  Prefactor     1.1159        .21372        .26828E-03   -.33478E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.36388
  alpha      = 1.88879
  Normalizat = 1.10578
  Prefactor  = 1.11587
 **********
 **   18 **HESSE 
 **********

 FCN=   6188.923     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3639        7.0649        .10661E-04   -1.5400    
   2  alpha         1.8888        1.4708        .18208E-02   -.24699    
   3  Normalizat    1.1058        .18714        .94708E-05   -.89567    
   4  Prefactor     1.1159        .21387        .10731E-04   -.88961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.87068e-11
Minuit parameter uncertainties:
  1  7.06736
  2  1.58042
  3  0.187256
  4  0.214036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198357': 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) = 6188.92278865
delta logL = 0.0613291757991

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  2.364e+00  7.067e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  1.889e+00  1.580e+00  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.116e+00  2.140e-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.106e+00  1.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/198357/cmap_HighResolution_460166401_460425601_4FGL_J0923.5+3852_daily_bin852.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.00e-05', job_status='DONE', photon_flux_upper_limit='7.53e-08', time_completed='2021-08-31 10:32:05.085693', job_id='198357', GAL2='1.12', fit_tolerance='1e-08', EG2='1.11', EG='1.10', time_epoch_completed='1630431125.09', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='6.13e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='852' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:32:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 198357: <4FGL_J0923.5+3852_daily_bin852> in cluster <slac> Done

Job <4FGL_J0923.5+3852_daily_bin852> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 10:20:27 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 10:20:28 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:20:28 2021
Terminated at Tue Aug 31 10:32:05 2021
Results reported at Tue Aug 31 10:32:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin852 140.885 38.8743 460166401 460425601 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 :                                   680.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            698 sec.

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

