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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin1300
RA = 140.885, Dec = 38.8743
tmin = 576288001, tmax = 576547201
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='202435', job_status='RUN', time_executed='2021-08-31 10:31:53.780460', time_epoch_executed='1630431113.78' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='1300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/202435

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/202435/ft1_4FGL_J0923.5+3852_daily_bin1300.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/202435/ft2_4FGL_J0923.5+3852_daily_bin1300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/202435/ft1_4FGL_J0923.5+3852_daily_bin1300.fits outfile=/scratch/kocevski/202435/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1300.fits ra=140.885 dec=38.8743 rad=12.0 tmin=576288001.0 tmax=576547201.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.45
user 3.08
sys 1.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/202435/ft1_filtered_4FGL_J0923.5+3852_daily_bin1300.fits" evtable="EVENTS" scfile=/scratch/kocevski/202435/ft2_4FGL_J0923.5+3852_daily_bin1300.fits sctable="SC_DATA" outfile=/scratch/kocevski/202435/ltcube_576288001_576547201_4FGL_J0923.5+3852_daily_bin1300.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/202435/ft2_4FGL_J0923.5+3852_daily_bin1300.fits
.....................!
real 12.36
user 10.69
sys 1.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/202435/ft1_filtered_4FGL_J0923.5+3852_daily_bin1300.fits evtable="EVENTS" scfile=/scratch/kocevski/202435/ft2_4FGL_J0923.5+3852_daily_bin1300.fits sctable="SC_DATA" expcube=/scratch/kocevski/202435/ltcube_576288001_576547201_4FGL_J0923.5+3852_daily_bin1300.fits outfile=/scratch/kocevski/202435/expmap_576288001_576547201_4FGL_J0923.5+3852_daily_bin1300.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/202435/ltcube_576288001_576547201_4FGL_J0923.5+3852_daily_bin1300.fits
.....................!
real 194.02
user 185.84
sys 6.36

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/202435/ft1_filtered_4FGL_J0923.5+3852_daily_bin1300.fits scfile=/scratch/kocevski/202435/ft2_4FGL_J0923.5+3852_daily_bin1300.fits outfile=/scratch/kocevski/202435/cmap_576288001_576547201_4FGL_J0923.5+3852_daily_bin1300.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 1.66
user 0.38
sys 1.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/202435/ft1_filtered_4FGL_J0923.5+3852_daily_bin1300.fits scfile=/scratch/kocevski/202435/ft2_4FGL_J0923.5+3852_daily_bin1300.fits outfile=/scratch/kocevski/202435/cmap_HighResolution_576288001_576547201_4FGL_J0923.5+3852_daily_bin1300.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 1.64
user 0.39
sys 1.23

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13507E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.3771       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .93757       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6434       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2989       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.6831       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.7606       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7753       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11228E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15066E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.160       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.711       1.0000         .10000E-03   10000.    
    24 'norm      '    5.0128       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.8133       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.9467       1.0000         .10000E-03   10000.    
    28 'norm      '    15.214       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .63474       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4717       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=   5324.371     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     3335 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.957        .78265E-06** at limit **
   2  Prefactor     .10000E-03    1.6171        .41200E-06** at limit **
   3  Prefactor     .10000E-03    18.115        .11128E-05** at limit **
   4  Prefactor     .10000E-03    8.3900        .99417E-06** at limit **
   5  norm          5.3772        5.3092       -.39914E-07   -.44083E-06
   6  Prefactor     .93718        2.1424        .51539E-06   -.89028E-04
   7  Prefactor     .10000E-03    57.732        .72631E-06** at limit **
   8  Prefactor     4.6434        3.5335        .46092E-07   -.18376E-05
   9  Prefactor     .10000E-03    21.520       -.17684E-05** at limit **
  10  Prefactor     5.2998        3.3735       -.39003E-07   -.57536E-04
  11  norm          .10000E-03    .52800        .15033E-07** at limit **
  12  Prefactor     8.6832        15.112       -.10150E-05   -.79546E-05
  13  norm          .10000E-03    .10029        .86699E-09** at limit **
  14  Prefactor     .10000E-03    .77678       -.11217E-07** at limit **
  15  norm          8.7637        9.4767        .20963E-05   -.27067E-03
  16  Prefactor     .10000E-03    1.0546       -.92690E-07** at limit **
  17  Prefactor     2.7751        3.3644        .18900E-06   -.62004E-04
  18  Prefactor     .10000E-03    8.8408       -.86434E-06** at limit **
  19  Prefactor     .10000E-03    6.6239       -.26071E-06** at limit **
  20  norm          .10000E-03    12.324       -.86167E-06** at limit **
  21  Prefactor     .10000E-03    34.491       -.68481E-07** at limit **
  22  Prefactor     14.116        25.373       -.44955E-05   -.39246E-03
  23  Prefactor     16.711        11.048        .11239E-06   -.20228E-04
  24  norm          5.0161        12.802        .59226E-05   -.27182E-03
  25  Prefactor     .10000E-03    1.1063       -.49745E-07** at limit **
  26  Prefactor     7.8180        22.015        .67917E-06    .21986E-04
  27  Prefactor     4.9469        5.1094       -.14832E-06   -.33849E-03
  28  norm          15.215        10.257        .60200E-08   -.19266E-04
  29  Normalizat    .63439        .17844       -.85696E-08   -.11322E-03
  30  Prefactor     1.4722        .20136       -.10433E-05   -.57536E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.37717
  Prefactor  = 0.937179
  Prefactor  = 0.0001
  Prefactor  = 4.64337
  Prefactor  = 0.000100001
  Prefactor  = 5.29981
  norm       = 0.0001
  Prefactor  = 8.68323
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.76372
  Prefactor  = 0.0001
  Prefactor  = 2.7751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 14.1161
  Prefactor  = 16.7111
  norm       = 5.01613
  Prefactor  = 0.0001
  Prefactor  = 7.81803
  Prefactor  = 4.94694
  norm       = 15.2149
  Normalizat = 0.634386
  Prefactor  = 1.47219
 **********
 **   18 **HESSE 
 **********

 FCN=   5324.371     FROM HESSE     STATUS=OK           584 CALLS     3919 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.6933        .17863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.5065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.3772        5.3024        .16188E-03   -1.5244    
   6  Prefactor     .93718        2.0942        .15333E-03   -1.5514    
   7  Prefactor     .10000E-03    57.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.6434        3.5334        .11568E-03   -1.5277    
   9  Prefactor     .10000E-03    21.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2998        3.3712        .10075E-03   -1.5248    
  11  norm          .10000E-03    .52936        .51769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.6832        15.082        .13603E-03   -1.5119    
  13  norm          .10000E-03    .10393        .45065E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .78630        .62728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.7637        9.5376        .67712E-03   -1.5116    
  16  Prefactor     .10000E-03    1.0661        .73052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.7751        3.3543        .14210E-03   -1.5375    
  18  Prefactor     .10000E-03    8.9876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.6348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    12.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    34.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.116        26.759        .10644E-03   -1.4956    
  23  Prefactor     16.711        11.052        .97976E-04   -1.4890    
  24  norm          5.0161        13.118        .89804E-03   -1.5260    
  25  Prefactor     .10000E-03    1.1090        .74906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.8180        22.010        .14345E-03   -1.5149    
  27  Prefactor     4.9469        5.1244        .16146E-03   -1.5263    
  28  norm          15.215        10.256        .10268E-03   -1.4928    
  29  Normalizat    .63439        .20697        .28178E-03   -1.0654    
  30  Prefactor     1.4722        .23368        .23174E-03   -.78321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75273e-09
