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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin1582
RA = 140.885, Dec = 38.8743
tmin = 649382401, tmax = 649641601
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='204011', job_status='RUN', time_executed='2021-08-31 10:40:02.347637', time_epoch_executed='1630431602.35' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='1582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204011

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204011/ft1_4FGL_J0923.5+3852_daily_bin1582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204011/ft2_4FGL_J0923.5+3852_daily_bin1582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204011/ft1_4FGL_J0923.5+3852_daily_bin1582.fits outfile=/scratch/kocevski/204011/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1582.fits ra=140.885 dec=38.8743 rad=12.0 tmin=649382401.0 tmax=649641601.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 7.36
user 2.51
sys 4.73

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/204011/ft1_filtered_4FGL_J0923.5+3852_daily_bin1582.fits" evtable="EVENTS" scfile=/scratch/kocevski/204011/ft2_4FGL_J0923.5+3852_daily_bin1582.fits sctable="SC_DATA" outfile=/scratch/kocevski/204011/ltcube_649382401_649641601_4FGL_J0923.5+3852_daily_bin1582.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/204011/ft2_4FGL_J0923.5+3852_daily_bin1582.fits
.....................!
real 20.93
user 15.27
sys 5.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204011/ft1_filtered_4FGL_J0923.5+3852_daily_bin1582.fits evtable="EVENTS" scfile=/scratch/kocevski/204011/ft2_4FGL_J0923.5+3852_daily_bin1582.fits sctable="SC_DATA" expcube=/scratch/kocevski/204011/ltcube_649382401_649641601_4FGL_J0923.5+3852_daily_bin1582.fits outfile=/scratch/kocevski/204011/expmap_649382401_649641601_4FGL_J0923.5+3852_daily_bin1582.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/204011/ltcube_649382401_649641601_4FGL_J0923.5+3852_daily_bin1582.fits
.....................!
real 197.08
user 185.28
sys 10.75

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/204011/ft1_filtered_4FGL_J0923.5+3852_daily_bin1582.fits scfile=/scratch/kocevski/204011/ft2_4FGL_J0923.5+3852_daily_bin1582.fits outfile=/scratch/kocevski/204011/cmap_649382401_649641601_4FGL_J0923.5+3852_daily_bin1582.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 5.07
user 0.37
sys 4.62

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204011/ft1_filtered_4FGL_J0923.5+3852_daily_bin1582.fits scfile=/scratch/kocevski/204011/ft2_4FGL_J0923.5+3852_daily_bin1582.fits outfile=/scratch/kocevski/204011/cmap_HighResolution_649382401_649641601_4FGL_J0923.5+3852_daily_bin1582.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 5.06
user 0.39
sys 4.61

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9996.3       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17061E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11484E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    15.732       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    177.02       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1683       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .80218       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10654E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1959       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.018       1.0000         .10000E-03   10000.    
    20 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.423       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .30551       1.0000         .10000E-03   10000.    
    26 'Prefactor '    114.94       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.3114       1.0000         .10000E-03   10000.    
    28 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .34231       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.7767       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=   1684.720     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     4584 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        6459.6        .17356E-03** at limit **
   2  Prefactor     .10000E-03    129.87        .12131E-05** at limit **
   3  Prefactor     .10000E-03    97.069       -.52751E-07** at limit **
   4  Prefactor     .10000E-03    72.651        .79274E-07** at limit **
   5  norm          15.728        16.213        .49739E-06    .28566E-04
   6  Prefactor     .10000E-03    7.4254        .11658E-05** at limit **
   7  Prefactor     177.04        141.00        .13405E-05    .53165E-06
   8  Prefactor     .10000E-03    7.1171        .16566E-06** at limit **
   9  Prefactor     .10000E-03    94.604        .29648E-06** at limit **
  10  Prefactor     2.1689        6.2197        .64687E-06    .12908E-03
  11  norm          .10000E-03    5.6012        .97655E-07** at limit **
  12  Prefactor     .10000E-03    41.845        .90864E-06** at limit **
  13  norm          .80238        .73726        .41786E-07   -.41930E-03
  14  Prefactor     .10000E-03    6.1978        .11354E-05** at limit **
  15  norm          .10000E-03    9.7759        .36342E-06** at limit **
  16  Prefactor     1.1942        9.7290        .27383E-05   -.45982E-04
  17  Prefactor     .10000E-03    14.844        .34610E-06** at limit **
  18  Prefactor     .10000E-03    5.9104        .14402E-06** at limit **
  19  Prefactor     29.042        26.243        .42143E-06   -.35138E-05
  20  norm          .10000E-03    12.134       -.41392E-07** at limit **
  21  Prefactor     .10000E-03    57.507        .10213E-05** at limit **
  22  Prefactor     .10000E-03    43.008        .75331E-06** at limit **
  23  Prefactor     17.400        21.614       -.39931E-06   -.18188E-03
  24  norm          .10000E-03    10.384        .45867E-06** at limit **
  25  Prefactor     .34973        13.931        .35362E-05   -.49757E-03
  26  Prefactor     114.96        81.831        .98009E-06   -.88958E-04
  27  Prefactor     5.2579        12.450       -.28469E-05   -.52135E-03
  28  norm          .10000E-03    23.085        .35130E-06** at limit **
  29  Normalizat    .34233        .42118       -.42785E-06   -.10820E-03
  30  Prefactor     1.7766        .49225       -.20100E-05   -.12569E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.7283
  Prefactor  = 0.0001
  Prefactor  = 177.039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.16885
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.802377
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.19417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.0415
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3996
  norm       = 0.0001
  Prefactor  = 0.349733
  Prefactor  = 114.961
  Prefactor  = 5.2579
  norm       = 0.0001
  Normalizat = 0.342329
  Prefactor  = 1.77662
 **********
 **   18 **HESSE 
 **********

 FCN=   1684.720     FROM HESSE     STATUS=OK           576 CALLS     5160 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        6342.8        .10521E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    129.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    97.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    72.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          15.728        16.192        .50489E-03   -1.4915    
   6  Prefactor     .10000E-03    7.6647        .21730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     177.04        140.81        .15167E-03   -1.3039    
   8  Prefactor     .10000E-03    7.1200        .10696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    94.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1689        6.1620        .81669E-03   -1.5413    
  11  norm          .10000E-03    5.6083        .94887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    41.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .80238        .73203        .32029E-04   -1.5529    
  14  Prefactor     .10000E-03    6.2353        .19625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.7751        .12528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1942        9.2329        .22329E-03   -1.5489    
  17  Prefactor     .10000E-03    14.906        .15449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.9148        .97459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.042        26.223        .74375E-04   -1.4630    
  20  norm          .10000E-03    12.138        .13968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    57.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    43.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.400        21.694        .95954E-04   -1.4873    
  24  norm          .10000E-03    10.418        .12919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .34973        133.15        .20590E-02   -1.5590    
  26  Prefactor     114.96        81.646        .37527E-04   -1.3559    
  27  Prefactor     5.2579        15.575        .17008E-03   -1.5249    
  28  norm          .10000E-03    23.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .34233        .42463        .43391E-03   -1.2040    
  30  Prefactor     1.7766        .50975        .26107E-03   -.70060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.18385e-09
