/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 1 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 = 7373
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0923.5+3852_daily_bin273
RA = 140.885, Dec = 38.8743
tmin = 310089601, tmax = 310348801
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='191694', job_status='RUN', time_executed='2021-08-31 10:00:51.847827', time_epoch_executed='1630429251.85' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='273'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191694

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191694/ft1_4FGL_J0923.5+3852_daily_bin273.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191694/ft2_4FGL_J0923.5+3852_daily_bin273.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191694/ft1_4FGL_J0923.5+3852_daily_bin273.fits outfile=/scratch/kocevski/191694/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin273.fits ra=140.885 dec=38.8743 rad=12.0 tmin=310089601.0 tmax=310348801.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.41
user 3.15
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191694/ft1_filtered_4FGL_J0923.5+3852_daily_bin273.fits evtable="EVENTS" scfile=/scratch/kocevski/191694/ft2_4FGL_J0923.5+3852_daily_bin273.fits sctable="SC_DATA" expcube=/scratch/kocevski/191694/ltcube_310089601_310348801_4FGL_J0923.5+3852_daily_bin273.fits outfile=/scratch/kocevski/191694/expmap_310089601_310348801_4FGL_J0923.5+3852_daily_bin273.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/191694/ltcube_310089601_310348801_4FGL_J0923.5+3852_daily_bin273.fits
.....................!
real 190.18
user 185.21
sys 4.57

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/191694/ft1_filtered_4FGL_J0923.5+3852_daily_bin273.fits scfile=/scratch/kocevski/191694/ft2_4FGL_J0923.5+3852_daily_bin273.fits outfile=/scratch/kocevski/191694/cmap_310089601_310348801_4FGL_J0923.5+3852_daily_bin273.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 2.05
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.383       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.7608       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8972       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6552       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .44706       1.0000         .10000E-03   10000.    
     7 'Prefactor '    104.65       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7302       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.833       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.5367       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10221E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.2110       1.0000         .10000E-03   10000.    
    15 'norm      '    9.4020       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.9966       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4123       1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16889E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.1494       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.9575       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.7739       1.0000         .10000E-03   10000.    
    28 'norm      '    2.7012       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .73062       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1780       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=   5979.982     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     3939 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.382        17.165        .11716E-06    .20810E-04
   2  Prefactor     .10000E-03    2.0724       -.62003E-07** at limit **
   3  Prefactor     9.7605        10.962       -.45985E-07   -.75636E-05
   4  Prefactor     5.8969        6.4863       -.82701E-08   -.12029E-04
   5  norm          2.6558        6.8033        .24426E-06   -.34468E-04
   6  Prefactor     .44691        1.9285       -.47259E-07   -.21461E-03
   7  Prefactor     104.65        78.232       -.35404E-06   -.21821E-04
   8  Prefactor     1.7301        1.9147        .14041E-07    .79770E-05
   9  Prefactor     14.833        19.915        .21205E-06    .33089E-04
  10  Prefactor     .10000E-03    .82269       -.10526E-07** at limit **
  11  norm          3.5366        2.0482        .31031E-07    .17761E-04
  12  Prefactor     .10000E-03    12.679       -.99020E-06** at limit **
  13  norm          .10000E-03    .35546       -.13300E-07** at limit **
  14  Prefactor     7.2141        3.2738        .66438E-08   -.90212E-04
  15  norm          9.4028        6.9928        .35049E-06    .27697E-03
  16  Prefactor     .10000E-03    .61349       -.62982E-08** at limit **
  17  Prefactor     .10000E-03    1.3947       -.16166E-07** at limit **
  18  Prefactor     7.9971        12.919        .82381E-06   -.22221E-04
  19  Prefactor     6.4134        24.924       -.40821E-06    .28883E-05
  20  norm          .10000E-03    5.2376       -.85600E-09** at limit **
  21  Prefactor     .10000E-03    16.062       -.21209E-05** at limit **
  22  Prefactor     .10000E-03    197.80        .72819E-06** at limit **
  23  Prefactor     .10000E-03    7.0812       -.10746E-07** at limit **
  24  norm          6.1495        11.708        .98509E-07   -.80204E-05
  25  Prefactor     2.9575        3.3210       -.12434E-06   -.11162E-03
  26  Prefactor     .10000E-03    14.842        .29842E-05** at limit **
  27  Prefactor     3.7740        4.3727        .17881E-06    .31386E-04
  28  norm          2.7014        7.6049        .46631E-05   -.10463E-03
  29  Normalizat    .73053        .16101       -.10754E-05   -.15015E-04
  30  Prefactor     1.1782        .17891        .40121E-06   -.12335E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.3825
  Prefactor  = 0.0001
  Prefactor  = 9.76048
  Prefactor  = 5.89689
  norm       = 2.65582
  Prefactor  = 0.446911
  Prefactor  = 104.65
  Prefactor  = 1.73014
  Prefactor  = 14.833
  Prefactor  = 0.0001
  norm       = 3.53664
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.21408
  norm       = 9.40283
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.99715
  Prefactor  = 6.41342
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.1495
  Prefactor  = 2.95746
  Prefactor  = 0.0001
  Prefactor  = 3.77404
  norm       = 2.70138
  Normalizat = 0.730529
  Prefactor  = 1.17817
 **********
 **   18 **HESSE 
 **********

 FCN=   5979.982     FROM HESSE     STATUS=OK           596 CALLS     4535 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.382        17.120        .69354E-04   -1.4552    
   2  Prefactor     .10000E-03    2.1574        .21670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.7605        10.961        .12826E-03   -1.5083    
   4  Prefactor     5.8969        6.4862        .16537E-03   -1.5222    
   5  norm          2.6558        6.7142        .25016E-03   -1.5382    
   6  Prefactor     .44691        3.2265        .19257E-02   -1.5574    
   7  Prefactor     104.65        77.789        .39308E-04   -1.3658    
   8  Prefactor     1.7301        1.9166        .10942E-03   -1.5445    
   9  Prefactor     14.833        19.915        .10400E-03   -1.4938    
  10  Prefactor     .10000E-03    .82971        .68454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.5366        2.0446        .81400E-04   -1.5332    
  12  Prefactor     .10000E-03    12.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0145        .78824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.2141        2.8958        .77683E-04   -1.5171    
  15  norm          9.4028        7.0024        .13070E-03   -1.5095    
  16  Prefactor     .10000E-03    .62649        .59099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.4142        .89135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.9971        12.770        .70894E-03   -1.5142    
  19  Prefactor     6.4134        24.646        .15850E-03   -1.5201    
  20  norm          .10000E-03    5.2425        .17285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    206.10        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.1484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.1495        11.701        .16189E-03   -1.5212    
  25  Prefactor     2.9575        3.3043        .13357E-03   -1.5364    
  26  Prefactor     .10000E-03    14.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.7740        4.3502        .15549E-03   -1.5319    
  28  norm          2.7014        7.6189        .12393E-02   -1.5379    
  29  Normalizat    .73053        .18489        .25263E-03   -1.0270    
  30  Prefactor     1.1782        .20739        .23983E-03   -.87006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17561e-08
