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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin1556
RA = 140.885, Dec = 38.8743
tmin = 642643201, tmax = 642902401
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='203970', job_status='RUN', time_executed='2021-08-31 10:35:36.691735', time_epoch_executed='1630431336.69' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='1556'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/203970

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/203970/ft1_4FGL_J0923.5+3852_daily_bin1556.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/203970/ft2_4FGL_J0923.5+3852_daily_bin1556.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/203970/ft1_4FGL_J0923.5+3852_daily_bin1556.fits outfile=/scratch/kocevski/203970/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1556.fits ra=140.885 dec=38.8743 rad=12.0 tmin=642643201.0 tmax=642902401.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.54
user 3.30
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/203970/ft1_filtered_4FGL_J0923.5+3852_daily_bin1556.fits" evtable="EVENTS" scfile=/scratch/kocevski/203970/ft2_4FGL_J0923.5+3852_daily_bin1556.fits sctable="SC_DATA" outfile=/scratch/kocevski/203970/ltcube_642643201_642902401_4FGL_J0923.5+3852_daily_bin1556.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/203970/ft2_4FGL_J0923.5+3852_daily_bin1556.fits
.....................!
real 12.24
user 11.82
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/203970/ft1_filtered_4FGL_J0923.5+3852_daily_bin1556.fits evtable="EVENTS" scfile=/scratch/kocevski/203970/ft2_4FGL_J0923.5+3852_daily_bin1556.fits sctable="SC_DATA" expcube=/scratch/kocevski/203970/ltcube_642643201_642902401_4FGL_J0923.5+3852_daily_bin1556.fits outfile=/scratch/kocevski/203970/expmap_642643201_642902401_4FGL_J0923.5+3852_daily_bin1556.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/203970/ltcube_642643201_642902401_4FGL_J0923.5+3852_daily_bin1556.fits
.....................!
real 192.40
user 185.88
sys 5.56

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/203970/ft1_filtered_4FGL_J0923.5+3852_daily_bin1556.fits scfile=/scratch/kocevski/203970/ft2_4FGL_J0923.5+3852_daily_bin1556.fits outfile=/scratch/kocevski/203970/cmap_642643201_642902401_4FGL_J0923.5+3852_daily_bin1556.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.65
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/203970/ft1_filtered_4FGL_J0923.5+3852_daily_bin1556.fits scfile=/scratch/kocevski/203970/ft2_4FGL_J0923.5+3852_daily_bin1556.fits outfile=/scratch/kocevski/203970/cmap_HighResolution_642643201_642902401_4FGL_J0923.5+3852_daily_bin1556.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.67
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.671       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4660       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.517       1.0000         .10000E-03   10000.    
     5 'norm      '    6.1263       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7197       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14290E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6801       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.103       1.0000         .10000E-03   10000.    
    13 'norm      '    .98565       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .47866       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .28576E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3428       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5292       1.0000         .10000E-03   10000.    
    20 'norm      '    .34915E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10541E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.123       1.0000         .10000E-03   10000.    
    24 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.4637       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.4595       1.0000         .10000E-03   10000.    
    28 'norm      '    2.8875       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .78147       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1117       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=   5563.321     FROM MIGRAD    STATUS=CONVERGED    795 CALLS     3425 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.670        18.323        .22130E-06   -.43139E-04
   2  Prefactor     .10000E-03    1.8913        .31823E-07** at limit **
   3  Prefactor     2.4643        62.108       -.56133E-05    .70519E-04
   4  Prefactor     20.521        14.507        .33088E-06   -.68287E-04
   5  norm          6.1258        6.0834       -.14109E-07   -.80466E-04
   6  Prefactor     4.7179        2.8933        .20340E-07   -.80873E-04
   7  Prefactor     .10001E-03    127.21        .14020E-05** at limit **
   8  Prefactor     6.6792        3.6719       -.55786E-08   -.11692E-03
   9  Prefactor     .10000E-03    9.9858        .16825E-06** at limit **
  10  Prefactor     .10000E-03    1.6039        .22236E-06** at limit **
  11  norm          .10000E-03    .50508        .69236E-07** at limit **
  12  Prefactor     12.135        15.032       -.70610E-06   -.32050E-03
  13  norm          .98558        .47895       -.29811E-07   -.14039E-02
  14  Prefactor     .10000E-03    1.7353        .89175E-07** at limit **
  15  norm          .43489        13.805       -.43492E-05    .23235E-04
  16  Prefactor     .10000E-03    1.2083        .19050E-06** at limit **
  17  Prefactor     2.3409        4.4053        .50051E-07    .19847E-03
  18  Prefactor     .10000E-03    3.7506       -.43843E-06** at limit **
  19  Prefactor     1.4789        67.050       -.12103E-05   -.51255E-04
  20  norm          .10001E-03    55.753        .11555E-04** at limit **
  21  Prefactor     .10001E-03    35.936        .17393E-05** at limit **
  22  Prefactor     .10000E-03    21.177       -.23574E-07** at limit **
  23  Prefactor     25.121        12.564       -.55169E-08   -.88583E-04
  24  norm          .10000E-03    9.2864       -.11880E-06** at limit **
  25  Prefactor     3.4640        4.4982        .50199E-06    .25652E-03
  26  Prefactor     .10000E-03    31.071       -.20515E-06** at limit **
  27  Prefactor     1.4589        5.0864       -.94478E-06   -.40956E-04
  28  norm          2.8886        6.8948       -.25375E-07    .25401E-04
  29  Normalizat    .78180        .17967       -.41162E-06   -.48060E-03
  30  Prefactor     1.1114        .19253       -.23680E-07   -.47425E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.6702
  Prefactor  = 0.0001
  Prefactor  = 2.46425
  Prefactor  = 20.5214
  norm       = 6.12579
  Prefactor  = 4.71791
  Prefactor  = 0.000100009
  Prefactor  = 6.67924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.1351
  norm       = 0.985584
  Prefactor  = 0.0001
  norm       = 0.434894
  Prefactor  = 0.000100001
  Prefactor  = 2.34093
  Prefactor  = 0.0001
  Prefactor  = 1.47885
  norm       = 0.000100006
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 25.1211
  norm       = 0.0001
  Prefactor  = 3.46401
  Prefactor  = 0.0001
  Prefactor  = 1.45893
  norm       = 2.88863
  Normalizat = 0.781799
  Prefactor  = 1.11138
 **********
 **   18 **HESSE 
 **********

 FCN=   5563.321     FROM HESSE     STATUS=OK           594 CALLS     4019 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.670        18.321        .80647E-04   -1.4714    
   2  Prefactor     .10000E-03    1.9146        .10002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4643        63.515        .13021E-02   -1.5394    
   4  Prefactor     20.521        14.532        .88426E-04   -1.4802    
   5  norm          6.1258        6.0790        .16220E-03   -1.5213    
   6  Prefactor     4.7179        2.8906        .94036E-04   -1.5274    
   7  Prefactor     .10001E-03    128.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.6792        3.6723        .10251E-03   -1.5191    
   9  Prefactor     .10000E-03    9.9911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.6397        .92372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .50727        .51779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.135        15.959        .11515E-03   -1.5011    
  13  norm          .98558        .46889        .33980E-04   -1.5509    
  14  Prefactor     .10000E-03    1.7792        .19029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .43489        41.396        .29842E-02   -1.5576    
  16  Prefactor     .10000E-03    5.8308        .15377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.3409        4.4094        .20304E-03   -1.5402    
  18  Prefactor     .10000E-03    3.7653        .14120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4789        67.736        .34520E-03   -1.5465    
  20  norm          .10001E-03    70.244        .46516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    36.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     25.121        12.569        .79921E-04   -1.4705    
  24  norm          .10000E-03    9.3431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.4640        4.4065        .15017E-03   -1.5336    
  26  Prefactor     .10000E-03    31.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.4589        4.9439        .26118E-03   -1.5466    
  28  norm          2.8886        6.8712        .23916E-03   -1.5368    
  29  Normalizat    .78180        .21149        .25420E-03   -1.0075    
  30  Prefactor     1.1114        .22824        .24672E-03   -.89104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73523e-09