Minuit parameter uncertainties:
  1  0.436081
  2  0.000235688
  3  1.00452e-05
  4  5.43411e-05
  5  16.1962
  6  1.17344e-06
  7  141.075
  8  2.42579e-06
  9  9.21306e-05
  10  6.16383
  11  7.73878e-07
  12  4.13356e-05
  13  0.73204
  14  5.95671e-05
  15  1.36189e-05
  16  6.64211
  17  1.24707e-05
  18  1.63445e-06
  19  26.2336
  20  1.13262e-05
  21  0.000189546
  22  3.23139e-05
  23  21.7035
  24  1.26294e-05
  25  13.6767
  26  81.726
  27  15.5875
  28  1.04517e-05
  29  0.428711
  30  0.511276
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.000e-04  1.362e-05  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.777e+00  5.113e-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:  3.423e-01  4.287e-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: 1.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/204011/likelihoodResults_649382401_649641601_4FGL_J0923.5+3852_daily_bin1582.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) = 1684.72018381
delta logL = -0.000437943222096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1684.71974583
delta logL = 3.72535851056e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5962       1.0000          .0000       5.0000    
     3 'Normalizat'    .34234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7766       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=   1684.720     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      247 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    593.99        .12630E-01** at limit **
   2  alpha         1.9142        4.0292        .16476       -.15025E-07
   3  Normalizat    .34233        .64294E-01    .43398E-03    .59728E-05
   4  Prefactor     1.7766        .82744E-01    .26107E-03    .10821E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.91422
  Normalizat = 0.342333
  Prefactor  = 1.77662
 **********
 **   18 **HESSE 
 **********

 FCN=   1684.720     FROM HESSE     STATUS=OK            23 CALLS      270 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.289        .14037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9142        3.9735        .65904E-02   -.23651    
   3  Normalizat    .34233        .38790        .17359E-04   -1.2040    
   4  Prefactor     1.7766        .50163        .10443E-04   -.70060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95726e-11
Minuit parameter uncertainties:
  1  0.000109871
  2  468.185
  3  0.390998
  4  0.503083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204011': 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) = 1684.71974482
delta logL = 1.04127684608e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  1.777e+00  5.031e-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:  3.423e-01  3.910e-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/204011/cmap_HighResolution_649382401_649641601_4FGL_J0923.5+3852_daily_bin1582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-05', job_status='DONE', photon_flux_upper_limit='1.81e-07', time_completed='2021-08-31 10:49:37.659473', job_id='204011', GAL2='1.78', fit_tolerance='1e-08', EG2='0.34', EG='0.34', time_epoch_completed='1630432177.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.78', dlogl='1.04e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1582' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:49:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0136>
Subject: Job 204011: <4FGL_J0923.5+3852_daily_bin1582> in cluster <slac> Done

Job <4FGL_J0923.5+3852_daily_bin1582> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 10:35:27 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 10:35:28 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:35:28 2021
Terminated at Tue Aug 31 10:49:39 2021
Results reported at Tue Aug 31 10:49:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin1582 140.885 38.8743 649382401 649641601 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 :                                   635.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             223.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            852 sec.

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

