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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin1512
RA = 140.885, Dec = 38.8743
tmin = 631238401, tmax = 631497601
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='202743', job_status='RUN', time_executed='2021-08-31 10:34:05.469463', time_epoch_executed='1630431245.47' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='1512'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/202743

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/202743/ft1_4FGL_J0923.5+3852_daily_bin1512.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/202743/ft2_4FGL_J0923.5+3852_daily_bin1512.fits


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

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

Done.
real 2.72
user 2.52
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/202743/ft1_filtered_4FGL_J0923.5+3852_daily_bin1512.fits" evtable="EVENTS" scfile=/scratch/kocevski/202743/ft2_4FGL_J0923.5+3852_daily_bin1512.fits sctable="SC_DATA" outfile=/scratch/kocevski/202743/ltcube_631238401_631497601_4FGL_J0923.5+3852_daily_bin1512.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/202743/ft2_4FGL_J0923.5+3852_daily_bin1512.fits
.....................!
real 12.10
user 11.80
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/202743/ft1_filtered_4FGL_J0923.5+3852_daily_bin1512.fits evtable="EVENTS" scfile=/scratch/kocevski/202743/ft2_4FGL_J0923.5+3852_daily_bin1512.fits sctable="SC_DATA" expcube=/scratch/kocevski/202743/ltcube_631238401_631497601_4FGL_J0923.5+3852_daily_bin1512.fits outfile=/scratch/kocevski/202743/expmap_631238401_631497601_4FGL_J0923.5+3852_daily_bin1512.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/202743/ltcube_631238401_631497601_4FGL_J0923.5+3852_daily_bin1512.fits
.....................!
real 189.51
user 185.23
sys 3.97

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/202743/ft1_filtered_4FGL_J0923.5+3852_daily_bin1512.fits scfile=/scratch/kocevski/202743/ft2_4FGL_J0923.5+3852_daily_bin1512.fits outfile=/scratch/kocevski/202743/cmap_631238401_631497601_4FGL_J0923.5+3852_daily_bin1512.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.55
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/202743/ft1_filtered_4FGL_J0923.5+3852_daily_bin1512.fits scfile=/scratch/kocevski/202743/ft2_4FGL_J0923.5+3852_daily_bin1512.fits outfile=/scratch/kocevski/202743/cmap_HighResolution_631238401_631497601_4FGL_J0923.5+3852_daily_bin1512.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.56
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6878       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10744E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.933       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4125       1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    80.888       1.0000         .10000E-03   10000.    
    13 'norm      '    .42333       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4568       1.0000         .10000E-03   10000.    
    15 'norm      '    8.9352       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10828E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10547E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11937E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    131.26       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    19.276       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.1322       1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.096       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    31.321       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .83292       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4525       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=   3206.124     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3929 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.624        .11338E-06** at limit **
   2  Prefactor     3.6899        16.408        .19867E-05    .18230E-04
   3  Prefactor     .10000E-03    28.761       -.38592E-07** at limit **
   4  Prefactor     .10000E-03    14.439        .23847E-06** at limit **
   5  norm          .10000E-03    8.8558        .26989E-06** at limit **
   6  Prefactor     .10000E-03    5.2143        .90746E-06** at limit **
   7  Prefactor     .10000E-03    118.13        .80771E-06** at limit **
   8  Prefactor     12.929        10.067        .74187E-06    .17983E-03
   9  Prefactor     .10000E-03    41.465        .15161E-06** at limit **
  10  Prefactor     4.4131        7.3665        .11283E-06   -.11306E-04
  11  norm          .10000E-03    1.6853        .13791E-06** at limit **
  12  Prefactor     80.885        64.727       -.66384E-06   -.29628E-04
  13  norm          .42661        .93833        .43078E-06    .11792E-02
  14  Prefactor     1.4345        9.3634       -.76793E-06    .59102E-04
  15  norm          8.9258        23.847       -.17137E-06   -.17185E-04
  16  Prefactor     .10000E-03    5.0589        .16932E-06** at limit **
  17  Prefactor     .10000E-03    8.9645        .90281E-06** at limit **
  18  Prefactor     .10000E-03    10.012        .51136E-06** at limit **
  19  Prefactor     .10000E-03    38.703        .11003E-05** at limit **
  20  norm          .10000E-03    11.959       -.32972E-06** at limit **
  21  Prefactor     .10000E-03    26.490       -.80437E-06** at limit **
  22  Prefactor     131.23        71.166       -.11086E-05   -.78666E-04
  23  Prefactor     .10000E-03    24.413        .15646E-05** at limit **
  24  norm          19.267        20.552       -.32892E-06   -.38444E-04
  25  Prefactor     2.1318        3.3443        .16972E-06    .20844E-04
  26  Prefactor     18.017        52.440       -.22122E-05   -.64007E-04
  27  Prefactor     .10000E-03    2.2029        .91891E-08** at limit **
  28  norm          31.324        18.793       -.49623E-07   -.38894E-04
  29  Normalizat    .83371        .37803        .88127E-05   -.14583E-03
  30  Prefactor     1.4520        .40250       -.83966E-05   -.16587E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.68993
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9291
  Prefactor  = 0.0001
  Prefactor  = 4.41313
  norm       = 0.0001
  Prefactor  = 80.885
  norm       = 0.426609
  Prefactor  = 1.43445
  norm       = 8.92577
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 131.234
  Prefactor  = 0.000100001
  norm       = 19.2668
  Prefactor  = 2.13185
  Prefactor  = 18.0173
  Prefactor  = 0.0001
  norm       = 31.3241
  Normalizat = 0.833715
  Prefactor  = 1.45196
 **********
 **   18 **HESSE 
 **********

 FCN=   3206.124     FROM HESSE     STATUS=OK           584 CALLS     4513 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.6899        16.400        .21031E-03   -1.5324    
   3  Prefactor     .10000E-03    28.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.8762        .16461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.3979        .25236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    118.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.929        10.142        .55692E-03   -1.4989    
   9  Prefactor     .10000E-03    41.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.4131        7.2782        .17716E-03   -1.5288    
  11  norm          .10000E-03    1.6910        .71798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     80.885        64.149        .44657E-04   -1.3907    
  13  norm          .42661        .80732        .54262E-03   -1.5577    
  14  Prefactor     1.4345        7.4715        .21121E-03   -1.5468    
  15  norm          8.9258        23.600        .13409E-03   -1.5110    
  16  Prefactor     .10000E-03    5.1570        .24737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.2200        .33149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.059        .17508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    38.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    11.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     131.23        71.068        .17572E-03   -1.3412    
  23  Prefactor     .10000E-03    25.209        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          19.267        20.555        .91227E-04   -1.4830    
  25  Prefactor     2.1318        3.3244        .12544E-03   -1.5416    
  26  Prefactor     18.017        52.686        .94152E-04   -1.4859    
  27  Prefactor     .10000E-03    2.2076        .82055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          31.324        18.787        .71594E-04   -1.4588    
  29  Normalizat    .83371        .38373        .30984E-03   -.98830    
  30  Prefactor     1.4520        .41088        .28495E-03   -.78894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34125e-10