Minuit parameter uncertainties:
  1  9.12928e-05
  2  0.000272448
  3  0.000173802
  4  0.000103276
  5  5.30288
  6  2.09434
  7  0.000207862
  8  3.53351
  9  0.000360957
  10  3.37131
  11  9.89456e-08
  12  15.0881
  13  4.26248e-08
  14  7.84898e-07
  15  9.53929
  16  1.10841e-06
  17  3.3545
  18  0.000116069
  19  3.176e-05
  20  2.13315e-05
  21  0.000408063
  22  26.7816
  23  11.0533
  24  13.1256
  25  1.68235e-06
  26  22.0333
  27  5.12488
  28  10.2567
  29  0.207227
  30  0.23385
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  8.764e+00  9.539e+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.472e+00  2.339e-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:  6.344e-01  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 140.885 38.874
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 3.58e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 9.53e-06 +/- 1.04e-05

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

Saving results to:
/scratch/kocevski/202435/likelihoodResults_576288001_576547201_4FGL_J0923.5+3852_daily_bin1300.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) = 5324.35110253
delta logL = 0.0202183626152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5324.3453853
delta logL = 0.0259355925145

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7872       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8410       1.0000          .0000       5.0000    
     3 'Normalizat'    .62705       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4779       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5324.345     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      267 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7757        10.108        .71847E-03    .12935E-03
   2  alpha         2.8419        1.0942        .20676E-01    .10249E-03
   3  Normalizat    .62724        .19744        .28328E-03   -.42942E-05
   4  Prefactor     1.4779        .23395        .23137E-03   -.26042E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.77565
  alpha      = 2.84191
  Normalizat = 0.627235
  Prefactor  = 1.47786
 **********
 **   18 **HESSE 
 **********

 FCN=   5324.345     FROM HESSE     STATUS=OK            27 CALLS      294 TOTAL
                     EDM=   .15E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7757        9.5322        .14369E-03   -1.5150    
   2  alpha         2.8419        1.0348        .41353E-02    .13719    
   3  Normalizat    .62724        .19748        .11331E-04   -1.0684    
   4  Prefactor     1.4779        .23395        .92550E-05   -.78162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47234e-13
