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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin1229
RA = 140.885, Dec = 38.8743
tmin = 557884801, tmax = 558144001
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='201229', job_status='RUN', time_executed='2021-08-31 10:29:50.143242', time_epoch_executed='1630430990.14' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/201229

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/201229/ft1_4FGL_J0923.5+3852_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/201229/ft2_4FGL_J0923.5+3852_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/201229/ft1_4FGL_J0923.5+3852_daily_bin1229.fits outfile=/scratch/kocevski/201229/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1229.fits ra=140.885 dec=38.8743 rad=12.0 tmin=557884801.0 tmax=558144001.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 4.44
user 3.82
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/201229/ft1_filtered_4FGL_J0923.5+3852_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/201229/ft2_4FGL_J0923.5+3852_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/201229/ltcube_557884801_558144001_4FGL_J0923.5+3852_daily_bin1229.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/201229/ft2_4FGL_J0923.5+3852_daily_bin1229.fits
.....................!
real 12.42
user 11.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/201229/ft1_filtered_4FGL_J0923.5+3852_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/201229/ft2_4FGL_J0923.5+3852_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/201229/ltcube_557884801_558144001_4FGL_J0923.5+3852_daily_bin1229.fits outfile=/scratch/kocevski/201229/expmap_557884801_558144001_4FGL_J0923.5+3852_daily_bin1229.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/201229/ltcube_557884801_558144001_4FGL_J0923.5+3852_daily_bin1229.fits
.....................!
real 192.48
user 187.67
sys 3.98

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/201229/ft1_filtered_4FGL_J0923.5+3852_daily_bin1229.fits scfile=/scratch/kocevski/201229/ft2_4FGL_J0923.5+3852_daily_bin1229.fits outfile=/scratch/kocevski/201229/cmap_557884801_558144001_4FGL_J0923.5+3852_daily_bin1229.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.53
user 0.38
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/201229/ft1_filtered_4FGL_J0923.5+3852_daily_bin1229.fits scfile=/scratch/kocevski/201229/ft2_4FGL_J0923.5+3852_daily_bin1229.fits outfile=/scratch/kocevski/201229/cmap_HighResolution_557884801_558144001_4FGL_J0923.5+3852_daily_bin1229.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.61
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16951E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11073E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .48436E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13400E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .66281E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10916E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    636.34       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .46915E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9998.4       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9999.2       1.0000         .10000E-03   10000.    
    20 'norm      '    .51091E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .23884E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9989.3       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3222.8       1.0000         .10000E-03   10000.    
    24 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    25 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9999.6       1.0000         .10000E-03   10000.    
    27 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    28 'norm      '    9998.9       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .77373E-06   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=   31.02323     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     5056 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    152.75        .32157E-07** at limit **
   2  Prefactor     .10000E-03    31.631        .16751E-08** at limit **
   3  Prefactor     .10000E-03    287.58       -.20716E-07** at limit **
   4  Prefactor     .10000E-03    140.61        .19669E-07** at limit **
   5  norm          .10000E-03    184.01        .45731E-07** at limit **
   6  Prefactor     .10000E-03    71.811        .28213E-07** at limit **
   7  Prefactor     .10000E-03    7998.9       -.11620E-06** at limit **
   8  Prefactor     .10000E-03    265.15       -.38134E-05** at limit **
   9  Prefactor     .10000E-03    1274.0       -.43367E-06** at limit **
  10  Prefactor     .10000E-03    74.582        .79867E-07** at limit **
  11  norm          .10000E-03    102.98       -.27042E-05** at limit **
  12  Prefactor     .10000E-03    1019.6        .71248E-06** at limit **
  13  norm          .10000E-03    23.933        .42020E-07** at limit **
  14  Prefactor     .10000E-03    132.73        .10905E-06** at limit **
  15  norm          636.71        871.99        .57391E-04   -.18318E-06
  16  Prefactor     .10000E-03    124.98        .27460E-06** at limit **
  17  Prefactor     .10000E-03    263.94       -.31516E-05** at limit **
  18  Prefactor    10000.0        5227.7        .91603E-05** at limit **
  19  Prefactor    10000.0        5479.3        .76088E-05** at limit **
  20  norm          .10000E-03    7838.7       -.25044E-06** at limit **
  21  Prefactor     .10002E-03    9659.7        .43937E-05** at limit **
  22  Prefactor    10000.0        7469.2        .12412E-03** at limit **
  23  Prefactor     3216.9        5465.9        .21384E-03    .25655E-06
  24  norm         10000.0        5342.7       -.27399E-06** at limit **
  25  Prefactor    10000.0        7247.4        .62920E-06** at limit **
  26  Prefactor    10000.0        5552.2        .52553E-05** at limit **
  27  Prefactor    10000.0        8481.6        .36358E-06** at limit **
  28  norm         10000.0        7107.5        .51692E-05** at limit **
  29  Normalizat    .10000E-01    .90354       -.61132E-05** at limit **
  30  Prefactor     .49200E-11    .77630       -.50974E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 636.709
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 10000
  Prefactor  = 3216.88
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Normalizat = 0.01
  Prefactor  = 4.91995e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   31.02323     FROM HESSE     STATUS=OK           556 CALLS     5612 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    152.75        .67940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.631        .30853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    287.58        .93434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    140.60        .65169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    184.00        .74606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    71.810        .46519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7998.9        .21173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    265.78        .89734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1274.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    74.580        .47410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    103.20        .55766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1019.3        .17820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    23.933        .26834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    132.73        .63310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          636.71        870.01        .81934E-04   -1.0606    
  16  Prefactor     .10000E-03    124.96        .61423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    264.32        .89503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        5227.3        .16552E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor    10000.0        5479.9        .24719E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7838.6        .21147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    9661.7        .20063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor    10000.0        7321.3        .61382E-03    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3216.9        5472.3        .42794E-04   -.36465    
  24  norm         10000.0        5342.2        .20084E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor    10000.0        7247.3        .20284E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor    10000.0        5551.7        .21902E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor    10000.0        8481.6        .21015E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm         10000.0        7106.9        .24120E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .90481        .16759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .49200E-11    .77687        .15487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38345e-10