Minuit parameter uncertainties:
  1  17.1224
  2  4.77461e-06
  3  10.9629
  4  6.48697
  5  6.71614
  6  2.40154
  7  77.8649
  8  1.91662
  9  19.9238
  10  4.29753e-07
  11  2.0446
  12  6.2717e-05
  13  2.96004e-06
  14  2.89588
  15  7.00296
  16  3.47871e-07
  17  6.72844e-07
  18  12.774
  19  24.6849
  20  1.12872e-07
  21  0.000125351
  22  9.34021e-05
  23  2.40478e-06
  24  11.705
  25  3.30449
  26  0.000172512
  27  4.35053
  28  7.6216
  29  0.185043
  30  0.207536
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  9.403e+00  7.003e+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.178e+00  2.075e-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.305e-01  1.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.71
Ra Dec: 140.885 38.874
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 3.85e-08 +/- 2.86e-08
Energy Flux (Fixed Index): 1.02e-05 +/- 7.61e-06

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

Saving results to:
/scratch/kocevski/191694/likelihoodResults_310089601_310348801_4FGL_J0923.5+3852_daily_bin273.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) = 5979.88565988
delta logL = 0.0960961415494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5979.88018556
delta logL = 0.101570457134

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3360       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9778       1.0000          .0000       5.0000    
     3 'Normalizat'    .72147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1858       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=   5979.880     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      259 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3373        8.0959        .14322E-03   -.19249E-02
   2  alpha         2.9785        .90590        .16274E-01   -.17052E-03
   3  Normalizat    .72139        .17518        .25409E-03    .36922E-03
   4  Prefactor     1.1858        .20515        .23916E-03    .45299E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.33734
  alpha      = 2.97854
  Normalizat = 0.721388
  Prefactor  = 1.18581
 **********
 **   18 **HESSE 
 **********

 FCN=   5979.880     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3373        7.5266        .57287E-05   -1.5166    
   2  alpha         2.9785        .84445        .65096E-03    .19261    
   3  Normalizat    .72139        .17527        .10163E-04   -1.0305    
   4  Prefactor     1.1858        .20521        .47833E-04   -.86769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34014e-09
Minuit parameter uncertainties:
  1  7.52758
  2  0.862075
  3  0.175406
  4  0.205346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191694': 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) = 5979.88018447
delta logL = 0.101571556005

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  7.337e+00  7.528e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.979e+00  8.621e-01  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.186e+00  2.053e-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.214e-01  1.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.92
Ra Dec: 140.885 38.874
Photon Index (Free Index): 2.98 +/- 0.86
Photon Flux (Free Index): 4.48e-08 +/- 3.39e-08
Energy Flux (Free Index): 9.78e-06 +/- 7.13e-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/191694/cmap_HighResolution_310089601_310348801_4FGL_J0923.5+3852_daily_bin273.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.65e-05', comment='SUCCESS', photon_flux='3.85e-08', energy_flux2='9.78e-06', photon_flux_error='2.86e-08', dlogl='1.02e-01', energy_flux='1.02e-05', photon_flux2='4.48e-08', job_status='DONE', time_completed='2021-08-31 10:16:03.917752', photon_index_error2='0.86', photon_index2='2.98', ts='2.71', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='9.97e-08', energy_flux_error2='7.13e-06', EG='0.73', time_epoch_completed='1630430163.92', return_code='0', job_id='191694', GAL2='1.19', EG2='0.72', return_code2='0', energy_flux_error='7.61e-06', photon_flux_error2='3.39e-08', ts2='2.92', photon_index='2.61' WHERE bin_id='273' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:16:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 191694: <4FGL_J0923.5+3852_daily_bin273> in cluster <slac> Done

Job <4FGL_J0923.5+3852_daily_bin273> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 10:00:41 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 10:00:42 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:00:42 2021
Terminated at Tue Aug 31 10:16:04 2021
Results reported at Tue Aug 31 10:16:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin273 140.885 38.8743 310089601 310348801 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 :                                   906.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             365.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            923 sec.

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