Minuit parameter uncertainties:
  1  9.53409
  2  1.06753
  3  0.197701
  4  0.234118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/202435': 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) = 5324.34538373
delta logL = 0.02593716104

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  7.776e+00  9.534e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.842e+00  1.068e+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.478e+00  2.341e-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:  6.272e-01  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 140.885 38.874
Photon Index (Free Index): 2.84 +/- 1.07
Photon Flux (Free Index): 4.07e-08 +/- 4.44e-08
Energy Flux (Free Index): 9.49e-06 +/- 9.46e-06

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/202435/cmap_HighResolution_576288001_576547201_4FGL_J0923.5+3852_daily_bin1300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.09e-05', comment='SUCCESS', photon_flux='3.58e-08', energy_flux2='9.49e-06', photon_flux_error='3.90e-08', dlogl='2.59e-02', energy_flux='9.53e-06', photon_flux2='4.07e-08', job_status='DONE', time_completed='2021-08-31 10:45:39.502272', photon_index_error2='1.07', photon_index2='2.84', ts='1.32', fit_tolerance='1e-08', GAL='1.47', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='9.46e-06', EG='0.63', time_epoch_completed='1630431939.5', return_code='0', job_id='202435', GAL2='1.48', EG2='0.63', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='4.44e-08', ts2='1.39', photon_index='2.61' WHERE bin_id='1300' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:45:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 202435: <4FGL_J0923.5+3852_daily_bin1300> in cluster <slac> Done

Job <4FGL_J0923.5+3852_daily_bin1300> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 10:30:38 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 10:30:39 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:30:39 2021
Terminated at Tue Aug 31 10:45:40 2021
Results reported at Tue Aug 31 10:45:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin1300 140.885 38.8743 576288001 576547201 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 :                                   830.64 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

