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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin1456
RA = 140.885, Dec = 38.8743
tmin = 616723201, tmax = 616982401
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='202674', job_status='RUN', time_executed='2021-08-31 10:33:21.893255', time_epoch_executed='1630431201.89' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='1456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/202674

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/202674/ft1_4FGL_J0923.5+3852_daily_bin1456.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/202674/ft2_4FGL_J0923.5+3852_daily_bin1456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/202674/ft1_4FGL_J0923.5+3852_daily_bin1456.fits outfile=/scratch/kocevski/202674/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1456.fits ra=140.885 dec=38.8743 rad=12.0 tmin=616723201.0 tmax=616982401.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.96
user 2.85
sys 1.08

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/202674/ft2_4FGL_J0923.5+3852_daily_bin1456.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/202674/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1456.fits evtable="EVENTS" outfile="/scratch/kocevski/202674/ft1_filtered_4FGL_J0923.5+3852_daily_bin1456.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.61
user 0.32
sys 1.04

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/202674/ft1_filtered_4FGL_J0923.5+3852_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/202674/ft2_4FGL_J0923.5+3852_daily_bin1456.fits sctable="SC_DATA" expcube=/scratch/kocevski/202674/ltcube_616723201_616982401_4FGL_J0923.5+3852_daily_bin1456.fits outfile=/scratch/kocevski/202674/expmap_616723201_616982401_4FGL_J0923.5+3852_daily_bin1456.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/202674/ltcube_616723201_616982401_4FGL_J0923.5+3852_daily_bin1456.fits
.....................!
real 191.40
user 184.98
sys 5.91

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/202674/ft1_filtered_4FGL_J0923.5+3852_daily_bin1456.fits scfile=/scratch/kocevski/202674/ft2_4FGL_J0923.5+3852_daily_bin1456.fits outfile=/scratch/kocevski/202674/cmap_616723201_616982401_4FGL_J0923.5+3852_daily_bin1456.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.55
user 0.37
sys 1.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/202674/ft1_filtered_4FGL_J0923.5+3852_daily_bin1456.fits scfile=/scratch/kocevski/202674/ft2_4FGL_J0923.5+3852_daily_bin1456.fits outfile=/scratch/kocevski/202674/cmap_HighResolution_616723201_616982401_4FGL_J0923.5+3852_daily_bin1456.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.49
user 0.38
sys 1.02

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22825E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .39221E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11522E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    22.372       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13740E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .23604E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    37.841       1.0000         .10000E-03   10000.    
    24 'norm      '    4.0808       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.820       1.0000         .10000E-03   10000.    
    26 'Prefactor '    38.304       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.6343       1.0000         .10000E-03   10000.    
    28 'norm      '    .12760E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .85199       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=   586.9536     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     4131 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    93.798       -.52631E-04** at limit **
   2  Prefactor     .10000E-03    39.592       -.12313E-04** at limit **
   3  Prefactor     .10000E-03    550.31       -.23098E-03** at limit **
   4  Prefactor     .10000E-03    106.80        .28694E-05** at limit **
   5  norm          .10000E-03    52.348        .21160E-04** at limit **
   6  Prefactor     10000.        228.16       -.34563E-04** at limit **
   7  Prefactor     10000.        8619.8        .11674E-02** at limit **
   8  Prefactor     .10000E-03    29.614        .18751E-04** at limit **
   9  Prefactor     .10000E-03    701.09       -.20976E-03** at limit **
  10  Prefactor     .10000E-03    97.043       -.40958E-04** at limit **
  11  norm          22.369        17.609       -.42520E-07   -.38223E-04
  12  Prefactor     .10000E-03    136.38        .15781E-03** at limit **
  13  norm          .10000E-03    2.8314       -.20073E-06** at limit **
  14  Prefactor     .10000E-03    19.778        .20499E-05** at limit **
  15  norm          .10000E-03    22.670       -.14954E-04** at limit **
  16  Prefactor     .10000E-03    10.090       -.28001E-06** at limit **
  17  Prefactor     .10000E-03    12.259       -.21245E-06** at limit **
  18  Prefactor     .10000E-03    113.44        .37271E-04** at limit **
  19  Prefactor     .10000E-03    50.691        .23956E-04** at limit **
  20  norm          .10000E-03    53.926        .16770E-04** at limit **
  21  Prefactor     .10000E-03    35.261       -.27600E-04** at limit **
  22  Prefactor     .10000E-03    85.968       -.71151E-04** at limit **
  23  Prefactor     37.835        28.712        .19817E-05   -.17570E-05
  24  norm          4.0637        28.309       -.22902E-05   -.37246E-04
  25  Prefactor     15.820        11.998       -.15042E-06   -.48422E-04
  26  Prefactor     38.303        41.129       -.21720E-06   -.43436E-04
  27  Prefactor     3.6252        11.250        .12277E-06   -.10626E-03
  28  norm          .10000E-03    22.649        .10424E-04** at limit **
  29  Normalizat    .10000E-01    .16704        .49709E-06** at limit **
  30  Prefactor     .85231        .33237       -.13161E-05   -.16173E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.3695
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.8354
  norm       = 4.06366
  Prefactor  = 15.82
  Prefactor  = 38.3033
  Prefactor  = 3.62522
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.852308
 **********
 **   18 **HESSE 
 **********

 FCN=   586.9536     FROM HESSE     STATUS=OK           568 CALLS     4699 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    93.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    39.592        .14903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    550.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    106.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    52.348        .17140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10000.        228.16        .21451E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10000.        8620.0        .19451E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.621        .12886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    701.11        .19519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    97.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          22.369        17.619        .84684E-04   -1.4762    
  12  Prefactor     .10000E-03    136.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8318        .39830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.779        .10530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    22.678        .11274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.097        .75197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.272        .82869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    113.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    50.691        .16866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    53.974        .17396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.269        .14062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    86.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     37.835        28.782        .65154E-04   -1.4477    
  24  norm          4.0637        28.298        .19958E-03   -1.5305    
  25  Prefactor     15.820        12.018        .54857E-04   -1.4912    
  26  Prefactor     38.303        41.165        .64761E-04   -1.4469    
  27  Prefactor     3.6252        11.238        .10858E-03   -1.5327    
  28  norm          .10000E-03    23.382        .22506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .17238        .59090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .85231        .32569        .24619E-03   -.97828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.03641e-11
