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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin763
RA = 140.885, Dec = 38.8743
tmin = 437097601, tmax = 437356801
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='196472', job_status='RUN', time_executed='2021-08-31 10:16:17.963762', time_epoch_executed='1630430177.96' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/196472

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/196472/ft1_4FGL_J0923.5+3852_daily_bin763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/196472/ft2_4FGL_J0923.5+3852_daily_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/196472/ft1_4FGL_J0923.5+3852_daily_bin763.fits outfile=/scratch/kocevski/196472/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin763.fits ra=140.885 dec=38.8743 rad=12.0 tmin=437097601.0 tmax=437356801.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 5.35
user 4.85
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/196472/ft1_filtered_4FGL_J0923.5+3852_daily_bin763.fits" evtable="EVENTS" scfile=/scratch/kocevski/196472/ft2_4FGL_J0923.5+3852_daily_bin763.fits sctable="SC_DATA" outfile=/scratch/kocevski/196472/ltcube_437097601_437356801_4FGL_J0923.5+3852_daily_bin763.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/196472/ft2_4FGL_J0923.5+3852_daily_bin763.fits
.....................!
real 12.64
user 12.13
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/196472/ft1_filtered_4FGL_J0923.5+3852_daily_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/196472/ft2_4FGL_J0923.5+3852_daily_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/196472/ltcube_437097601_437356801_4FGL_J0923.5+3852_daily_bin763.fits outfile=/scratch/kocevski/196472/expmap_437097601_437356801_4FGL_J0923.5+3852_daily_bin763.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/196472/ltcube_437097601_437356801_4FGL_J0923.5+3852_daily_bin763.fits
.....................!
real 191.08
user 185.66
sys 4.05

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/196472/ft1_filtered_4FGL_J0923.5+3852_daily_bin763.fits scfile=/scratch/kocevski/196472/ft2_4FGL_J0923.5+3852_daily_bin763.fits outfile=/scratch/kocevski/196472/cmap_437097601_437356801_4FGL_J0923.5+3852_daily_bin763.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/196472/ft1_filtered_4FGL_J0923.5+3852_daily_bin763.fits scfile=/scratch/kocevski/196472/ft2_4FGL_J0923.5+3852_daily_bin763.fits outfile=/scratch/kocevski/196472/cmap_HighResolution_437097601_437356801_4FGL_J0923.5+3852_daily_bin763.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.760       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4444       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.841       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19517       1.0000         .10000E-03   10000.    
     5 'norm      '    8.6379       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10913E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1539       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10719E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.261       1.0000         .10000E-03   10000.    
    13 'norm      '    .18463       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4367       1.0000         .10000E-03   10000.    
    15 'norm      '    .12645E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1715       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0574       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.155       1.0000         .10000E-03   10000.    
    20 'norm      '    4.9657       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .85371E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.330       1.0000         .10000E-03   10000.    
    24 'norm      '    8.5069       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11224E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.8233       1.0000         .10000E-03   10000.    
    28 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2035       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .75793       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5874.609     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     3335 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.760        1.7543        .15743E-05   -.12772E-03
   2  Prefactor     3.4442        3.5159       -.14064E-06   -.14730E-04
   3  Prefactor     27.840        3.2971        .26661E-05   -.25209E-02
   4  Prefactor     .15654        6.8417        .10871E-04   -.18955E-03
   5  norm          8.6402        6.0792       -.71787E-05   -.37592E-03
   6  Prefactor     .10000E-03    .86963        .41553E-06** at limit **
   7  Prefactor     .10020E-03    50.439        .54025E-04** at limit **
   8  Prefactor     8.1537        2.2856        .55279E-06   -.10470E-03
   9  Prefactor     .10001E-03    36.705       -.25120E-04** at limit **
  10  Prefactor     .10000E-03    4.1893        .48920E-06** at limit **
  11  norm          .10000E-03    .73541       -.17089E-06** at limit **
  12  Prefactor     34.287        3.2292        .11039E-05    .11418E-04
  13  norm          .18460        .25258       -.92251E-07    .41541E-03
  14  Prefactor     2.4369        2.2754        .76582E-07    .41362E-04
  15  norm          .10024E-03    81.953       -.25533E-04** at limit **
  16  Prefactor     .10000E-03    1.0807        .61223E-06** at limit **
  17  Prefactor     7.1712        3.3477        .10141E-05    .30657E-04
  18  Prefactor     1.0460        2.4028       -.77274E-05    .51626E-04
  19  Prefactor     15.188        7.2584        .71794E-05   -.35345E-02
  20  norm          4.9688        1.0468       -.26352E-06   -.12896E-03
  21  Prefactor     .10012E-03    3.1864        .43888E-05** at limit **
  22  Prefactor     .10000E-03    10.758        .16628E-08** at limit **
  23  Prefactor     10.319        1.4250       -.82382E-06   -.16742E-02
  24  norm          8.5004        1.0899        .41578E-06    .22769E-03
  25  Prefactor     .10000E-03    1.9445        .68516E-06** at limit **
  26  Prefactor     .10000E-03    18.341        .19778E-05** at limit **
  27  Prefactor     3.8242        3.7411        .23569E-06    .23755E-04
  28  norm          .10000E-03    4.8681        .31748E-06** at limit **
  29  Normalizat    1.2036        .20336       -.17955E-06   -.15147E-03
  30  Prefactor     .75816        .21913        .40082E-06   -.13055E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.76
  Prefactor  = 3.44424
  Prefactor  = 27.8404
  Prefactor  = 0.156537
  norm       = 8.64022
  Prefactor  = 0.0001
  Prefactor  = 0.0001002
  Prefactor  = 8.15373
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.2871
  norm       = 0.1846
  Prefactor  = 2.43689
  norm       = 0.000100241
  Prefactor  = 0.0001
  Prefactor  = 7.17125
  Prefactor  = 1.04598
  Prefactor  = 15.1876
  norm       = 4.96875
  Prefactor  = 0.000100115
  Prefactor  = 0.0001
  Prefactor  = 10.3191
  norm       = 8.50038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.82419
  norm       = 0.0001
  Normalizat = 1.20357
  Prefactor  = 0.75816
 **********
 **   18 **HESSE 
 **********

 FCN=   5874.609     FROM HESSE     STATUS=OK           674 CALLS     4009 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.760        26.778        .26995E-02   -1.4966    
   2  Prefactor     3.4442        4.1872        .54481E-02   -1.5337    
   3  Prefactor     27.840        41.700        .18981E-02   -1.4652    
   4  Prefactor     .15654        6.2171        .99556E-01   -1.5629    
   5  norm          8.6402        6.0948        .34097E-02   -1.5120    
   6  Prefactor     .10000E-03    .86040        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10020E-03    55.296        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.1537        3.9607        .35101E-02   -1.5137    
   9  Prefactor     .10001E-03    36.845        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.9212        .34931E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .72295        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     34.287        21.536        .17116E-02   -1.4536    
  13  norm          .18460        .30151        .93376E-02   -1.5622    
  14  Prefactor     2.4369        2.3378        .65531E-02   -1.5396    
  15  norm          .10024E-03    5.8345        .90861E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.0606        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.1712        3.9490        .37447E-02   -1.5172    
  18  Prefactor     1.0460        15.395        .80710E-01   -1.5503    
  19  Prefactor     15.188        31.515        .25721E-02   -1.4928    
  20  norm          4.9688        17.441        .45119E-02   -1.5262    
  21  Prefactor     .10012E-03    15.169        .15134       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.757        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.319        10.126        .31167E-02   -1.5065    
  24  norm          8.5004        13.881        .34360E-02   -1.5125    
  25  Prefactor     .10000E-03    1.9178        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    18.292        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.8242        3.7603        .51604E-02   -1.5317    
  28  norm          .10000E-03    4.8444        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2036        .18053        .50041E-01   -.86493    
  30  Prefactor     .75816        .18722        .67389E-01   -1.0129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43619e-07