Minuit parameter uncertainties:
  1  4.99884e-05
  2  15.565
  3  5.51082e-05
  4  3.4748e-05
  5  6.38228e-06
  6  3.41688e-05
  7  0.000226695
  8  10.1438
  9  4.37029e-05
  10  7.27964
  11  3.90482e-06
  12  64.2043
  13  0.807345
  14  6.54859
  15  23.6248
  16  6.75848e-06
  17  5.5802e-05
  18  4.58399e-05
  19  5.89073e-05
  20  3.92076e-05
  21  0.00010276
  22  71.1144
  23  0.000233672
  24  20.5629
  25  3.32473
  26  52.8225
  27  1.00931e-07
  28  18.7905
  29  0.384988
  30  0.411815
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  8.926e+00  2.362e+01  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.609e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  2.149e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.637e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  1.452e+00  4.118e-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:  8.337e-01  3.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/202743/likelihoodResults_631238401_631497601_4FGL_J0923.5+3852_daily_bin1512.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) = 3205.83903923
delta logL = 0.284486755326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3205.82070948
delta logL = 0.302816500808

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2307       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6618       1.0000          .0000       5.0000    
     3 'Normalizat'    .76901       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4977       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=   3205.821     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      262 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2576        17.304        .74584E-03   -.25357E-03
   2  alpha         3.6592        1.5547        .18425E-01   -.18186E-04
   3  Normalizat    .76884        .34266        .32082E-03   -.72787E-04
   4  Prefactor     1.4977        .39337        .28101E-03   -.21046E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.25763
  alpha      = 3.65925
  Normalizat = 0.768836
  Prefactor  = 1.49766
 **********
 **   18 **HESSE 
 **********

 FCN=   3205.821     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2576        13.597        .29833E-04   -1.5169    
   2  alpha         3.6592        1.2698        .73701E-03    .48217    
   3  Normalizat    .76884        .34339        .12833E-04   -1.0124    
   4  Prefactor     1.4977        .39350        .56202E-04   -.77605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.00615e-11
Minuit parameter uncertainties:
  1  13.6024
  2  1.35222
  3  0.344356
  4  0.394305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/202743': 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) = 3205.82070669
delta logL = 0.302819297276

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  7.258e+00  1.360e+01  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  3.659e+00  1.352e+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.498e+00  3.943e-01  0.000e+00  1.000e+01 ( 1.000e+00)
636        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
637        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
634   Normalization:  7.688e-01  3.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.25
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/202743/cmap_HighResolution_631238401_631497601_4FGL_J0923.5+3852_daily_bin1512.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.71e-05', job_status='DONE', photon_flux_upper_limit='2.15e-07', time_completed='2021-08-31 10:45:51.189939', job_id='202743', GAL2='1.50', fit_tolerance='1e-08', EG2='0.77', EG='0.83', time_epoch_completed='1630431951.19', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='1.45', dlogl='3.03e-01', ts2='0.93', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1512' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:45:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 202743: <4FGL_J0923.5+3852_daily_bin1512> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin1512 140.885 38.8743 631238401 631497601 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 :                                   611.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             231.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            886 sec.

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