Minuit parameter uncertainties:
  1  3.27356e-07
  2  6.48748e-08
  3  3.36086e-06
  4  6.5524e-08
  5  2.12148e-07
  6  1.1118e-05
  7  8.11195e-06
  8  1.30871e-06
  9  5.35303e-07
  10  7.51783e-06
  11  17.6233
  12  3.45003e-06
  13  6.65235e-07
  14  2.32058e-06
  15  1.49654e-06
  16  2.16168e-06
  17  2.18023e-06
  18  5.72352e-06
  19  2.59148e-06
  20  6.31665e-05
  21  3.13435e-05
  22  0.000175877
  23  28.7926
  24  21.4613
  25  12.0201
  26  41.1956
  27  11.2448
  28  0.000153196
  29  7.10513e-08
  30  0.326432
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.000e-04  1.497e-06  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:  8.523e-01  3.264e-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.000e-02  7.105e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 140.885 38.874
Photon Flux Upper Limit: 4.70e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/202674/likelihoodResults_616723201_616982401_4FGL_J0923.5+3852_daily_bin1456.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): 102
logL (Free Index) = 586.953841887
delta logL = -0.000207622455605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 586.953638406
delta logL = -4.14069359067e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9059       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85229       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=   586.9536     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      279 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1986.2        .68341E-02** at limit **
   2  alpha         1.9488        2.5891        .20000        .13202E-07
   3  Normalizat    .10000E-01    .33162E-01    .59089E-02** at limit **
   4  Prefactor     .85230        .12701        .24619E-03   -.14495E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 1.94885
  Normalizat = 0.01
  Prefactor  = 0.852304
 **********
 **   18 **HESSE 
 **********

 FCN=   586.9536     FROM HESSE     STATUS=OK            23 CALLS      302 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    26.554        .12186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9488        2.6780        .80000E-02   -.22229    
   3  Normalizat    .10000E-01    .17239        .11818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .85230        .28980        .49238E-04   -.97828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14591e-10
Minuit parameter uncertainties:
  1  0.000563467
  2  833.573
  3  2.41707e-06
  4  0.290326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/202674': 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) = 586.953633948
delta logL = 3.16807586387e-07

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.000e-04  5.635e-04  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  1.949e+00  8.336e+02  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:  8.523e-01  2.903e-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.000e-02  2.417e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-04', job_status='DONE', photon_flux_upper_limit='4.70e-07', time_completed='2021-08-31 10:41:22.725960', job_id='202674', GAL2='0.85', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630431682.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1456' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:41:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 202674: <4FGL_J0923.5+3852_daily_bin1456> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin1456 140.885 38.8743 616723201 616982401 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 :                                   419.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             264.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   624 sec.
    Turnaround time :                            625 sec.

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

