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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin178
RA = 140.885, Dec = 38.8743
tmin = 285465601, tmax = 285724801
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='190258', job_status='RUN', time_executed='2021-08-31 09:56:16.280583', time_epoch_executed='1630428976.28' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='178'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/190258

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/190258/ft1_4FGL_J0923.5+3852_daily_bin178.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/190258/ft2_4FGL_J0923.5+3852_daily_bin178.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/190258/ft1_4FGL_J0923.5+3852_daily_bin178.fits outfile=/scratch/kocevski/190258/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin178.fits ra=140.885 dec=38.8743 rad=12.0 tmin=285465601.0 tmax=285724801.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.59
user 3.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/190258/ft1_filtered_4FGL_J0923.5+3852_daily_bin178.fits" evtable="EVENTS" scfile=/scratch/kocevski/190258/ft2_4FGL_J0923.5+3852_daily_bin178.fits sctable="SC_DATA" outfile=/scratch/kocevski/190258/ltcube_285465601_285724801_4FGL_J0923.5+3852_daily_bin178.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/190258/ft2_4FGL_J0923.5+3852_daily_bin178.fits
.....................!
real 11.93
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/190258/ft1_filtered_4FGL_J0923.5+3852_daily_bin178.fits evtable="EVENTS" scfile=/scratch/kocevski/190258/ft2_4FGL_J0923.5+3852_daily_bin178.fits sctable="SC_DATA" expcube=/scratch/kocevski/190258/ltcube_285465601_285724801_4FGL_J0923.5+3852_daily_bin178.fits outfile=/scratch/kocevski/190258/expmap_285465601_285724801_4FGL_J0923.5+3852_daily_bin178.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/190258/ltcube_285465601_285724801_4FGL_J0923.5+3852_daily_bin178.fits
.....................!
real 189.63
user 185.17
sys 4.07

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/190258/ft1_filtered_4FGL_J0923.5+3852_daily_bin178.fits scfile=/scratch/kocevski/190258/ft2_4FGL_J0923.5+3852_daily_bin178.fits outfile=/scratch/kocevski/190258/cmap_285465601_285724801_4FGL_J0923.5+3852_daily_bin178.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/190258/ft1_filtered_4FGL_J0923.5+3852_daily_bin178.fits scfile=/scratch/kocevski/190258/ft2_4FGL_J0923.5+3852_daily_bin178.fits outfile=/scratch/kocevski/190258/cmap_HighResolution_285465601_285724801_4FGL_J0923.5+3852_daily_bin178.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.748       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5504       1.0000         .10000E-03   10000.    
     5 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3999       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .31892E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .50959E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.131       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3536       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5817       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7527       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5046       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.818       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.127       1.0000         .10000E-03   10000.    
    20 'norm      '    19.015       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .14557E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.9686       1.0000         .10000E-03   10000.    
    28 'norm      '    2.0600       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1734       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .81480       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=   6028.531     FROM MIGRAD    STATUS=CONVERGED    801 CALLS     3972 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.750        11.621       -.52971E-07   -.40861E-05
   2  Prefactor     .10000E-03    .77259        .14402E-07** at limit **
   3  Prefactor     .10000E-03    12.114        .12163E-06** at limit **
   4  Prefactor     9.5544        10.534       -.28523E-06   -.52672E-05
   5  norm          .10000E-03    3.2913        .10494E-07** at limit **
   6  Prefactor     4.3986        2.3599        .23040E-06   -.27216E-03
   7  Prefactor     .10000E-03    446.97        .10884E-05** at limit **
   8  Prefactor     .54931E-01    90.322       -.63439E-05    .21910E-04
   9  Prefactor     31.056        41.270       -.35409E-07   -.20113E-04
  10  Prefactor     1.3574        3.5856       -.31408E-06   -.18257E-03
  11  norm          1.5818        1.3919       -.17630E-07    .65651E-05
  12  Prefactor     1.7457        79.716       -.42536E-05   -.37980E-05
  13  norm          .10000E-03    .92356E-01    .45747E-07** at limit **
  14  Prefactor     .10000E-03    .84777        .41907E-07** at limit **
  15  norm          .10001E-03    32.765       -.72709E-05** at limit **
  16  Prefactor     2.4990        2.6741       -.31496E-06   -.30932E-03
  17  Prefactor     .10000E-03    1.0145       -.26761E-08** at limit **
  18  Prefactor     10.821        10.133       -.27675E-07   -.47610E-04
  19  Prefactor     25.112        27.387        .10120E-05   -.89421E-04
  20  norm          19.017        14.663       -.71047E-07   -.16816E-04
  21  Prefactor     .10000E-03    24.967       -.52235E-06** at limit **
  22  Prefactor     .10000E-03    24.133        .92562E-06** at limit **
  23  Prefactor     .10000E-03    2.5140       -.55706E-09** at limit **
  24  norm          .10000E-03    3.7390       -.15895E-06** at limit **
  25  Prefactor     .10001E-03    2.8700        .11285E-05** at limit **
  26  Prefactor     .10000E-03    8.5915       -.20045E-08** at limit **
  27  Prefactor     6.9717        4.5489        .66740E-06    .65459E-03
  28  norm          2.0602        4.3441       -.41765E-06   -.25010E-04
  29  Normalizat    1.1732        .19733       -.18700E-05    .50480E-05
  30  Prefactor     .81481        .20919        .35914E-05   -.12132E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.55439
  norm       = 0.0001
  Prefactor  = 4.39856
  Prefactor  = 0.0001
  Prefactor  = 0.0549311
  Prefactor  = 31.056
  Prefactor  = 1.35741
  norm       = 1.58177
  Prefactor  = 1.74571
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 2.499
  Prefactor  = 0.0001
  Prefactor  = 10.8208
  Prefactor  = 25.1123
  norm       = 19.0169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 6.97171
  norm       = 2.06024
  Normalizat = 1.17319
  Prefactor  = 0.814807
 **********
 **   18 **HESSE 
 **********

 FCN=   6028.531     FROM HESSE     STATUS=OK           600 CALLS     4572 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.750        11.619        .10093E-03   -1.4914    
   2  Prefactor     .10000E-03    .77490        .66643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.5544        10.529        .12967E-03   -1.5090    
   5  norm          .10000E-03    3.3821        .27500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3986        2.3467        .83667E-04   -1.5288    
   7  Prefactor     .10000E-03    448.08        .39522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .54931E-01    6.6074        .37605E-01   -1.5661    
   9  Prefactor     31.056        40.793        .71812E-04   -1.4593    
  10  Prefactor     1.3574        3.5129        .20635E-03   -1.5475    
  11  norm          1.5818        1.3842        .83546E-04   -1.5456    
  12  Prefactor     1.7457        79.261        .31665E-03   -1.5444    
  13  norm          .10000E-03    .94401E-01    .23068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .85945        .69782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    36.995        .31506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.4990        2.6204        .11543E-03   -1.5392    
  17  Prefactor     .10000E-03    1.0193        .76374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.821        10.113        .12181E-03   -1.5050    
  19  Prefactor     25.112        27.242        .79913E-04   -1.4705    
  20  norm          19.017        14.655        .91850E-04   -1.4836    
  21  Prefactor     .10000E-03    25.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.5192        .12024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.7459        .14665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    7.8328        .20154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.6049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.9717        4.4857        .12704E-03   -1.5180    
  28  norm          2.0602        4.3155        .22931E-03   -1.5421    
  29  Normalizat    1.1732        .19765        .21548E-03   -.87435    
  30  Prefactor     .81481        .20863        .28292E-03   -.99185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62727e-09
