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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin809
RA = 140.885, Dec = 38.8743
tmin = 449020801, tmax = 449280001
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='196539', job_status='RUN', time_executed='2021-08-31 10:16:09.046436', time_epoch_executed='1630430169.05' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='809'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/196539

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/196539/ft1_4FGL_J0923.5+3852_daily_bin809.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/196539/ft2_4FGL_J0923.5+3852_daily_bin809.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/196539/ft1_4FGL_J0923.5+3852_daily_bin809.fits outfile=/scratch/kocevski/196539/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin809.fits ra=140.885 dec=38.8743 rad=12.0 tmin=449020801.0 tmax=449280001.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.64
user 5.36
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/196539/ft1_filtered_4FGL_J0923.5+3852_daily_bin809.fits evtable="EVENTS" scfile=/scratch/kocevski/196539/ft2_4FGL_J0923.5+3852_daily_bin809.fits sctable="SC_DATA" expcube=/scratch/kocevski/196539/ltcube_449020801_449280001_4FGL_J0923.5+3852_daily_bin809.fits outfile=/scratch/kocevski/196539/expmap_449020801_449280001_4FGL_J0923.5+3852_daily_bin809.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/196539/ltcube_449020801_449280001_4FGL_J0923.5+3852_daily_bin809.fits
.....................!
real 191.46
user 187.00
sys 4.11

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/196539/ft1_filtered_4FGL_J0923.5+3852_daily_bin809.fits scfile=/scratch/kocevski/196539/ft2_4FGL_J0923.5+3852_daily_bin809.fits outfile=/scratch/kocevski/196539/cmap_449020801_449280001_4FGL_J0923.5+3852_daily_bin809.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/196539/ft1_filtered_4FGL_J0923.5+3852_daily_bin809.fits scfile=/scratch/kocevski/196539/ft2_4FGL_J0923.5+3852_daily_bin809.fits outfile=/scratch/kocevski/196539/cmap_HighResolution_449020801_449280001_4FGL_J0923.5+3852_daily_bin809.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=140.885 yref=38.8743 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10687E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5234       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.812       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    16.106       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .83598       1.0000         .10000E-03   10000.    
     7 'Prefactor '    102.22       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2914       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11481E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.357       1.0000         .10000E-03   10000.    
    13 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4084       1.0000         .10000E-03   10000.    
    15 'norm      '    .21830E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6981       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.719       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .97626       1.0000         .10000E-03   10000.    
    20 'norm      '    27.215       1.0000         .10000E-03   10000.    
    21 'Prefactor '    78.388       1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.778       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    12.915       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.2499       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.1224       1.0000         .10000E-03   10000.    
    28 'norm      '    5.0440       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .92678       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .81281       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=   5023.294     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     3933 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.506       -.41808E-07** at limit **
   2  Prefactor     6.5248        3.3433        .64233E-07   -.56479E-04
   3  Prefactor     21.825        20.138        .12998E-06   -.17880E-04
   4  Prefactor     .10000E-03    4.0630       -.27585E-07** at limit **
   5  norm          16.104        8.8589       -.70664E-07    .77615E-06
   6  Prefactor     .83620        2.3501        .65775E-06    .75597E-05
   7  Prefactor     102.25        74.218        .42267E-05    .24496E-03
   8  Prefactor     4.2921        4.1456        .53292E-07   -.24762E-03
   9  Prefactor     .10000E-03    47.469       -.14049E-05** at limit **
  10  Prefactor     .10000E-03    1.5968       -.11089E-06** at limit **
  11  norm          .10000E-03    .93949       -.29410E-07** at limit **
  12  Prefactor     38.309        24.262        .79717E-06   -.55490E-03
  13  norm          .10000E-03    .29398       -.25650E-06** at limit **
  14  Prefactor     1.4117        2.8164        .79069E-06    .50082E-03
  15  norm          .10077E-03    12.108        .18175E-05** at limit **
  16  Prefactor     1.6976        1.8651        .75064E-07   -.29523E-03
  17  Prefactor     .10000E-03    1.0439       -.14099E-07** at limit **
  18  Prefactor     13.711        12.702       -.30625E-06   -.68142E-04
  19  Prefactor     1.0044        12.755        .28445E-06   -.70192E-04
  20  norm          27.208        23.635       -.69260E-06   -.77957E-04
  21  Prefactor     78.381        44.770       -.11754E-05   -.79261E-04
  22  Prefactor     28.813        55.124        .76991E-05    .17353E-03
  23  Prefactor     .10000E-03    3.5555        .57696E-08** at limit **
  24  norm          12.920        14.765        .45952E-06   -.21932E-05
  25  Prefactor     .10000E-03    2.0757        .75714E-08** at limit **
  26  Prefactor     7.2671        33.539       -.50303E-06    .52614E-04
  27  Prefactor     5.1218        5.3082        .55951E-07   -.48184E-04
  28  norm          5.0417        12.155        .58941E-05   -.15150E-03
  29  Normalizat    .92644        .19835       -.35485E-05   -.30029E-04
  30  Prefactor     .81305        .19688        .23558E-05   -.21276E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.52484
  Prefactor  = 21.8248
  Prefactor  = 0.0001
  norm       = 16.1039
  Prefactor  = 0.836196
  Prefactor  = 102.25
  Prefactor  = 4.29206
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.3094
  norm       = 0.0001
  Prefactor  = 1.41172
  norm       = 0.000100774
  Prefactor  = 1.69763
  Prefactor  = 0.0001
  Prefactor  = 13.7109
  Prefactor  = 1.00443
  norm       = 27.2077
  Prefactor  = 78.3805
  Prefactor  = 28.8128
  Prefactor  = 0.0001
  norm       = 12.9204
  Prefactor  = 0.0001
  Prefactor  = 7.26713
  Prefactor  = 5.12182
  norm       = 5.04168
  Normalizat = 0.926436
  Prefactor  = 0.813052
 **********
 **   18 **HESSE 
 **********

 FCN=   5023.294     FROM HESSE     STATUS=OK           592 CALLS     4525 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.5248        3.3410        .89186E-04   -1.5197    
   3  Prefactor     21.825        20.133        .85764E-04   -1.4773    
   4  Prefactor     .10000E-03    4.0700        .13950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          16.104        8.8298        .99798E-04   -1.4905    
   6  Prefactor     .83620        2.2605        .16880E-03   -1.5525    
   7  Prefactor     102.25        75.573        .19884E-03   -1.3682    
   8  Prefactor     4.2921        4.1426        .13541E-03   -1.5294    
   9  Prefactor     .10000E-03    47.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.6277        .87304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .95896        .67045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     38.309        21.447        .64716E-04   -1.4469    
  13  norm          .10000E-03    .47561        .64678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.4117        2.4694        .13713E-03   -1.5470    
  15  norm          .10077E-03    73.102        .39908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6976        1.8475        .96087E-04   -1.5447    
  17  Prefactor     .10000E-03    1.0470        .70711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.711        13.433        .10814E-03   -1.4967    
  19  Prefactor     1.0044        64.566        .45452E-02   -1.5508    
  20  norm          27.208        23.669        .76793E-04   -1.4664    
  21  Prefactor     78.381        45.224        .45358E-04   -1.3935    
  22  Prefactor     28.813        56.467        .74683E-04   -1.4634    
  23  Prefactor     .10000E-03    3.5628        .13051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          12.920        14.776        .11146E-03   -1.4989    
  25  Prefactor     .10000E-03    2.0888        .99370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.2671        34.086        .14897E-03   -1.5169    
  27  Prefactor     5.1218        5.2925        .15876E-03   -1.5255    
  28  norm          5.0417        12.472        .89521E-03   -1.5259    
  29  Normalizat    .92644        .22535        .23134E-03   -.95537    
  30  Prefactor     .81305        .22603        .27053E-03   -.99249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19211e-08
