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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin865
RA = 140.885, Dec = 38.8743
tmin = 463536001, tmax = 463795201
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='198379', job_status='RUN', time_executed='2021-08-31 10:20:49.399880', time_epoch_executed='1630430449.4' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='865'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198379

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198379/ft1_4FGL_J0923.5+3852_daily_bin865.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198379/ft2_4FGL_J0923.5+3852_daily_bin865.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198379/ft1_4FGL_J0923.5+3852_daily_bin865.fits outfile=/scratch/kocevski/198379/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin865.fits ra=140.885 dec=38.8743 rad=12.0 tmin=463536001.0 tmax=463795201.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 4.28
user 3.25
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198379/ft1_filtered_4FGL_J0923.5+3852_daily_bin865.fits" evtable="EVENTS" scfile=/scratch/kocevski/198379/ft2_4FGL_J0923.5+3852_daily_bin865.fits sctable="SC_DATA" outfile=/scratch/kocevski/198379/ltcube_463536001_463795201_4FGL_J0923.5+3852_daily_bin865.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/198379/ft2_4FGL_J0923.5+3852_daily_bin865.fits
.....................!
real 11.76
user 11.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198379/ft1_filtered_4FGL_J0923.5+3852_daily_bin865.fits evtable="EVENTS" scfile=/scratch/kocevski/198379/ft2_4FGL_J0923.5+3852_daily_bin865.fits sctable="SC_DATA" expcube=/scratch/kocevski/198379/ltcube_463536001_463795201_4FGL_J0923.5+3852_daily_bin865.fits outfile=/scratch/kocevski/198379/expmap_463536001_463795201_4FGL_J0923.5+3852_daily_bin865.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/198379/ltcube_463536001_463795201_4FGL_J0923.5+3852_daily_bin865.fits
.....................!
real 190.93
user 185.49
sys 4.42

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/198379/ft1_filtered_4FGL_J0923.5+3852_daily_bin865.fits scfile=/scratch/kocevski/198379/ft2_4FGL_J0923.5+3852_daily_bin865.fits outfile=/scratch/kocevski/198379/cmap_463536001_463795201_4FGL_J0923.5+3852_daily_bin865.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.58
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6493       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1938       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11851E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    73.771       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.375       1.0000         .10000E-03   10000.    
    11 'norm      '    3.3224       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .26694       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6101       1.0000         .10000E-03   10000.    
    15 'norm      '    8.9876       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .25746E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7670       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0795       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15249E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.1184       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12261E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .21777E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.9443       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.8991       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.9666       1.0000         .10000E-03   10000.    
    28 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .84379       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0324       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=   5665.156     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     2755 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7.2316       -.60189E-05** at limit **
   2  Prefactor     5.6498        3.3332       -.10336E-06   -.11758E-03
   3  Prefactor     .10018E-03    14.794        .65446E-05** at limit **
   4  Prefactor     .10000E-03    3.5935       -.95648E-06** at limit **
   5  norm          .10000E-03    4.8982       -.16535E-05** at limit **
   6  Prefactor     4.1952        3.2567       -.67064E-06   -.29146E-03
   7  Prefactor     .31718E-03    176.92        .62192E-06** at limit **
   8  Prefactor     .10000E-03    1.0108       -.33084E-06** at limit **
   9  Prefactor     73.783        1.8110        .86994E-07   -.20063E-03
  10  Prefactor     10.376        4.1454       -.12862E-05   -.21246E-02
  11  norm          3.3227        2.1519        .23793E-06    .13093E-03
  12  Prefactor     .10009E-03    9.7189        .19852E-04** at limit **
  13  norm          .26751        .54668       -.10775E-05   -.37728E-03
  14  Prefactor     3.6070        4.2266        .23885E-05    .30852E-03
  15  norm          8.9877        1.0277       -.55875E-07   -.10224E-03
  16  Prefactor     .10000E-03    .43224        .39526E-06** at limit **
  17  Prefactor     3.7688        1.2870       -.11550E-05   -.15849E-02
  18  Prefactor     1.0767        1.2593        .12861E-05    .60690E-04
  19  Prefactor     .10010E-03    30.753        .15417E-05** at limit **
  20  norm          3.0950        2.1541        .19247E-05   -.22835E-03
  21  Prefactor     .10018E-03    20.349       -.23371E-05** at limit **
  22  Prefactor     .70276E-03    221.92       -.27997E-04** at limit **
  23  Prefactor     .10020E-03    11.054       -.17689E-04** at limit **
  24  norm          3.9464        1.0964        .67967E-06   -.99928E-04
  25  Prefactor     .10000E-03    2.2564        .12393E-06** at limit **
  26  Prefactor     4.8562        5.9392        .50597E-05   -.39322E-02
  27  Prefactor     8.9674        1.0458       -.10850E-06   -.10237E-03
  28  norm          .10000E-03    6.5773        .46169E-05** at limit **
  29  Normalizat    .84353        .19348       -.54069E-05   -.14271E-03
  30  Prefactor     1.0325        .20817        .27605E-05   -.98582E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 5.6498
  Prefactor  = 0.000100184
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.1952
  Prefactor  = 0.000317178
  Prefactor  = 0.0001
  Prefactor  = 73.7832
  Prefactor  = 10.3759
  norm       = 3.32265
  Prefactor  = 0.000100087
  norm       = 0.267515
  Prefactor  = 3.60701
  norm       = 8.98775
  Prefactor  = 0.000100001
  Prefactor  = 3.76878
  Prefactor  = 1.07668
  Prefactor  = 0.000100096
  norm       = 3.09501
  Prefactor  = 0.000100182
  Prefactor  = 0.000702758
  Prefactor  = 0.000100197
  norm       = 3.94642
  Prefactor  = 0.0001
  Prefactor  = 4.85622
  Prefactor  = 8.96743
  norm       = 0.000100001
  Normalizat = 0.84353
  Prefactor  = 1.03251
 **********
 **   18 **HESSE 
 **********

 FCN=   5665.156     FROM HESSE     STATUS=OK           660 CALLS     3415 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7.3252        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.6498        3.3471        .42252E-02   -1.5233    
   3  Prefactor     .10018E-03    14.911        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5856        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.8522        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1952        3.2923        .49198E-02   -1.5298    
   7  Prefactor     .31718E-03    313.90        .90712E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.0081        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     73.783        47.859        .11686E-02   -1.3988    
  10  Prefactor     10.376        4.2879        .31099E-02   -1.5064    
  11  norm          3.3227        2.2341        .55520E-02   -1.5343    
  12  Prefactor     .10009E-03    9.8096        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .26751        .64579        .10279E-01   -1.5605    
  14  Prefactor     3.6070        4.6313        .53164E-02   -1.5328    
  15  norm          8.9877        6.8299        .33423E-02   -1.5108    
  16  Prefactor     .10000E-03    1.0058        .39531E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.7688        5.3257        .52002E-02   -1.5320    
  18  Prefactor     1.0767        16.439        .11602E-01   -1.5500    
  19  Prefactor     .10010E-03    31.068        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0950        14.217        .57401E-02   -1.5356    
  21  Prefactor     .10018E-03    20.445        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .70276E-03    45.320        .12372       -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10020E-03    11.016        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.9464        11.699        .50779E-02   -1.5311    
  25  Prefactor     .10000E-03    2.2430        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.8562        44.425        .45431E-02   -1.5267    
  27  Prefactor     8.9674        6.1368        .33463E-02   -1.5109    
  28  norm          .10000E-03    6.5532        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .84353        .18668        .44179E-01   -.98474    
  30  Prefactor     1.0325        .18630        .41072E-01   -.91653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18889e-06