Minuit parameter uncertainties:
  1  26.8013
  2  4.18755
  3  41.7435
  4  1.97261
  5  6.09524
  6  1.54225e-06
  7  0.00665339
  8  3.96084
  9  0.000998657
  10  1.29409e-05
  11  3.53753e-06
  12  21.5414
  13  0.301514
  14  2.33788
  15  0.00237056
  16  3.88849e-06
  17  3.94914
  18  8.02789
  19  31.5491
  20  17.4586
  21  0.0026428
  22  4.71618e-05
  23  10.1273
  24  13.8861
  25  4.40504e-06
  26  9.69043e-05
  27  3.76053
  28  1.24346e-05
  29  0.180625
  30  0.187381
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.002e-04  2.371e-03  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:  7.582e-01  1.874e-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.204e+00  1.806e-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.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/196472/likelihoodResults_437097601_437356801_4FGL_J0923.5+3852_daily_bin763.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) = 5874.60862136
delta logL = -5.23161706951e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5874.59978521
delta logL = 0.00878383276358

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0696       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9308       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75683       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=   5874.600     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      400 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0684        16.582        .47001E-03    .28987E-04
   2  alpha         1.9329        3.4511        .78712E-01   -.33455E-05
   3  Normalizat    1.2036        .19760        .22122E-03   -.30577E-04
   4  Prefactor     .75588        .21778        .29855E-03   -.31264E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.06835
  alpha      = 1.93291
  Normalizat = 1.20358
  Prefactor  = 0.755884
 **********
 **   18 **HESSE 
 **********

 FCN=   5874.600     FROM HESSE     STATUS=OK            27 CALLS      427 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0684        16.397        .94003E-04   -1.5501    
   2  alpha         1.9329        3.4507        .31485E-02   -.22883    
   3  Normalizat    1.2036        .19775        .88488E-05   -.86492    
   4  Prefactor     .75588        .21780        .11942E-04   -1.0138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71907e-12
Minuit parameter uncertainties:
  1  8.37326
  2  2.88062
  3  0.197871
  4  0.218046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/196472': 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) = 5874.59977434
delta logL = 0.00879470538985

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.068e+00  8.373e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  1.933e+00  2.881e+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:  7.559e-01  2.180e-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.204e+00  1.979e-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/196472/cmap_HighResolution_437097601_437356801_4FGL_J0923.5+3852_daily_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.28e-05', job_status='DONE', photon_flux_upper_limit='8.56e-08', time_completed='2021-08-31 10:31:02.795785', job_id='196472', GAL2='0.76', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630431062.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='8.79e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='763' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:31:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 196472: <4FGL_J0923.5+3852_daily_bin763> in cluster <slac> Done

Job <4FGL_J0923.5+3852_daily_bin763> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Aug 31 10:15:44 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 10:15:46 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:15:46 2021
Terminated at Tue Aug 31 10:31:03 2021
Results reported at Tue Aug 31 10:31:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin763 140.885 38.8743 437097601 437356801 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 :                                   874.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

