/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 68 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 = 7496
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0923.5+3852_daily_bin5
RA = 140.885, Dec = 38.8743
tmin = 240624001, tmax = 240883201
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='188716', job_status='RUN', time_executed='2021-08-31 09:52:09.168388', time_epoch_executed='1630428729.17' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188716

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188716/ft1_4FGL_J0923.5+3852_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188716/ft2_4FGL_J0923.5+3852_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188716/ft1_4FGL_J0923.5+3852_daily_bin5.fits outfile=/scratch/kocevski/188716/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin5.fits ra=140.885 dec=38.8743 rad=12.0 tmin=240624001.0 tmax=240883201.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 1.37
user 1.19
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/188716/ft1_filtered_4FGL_J0923.5+3852_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/188716/ft2_4FGL_J0923.5+3852_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/188716/ltcube_240624001_240883201_4FGL_J0923.5+3852_daily_bin5.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/188716/ft2_4FGL_J0923.5+3852_daily_bin5.fits
.....................!
real 12.56
user 12.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188716/ft1_filtered_4FGL_J0923.5+3852_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/188716/ft2_4FGL_J0923.5+3852_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/188716/ltcube_240624001_240883201_4FGL_J0923.5+3852_daily_bin5.fits outfile=/scratch/kocevski/188716/expmap_240624001_240883201_4FGL_J0923.5+3852_daily_bin5.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/188716/ltcube_240624001_240883201_4FGL_J0923.5+3852_daily_bin5.fits
.....................!
real 191.49
user 185.56
sys 4.15

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/188716/ft1_filtered_4FGL_J0923.5+3852_daily_bin5.fits scfile=/scratch/kocevski/188716/ft2_4FGL_J0923.5+3852_daily_bin5.fits outfile=/scratch/kocevski/188716/cmap_240624001_240883201_4FGL_J0923.5+3852_daily_bin5.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7601       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .32309       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .33783       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20162E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11396E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10347E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    46.055       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3389       1.0000         .10000E-03   10000.    
    15 'norm      '    .10300E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .88962       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.027       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .41586       1.0000         .10000E-03   10000.    
    24 'norm      '    1.9060       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.548       1.0000         .10000E-03   10000.    
    28 'norm      '    16.785       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .93372       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0283       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=   4284.380     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     3981 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7594        9.8711       -.12444E-06    .67024E-04
   2  Prefactor     .10000E-03    1.8371       -.23493E-06** at limit **
   3  Prefactor     .10000E-03    33.491       -.10910E-05** at limit **
   4  Prefactor     .10000E-03    10.513       -.12080E-05** at limit **
   5  norm          .30003        10.730       -.25444E-05   -.13483E-04
   6  Prefactor     .32305        2.3860       -.23695E-06    .46846E-04
   7  Prefactor     .10000E-03    29.496        .10770E-05** at limit **
   8  Prefactor     .10000E-03    3.7218        .30398E-05** at limit **
   9  Prefactor     .10001E-03    43.286        .10798E-05** at limit **
  10  Prefactor     .10000E-03    1.3769        .28836E-06** at limit **
  11  norm          .10000E-03    .97925       -.68055E-07** at limit **
  12  Prefactor     46.020        28.032        .43421E-06    .25327E-03
  13  norm          .10000E-03    .29743        .31418E-06** at limit **
  14  Prefactor     2.3380        3.3528       -.11673E-05   -.97825E-03
  15  norm          .10000E-03    6.8724        .10200E-05** at limit **
  16  Prefactor     .89089        2.8163       -.10046E-05   -.38168E-03
  17  Prefactor     .10000E-03    2.7597       -.12128E-05** at limit **
  18  Prefactor     .10000E-03    5.1261        .58174E-07** at limit **
  19  Prefactor     46.020        31.740        .30309E-06    .44716E-04
  20  norm          .10000E-03    5.8181        .61952E-07** at limit **
  21  Prefactor     .10000E-03    9.7417        .47182E-06** at limit **
  22  Prefactor     .10000E-03    37.141       -.12665E-05** at limit **
  23  Prefactor     .39291        102.78       -.28275E-04    .15695E-03
  24  norm          1.9046        32.229       -.31368E-05    .61454E-04
  25  Prefactor     .10000E-03    1.9684       -.15420E-06** at limit **
  26  Prefactor     .10000E-03    15.616        .32420E-06** at limit **
  27  Prefactor     15.549        8.0614        .16639E-06    .11467E-03
  28  norm          16.784        14.847       -.24388E-06    .17319E-04
  29  Normalizat    .93375        .20128        .39130E-05    .57376E-03
  30  Prefactor     1.0284        .20772       -.11031E-06    .10889E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.75936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.300029
  Prefactor  = 0.323053
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 46.0197
  norm       = 0.0001
  Prefactor  = 2.33805
  norm       = 0.000100002
  Prefactor  = 0.890888
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 46.0203
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.392915
  norm       = 1.9046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5491
  norm       = 16.7842
  Normalizat = 0.93375
  Prefactor  = 1.02842
 **********
 **   18 **HESSE 
 **********

 FCN=   4284.380     FROM HESSE     STATUS=OK           588 CALLS     4569 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7594        9.8599        .14395E-03   -1.5151    
   2  Prefactor     .10000E-03    1.8880        .17322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    33.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .30003        65.791        .38739E-02   -1.5598    
   6  Prefactor     .32305        9.4363        .17981E-02   -1.5594    
   7  Prefactor     .10000E-03    29.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.401        .19655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    43.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.3811        .74765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.5926        .12504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     46.020        28.091        .59081E-04   -1.4350    
  13  norm          .10000E-03    .37397        .64830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.3380        3.1991        .12564E-03   -1.5402    
  15  norm          .10000E-03    6.7931        .16603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .89089        2.7917        .17892E-03   -1.5519    
  17  Prefactor     .10000E-03    9.9702        .20532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.1266        .14469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     46.020        31.680        .59099E-04   -1.4350    
  20  norm          .10000E-03    5.8190        .15421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.7505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    37.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .39291        116.74        .44077E-02   -1.5583    
  24  norm          1.9046        32.375        .30118E-03   -1.5432    
  25  Prefactor     .10000E-03    1.9751        .89584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    15.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     15.549        8.0570        .10157E-03   -1.4919    
  28  norm          16.784        14.845        .97759E-04   -1.4888    
  29  Normalizat    .93375        .22630        .23469E-03   -.95284    
  30  Prefactor     1.0284        .23443        .24976E-03   -.91788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42693e-08