Minuit parameter uncertainties:
  1  3.60865e-05
  2  1.05046e-06
  3  4.47685e-05
  4  1.90825e-05
  5  5.72812e-05
  6  9.21242e-06
  7  0.00135798
  8  0.00183862
  9  0.00242121
  10  5.39869e-05
  11  0.000624896
  12  0.00264511
  13  1.07741e-05
  14  3.76522e-05
  15  889.564
  16  0.000190841
  17  0.00121884
  18  0.252705
  19  0.214772
  20  0.00297913
  21  0.0482357
  22  2.76775
  23  12184.6
  24  0.0206489
  25  0.00507266
  26  0.128338
  27  0.00596532
  28  0.168289
  29  7.10188e-06
  30  3.96262e-06
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  6.367e+02  8.896e+02  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:  4.920e-12  3.963e-06  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.000e-02  7.102e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.18
Ra Dec: 140.885 38.874
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 2.60e-06 +/- 3.64e-06
Energy Flux (Fixed Index): 6.92e-04 +/- 9.67e-04

TS (Fixed Index): 1.18
Ra Dec: 140.885 38.874
Photon Flux Upper Limit: 1.32e-05 ph cm-2 s-1
Energy Flux Upper Limit: 3.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/201229/likelihoodResults_557884801_558144001_4FGL_J0923.5+3852_daily_bin1229.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) = 29.9508390149
delta logL = 1.07239267484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 29.9208267085
delta logL = 1.10240498123

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    71.227       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55714E-07   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=   29.92082     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      262 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          71.199        60.765       -.34388E-05    .57657E-04
   2  alpha         5.0000        3.5312        .19720E-03** at limit **
   3  Normalizat    .10000E-01    .82287        .13631E-04** at limit **
   4  Prefactor     .61395E-12    .76082       -.17058E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 71.1993
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 6.13953e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   29.92082     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          71.199        60.781        .19482E-03   -1.4018    
   2  alpha         5.0000        3.5311        .68539E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .83199        .15767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .61395E-12    .76092        .15053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81106e-10
Minuit parameter uncertainties:
  1  60.8336
  2  4.03723e-05
  3  1.67125e-05
  4  1.3852e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/201229': 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) = 29.9208193652
delta logL = 1.10241232456

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  7.120e+01  6.083e+01  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  5.000e+00  4.037e-05  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:  6.140e-13  1.385e-06  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.000e-02  1.671e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.38
Ra Dec: 140.885 38.874
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.34e-06 +/- 5.39e-06
Energy Flux (Free Index): 8.82e-04 +/- 7.52e-04

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/201229/cmap_HighResolution_557884801_558144001_4FGL_J0923.5+3852_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.52e-03', comment='SUCCESS', photon_flux='2.60e-06', energy_flux2='8.82e-04', photon_flux_error='3.64e-06', dlogl='1.10e+00', energy_flux='6.92e-04', photon_flux2='6.34e-06', job_status='DONE', time_completed='2021-08-31 10:35:42.325506', photon_index_error2='0.00', photon_index2='5.00', ts='1.18', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='1.32e-05', energy_flux_error2='7.52e-04', EG='0.01', time_epoch_completed='1630431342.33', return_code='0', job_id='201229', GAL2='0.00', EG2='0.01', return_code2='0', energy_flux_error='9.67e-04', photon_flux_error2='5.39e-06', ts2='3.38', photon_index='2.61' WHERE bin_id='1229' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:35:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 201229: <4FGL_J0923.5+3852_daily_bin1229> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin1229 140.885 38.8743 557884801 558144001 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 :                                   341.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             210.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   601 sec.
    Turnaround time :                            604 sec.

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