Minuit parameter uncertainties:
  1  11.6205
  2  5.38737e-07
  3  4.08581e-06
  4  10.5307
  5  1.63604e-05
  6  2.34679
  7  0.000180499
  8  1.20395
  9  40.8294
  10  3.51341
  11  1.38427
  12  23.5584
  13  1.46628e-07
  14  1.18414e-07
  15  0.000999141
  16  2.62054
  17  9.71283e-07
  18  10.1143
  19  27.2554
  20  14.6579
  21  0.000111742
  22  0.000123663
  23  1.29554e-06
  24  6.3407e-06
  25  0.000431129
  26  3.28383e-06
  27  4.48593
  28  4.31618
  29  0.19778
  30  0.208837
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.000e-04  9.991e-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:  8.148e-01  2.088e-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.173e+00  1.978e-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.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.13e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/190258/likelihoodResults_285465601_285724801_4FGL_J0923.5+3852_daily_bin178.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) = 6028.53075243
delta logL = -0.000128812162984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6028.53058467
delta logL = 3.89517344956e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26187E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7621       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1733       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81470       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=   6027.940     FROM MIGRAD    STATUS=CONVERGED    139 CALLS      291 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1092        49.568        .19971E-03    .32493E-03
   2  alpha         4.6281        3.1710        .44347E-01    .50599E-05
   3  Normalizat    1.0982        .18357        .22154E-03    .90829E-05
   4  Prefactor     .86514        .19778        .27516E-03   -.16919E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.10918
  alpha      = 4.62808
  Normalizat = 1.09824
  Prefactor  = 0.865137
 **********
 **   18 **HESSE 
 **********

 FCN=   6027.940     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1092        2.9298        .79885E-05   -1.5497    
   2  alpha         4.6281        4.0022        .17739E-02    1.0183    
   3  Normalizat    1.0982        .19626        .88617E-05   -.89808    
   4  Prefactor     .86514        .21185        .11006E-04   -.97370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69173e-10
Minuit parameter uncertainties:
  1  2.93014
  2  1.80589
  3  0.196388
  4  0.21205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/190258': 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) = 6027.93962242
delta logL = 0.59100120353

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.109e+00  2.930e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  4.628e+00  1.806e+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:  8.651e-01  2.120e-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.098e+00  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 140.885 38.874
Photon Index (Free Index): 4.63 +/- 1.81
Photon Flux (Free Index): 5.80e-08 +/- 5.85e-08
Energy Flux (Free Index): 8.42e-06 +/- 8.53e-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/190258/cmap_HighResolution_285465601_285724801_4FGL_J0923.5+3852_daily_bin178.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.13e-05', comment='SUCCESS', energy_flux2='8.42e-06', dlogl='5.91e-01', photon_flux2='5.80e-08', job_status='DONE', time_completed='2021-08-31 10:11:31.431949', photon_index_error2='1.81', photon_index2='4.63', ts='-0.00', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='8.00e-08', energy_flux_error2='8.53e-06', EG='1.17', time_epoch_completed='1630429891.43', return_code='0', job_id='190258', GAL2='0.87', EG2='1.10', return_code2='0', photon_flux_error2='5.85e-08', ts2='1.29', photon_index='2.61' WHERE bin_id='178' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:11:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 190258: <4FGL_J0923.5+3852_daily_bin178> in cluster <slac> Done

Job <4FGL_J0923.5+3852_daily_bin178> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Aug 31 09:55:39 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 09:55:41 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:55:41 2021
Terminated at Tue Aug 31 10:11:33 2021
Results reported at Tue Aug 31 10:11:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin178 140.885 38.8743 285465601 285724801 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 :                                   905.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            954 sec.

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