Minuit parameter uncertainties:
  1  9.86198
  2  9.35961e-06
  3  0.000159168
  4  7.03332e-05
  5  8.89419
  6  3.49202
  7  0.000172582
  8  0.000329262
  9  0.00104928
  10  2.08603e-05
  11  1.98604e-05
  12  28.0989
  13  9.96442e-06
  14  3.1993
  15  0.000259037
  16  2.79212
  17  0.000269743
  18  2.4501e-05
  19  31.6911
  20  7.51189e-06
  21  5.04744e-05
  22  0.000218165
  23  13.5705
  24  15.7146
  25  4.56609e-06
  26  4.71568e-05
  27  8.05755
  28  14.8486
  29  0.226533
  30  0.234665
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.000e-04  2.590e-04  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.028e+00  2.347e-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:  9.337e-01  2.265e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/188716/likelihoodResults_240624001_240883201_4FGL_J0923.5+3852_daily_bin5.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) = 4284.38027829
delta logL = -0.000701407353517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4284.37957692
delta logL = -3.82897269446e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6138       1.0000          .0000       5.0000    
     3 'Normalizat'    .93372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0285       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=   4284.376     FROM MIGRAD    STATUS=CONVERGED    170 CALLS      312 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55087E-01    .65221        .16619E-01   -.14248E-02
   2  alpha         5.0000        2.7390        .16482    ** at limit **
   3  Normalizat    .92829        .20622        .23468E-03   -.52318E-05
   4  Prefactor     1.0320        .22935        .24976E-03   -.56442E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0550869
  alpha      = 5
  Normalizat = 0.928286
  Prefactor  = 1.03202
 **********
 **   18 **HESSE 
 **********

 FCN=   4284.376     FROM HESSE     STATUS=OK            27 CALLS      339 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55087E-01    1.7719        .95870E-03   -1.5755    
   2  alpha         5.0000        2.5223        .32965E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .92829        .21219        .93873E-05   -.95473    
   4  Prefactor     1.0320        .23185        .99905E-05   -.91670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11807e-11
Minuit parameter uncertainties:
  1  0.624295
  2  0.000203338
  3  0.212386
  4  0.232076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188716': 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) = 4284.3756845
delta logL = 0.00389238760818

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  5.509e-02  6.243e-01  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  5.000e+00  2.033e-04  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.032e+00  2.321e-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:  9.283e-01  2.124e-01  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/188716/cmap_HighResolution_240624001_240883201_4FGL_J0923.5+3852_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-05', job_status='DONE', photon_flux_upper_limit='8.87e-08', time_completed='2021-08-31 10:04:12.135299', job_id='188716', GAL2='1.03', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630429452.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.89e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='5' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:04:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 188716: <4FGL_J0923.5+3852_daily_bin5> in cluster <slac> Done

Job <4FGL_J0923.5+3852_daily_bin5> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 09:50:42 2021
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 09:50:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 09:50:43 2021
Terminated at Tue Aug 31 10:04:13 2021
Results reported at Tue Aug 31 10:04:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin5 140.885 38.8743 240624001 240883201 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 :                                   711.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            811 sec.

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