Minuit parameter uncertainties:
  1  0.000398857
  2  3.34719
  3  0.00331115
  4  8.12372e-06
  5  2.87143e-05
  6  3.29247
  7  0.524963
  8  9.81344e-07
  9  47.8838
  10  4.28798
  11  2.23415
  12  0.00184482
  13  0.645809
  14  4.63175
  15  6.83048
  16  7.35974e-05
  17  5.32641
  18  8.4165
  19  0.00344993
  20  13.2718
  21  0.00386005
  22  0.330807
  23  0.00294957
  24  11.706
  25  1.87973e-07
  26  29.4047
  27  6.13722
  28  0.000182649
  29  0.186821
  30  0.186414
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  1.033e+00  1.864e-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:  8.435e-01  1.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.57
Ra Dec: 140.885 38.874
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 3.68e-08 +/- 2.79e-08
Energy Flux (Fixed Index): 9.77e-06 +/- 7.43e-06

TS (Fixed Index): 3.57
Ra Dec: 140.885 38.874
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/198379/likelihoodResults_463536001_463795201_4FGL_J0923.5+3852_daily_bin865.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) = 5661.92651657
delta logL = 3.22947003924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5661.87795454
delta logL = 3.2780320699

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.325       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0863       1.0000          .0000       5.0000    
     3 'Normalizat'    .87874       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99458       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=   5661.878     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      206 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.329        6.6970        .29762E-02   -.37512E-04
   2  alpha         1.0865        .38326        .31021       -.26761E-04
   3  Normalizat    .87882        .16403        .44629E-01    .19727E-04
   4  Prefactor     .99453        .18051        .46199E-01    .55720E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.3288
  alpha      = 1.08653
  Normalizat = 0.878816
  Prefactor  = 0.994531
 **********
 **   18 **HESSE 
 **********

 FCN=   5661.878     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .50E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.329        8.1060        .11905E-03   -1.5035    
   2  alpha         1.0865        .47336        .13405E-02   -.60090    
   3  Normalizat    .87882        .18677        .24763E-03   -.97209    
   4  Prefactor     .99453        .20554        .25610E-03   -.92912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97054e-13