Minuit parameter uncertainties:
  1  18.3254
  2  5.4815e-06
  3  25.0504
  4  14.5341
  5  6.07957
  6  2.89071
  7  0.00210285
  8  3.67246
  9  2.84046e-05
  10  1.83122e-05
  11  2.81669e-06
  12  15.9645
  13  0.468896
  14  1.19636e-05
  15  8.49099
  16  0.000117842
  17  4.41001
  18  4.03046e-05
  19  20.0407
  20  0.00131669
  21  0.00106534
  22  9.20415e-05
  23  12.5706
  24  1.01827e-05
  25  4.40696
  26  0.000225461
  27  4.94526
  28  6.87303
  29  0.211707
  30  0.228441
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  4.349e-01  8.491e+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.111e+00  2.284e-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:  7.818e-01  2.117e-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: 7.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/203970/likelihoodResults_642643201_642902401_4FGL_J0923.5+3852_daily_bin1556.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) = 5563.30466405
delta logL = 0.0161304419753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5563.26226968
delta logL = 0.0585248089428

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16255       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .76258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1265       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=   5563.262     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      239 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16300        21.481        .18462E-01   -.40011E-03
   2  alpha         5.0000        4.7957        .46267    ** at limit **
   3  Normalizat    .76230        .51627E-01    .43120E-01   -.81902E-04
   4  Prefactor     1.1266        .52100E-01    .55473E-01   -.45560E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.163003
  alpha      = 5
  Normalizat = 0.762298
  Prefactor  = 1.12663
 **********
 **   18 **HESSE 
 **********

 FCN=   5563.262     FROM HESSE     STATUS=OK            31 CALLS      270 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16300        .49690        .72705E-03   -1.5627    
   2  alpha         5.0000        4.7542        .88664E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .76230        .20567        .25718E-03   -1.0148    
   4  Prefactor     1.1266        .22919        .24528E-03   -.88620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23174e-10
Minuit parameter uncertainties:
  1  0.496913
  2  3.7783e-05
  3  0.205878
  4  0.229395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/203970': 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) = 5563.26226719
delta logL = 0.0585272986209

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.630e-01  4.969e-01  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  5.000e+00  3.778e-05  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.127e+00  2.294e-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:  7.623e-01  2.059e-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/203970/cmap_HighResolution_642643201_642902401_4FGL_J0923.5+3852_daily_bin1556.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-05', job_status='DONE', photon_flux_upper_limit='7.84e-08', time_completed='2021-08-31 10:49:20.569632', job_id='203970', GAL2='1.13', fit_tolerance='1e-08', EG2='0.76', EG='0.78', time_epoch_completed='1630432160.57', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='5.85e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1556' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:49:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 203970: <4FGL_J0923.5+3852_daily_bin1556> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin1556 140.885 38.8743 642643201 642902401 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 :                                   811.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            837 sec.

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