Minuit parameter uncertainties:
  1  6.33668e-06
  2  3.34109
  3  20.1388
  4  1.73543e-06
  5  8.83051
  6  2.26075
  7  75.6441
  8  4.14286
  9  0.000298993
  10  3.64681e-06
  11  1.84472e-06
  12  21.4518
  13  8.02169e-06
  14  2.46958
  15  0.0150616
  16  1.84756
  17  1.10704e-06
  18  13.4355
  19  16.1236
  20  23.6767
  21  45.2439
  22  56.572
  23  1.454e-06
  24  14.7801
  25  5.4094e-07
  26  31.5066
  27  5.29299
  28  12.4788
  29  0.225579
  30  0.22629
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.008e-04  1.506e-02  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.131e-01  2.263e-01  0.000e+00  1.000e+01 ( 1.000e+00)
636        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
637        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
634   Normalization:  9.264e-01  2.256e-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: 9.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/196539/likelihoodResults_449020801_449280001_4FGL_J0923.5+3852_daily_bin809.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) = 5023.29388579
delta logL = -6.43195180601e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5023.28569515
delta logL = 0.00812632278485

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73125       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2409       1.0000          .0000       5.0000    
     3 'Normalizat'    .92053       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81616       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.

 FCN=   5023.286     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      378 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72805        62.266        .69087E-01    .25111E-03
   2  alpha         3.2406        3.3791        .43707        .14116E-04
   3  Normalizat    .92048        .20249E-01    .45163E-01    .37058E-03
   4  Prefactor     .81612        .22382E-01    .43927E-01    .33261E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.728054
  alpha      = 3.24062
  Normalizat = 0.920481
  Prefactor  = 0.816124
 **********
 **   18 **HESSE 
 **********

 FCN=   5023.286     FROM HESSE     STATUS=OK            31 CALLS      409 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72805        89.046        .23970E-02   -1.5537    
   2  alpha         3.2406        2.8963        .76543E-01    .30076    
   3  Normalizat    .92048        .21118        .23196E-03   -.95744    
   4  Prefactor     .81612        .22085        .27002E-03   -.99137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46366e-10
Minuit parameter uncertainties:
  1  16.1269
  2  8.17001
  3  0.211368
  4  0.221089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/196539': 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) = 5023.28569454
delta logL = 0.00812693333228

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  7.281e-01  1.613e+01  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  3.241e+00  8.170e+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.161e-01  2.211e-01  0.000e+00  1.000e+01 ( 1.000e+00)
636        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
637        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
634   Normalization:  9.205e-01  2.114e-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/196539/cmap_HighResolution_449020801_449280001_4FGL_J0923.5+3852_daily_bin809.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.45e-05', job_status='DONE', photon_flux_upper_limit='9.23e-08', time_completed='2021-08-31 10:30:08.516543', job_id='196539', GAL2='0.82', fit_tolerance='1e-08', EG2='0.92', EG='0.93', time_epoch_completed='1630431008.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='8.13e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='809' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:30:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 196539: <4FGL_J0923.5+3852_daily_bin809> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin809 140.885 38.8743 449020801 449280001 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 :                                   834.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            860 sec.

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