Minuit parameter uncertainties:
  1  8.10679
  2  0.47762
  3  0.186903
  4  0.205702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198379': 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) = 5661.87795429
delta logL = 3.27803231813

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  9.945e-01  2.057e-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:  8.788e-01  1.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.18
Ra Dec: 140.885 38.874
Photon Index (Free Index): 1.09 +/- 0.48
Photon Flux (Free Index): 2.07e-08 +/- 1.36e-08
Energy Flux (Free Index): 3.53e-05 +/- 2.85e-05

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/198379/cmap_HighResolution_463536001_463795201_4FGL_J0923.5+3852_daily_bin865.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-05', comment='SUCCESS', photon_flux='3.68e-08', energy_flux2='3.53e-05', photon_flux_error='2.79e-08', dlogl='3.28e+00', energy_flux='9.77e-06', photon_flux2='2.07e-08', job_status='DONE', time_completed='2021-08-31 10:33:42.082852', photon_index_error2='0.48', photon_index2='1.09', ts='3.57', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='2.85e-05', EG='0.84', time_epoch_completed='1630431222.08', return_code='0', job_id='198379', GAL2='0.99', EG2='0.88', return_code2='0', energy_flux_error='7.43e-06', photon_flux_error2='1.36e-08', ts2='10.18', photon_index='2.61' WHERE bin_id='865' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:33:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 198379: <4FGL_J0923.5+3852_daily_bin865> in cluster <slac> Done

Job <4FGL_J0923.5+3852_daily_bin865> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 10:20:28 2021
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 10:20:29 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:20:29 2021
Terminated at Tue Aug 31 10:33:42 2021
Results reported at Tue Aug 31 10:33:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin865 140.885 38.8743 463536001 463795201 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 :                                   767.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             364.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            794 sec.

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

