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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1404
RA = 155.788, Dec = 39.8226
tmin = 603244801, tmax = 603504001
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='841014', job_status='RUN', time_executed='2021-09-01 19:38:09.449941', time_epoch_executed='1630550289.45' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/841014

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/841014/ft1_4FGL_J1023.1+3949_daily_bin1404.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/841014/ft2_4FGL_J1023.1+3949_daily_bin1404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/841014/ft1_4FGL_J1023.1+3949_daily_bin1404.fits outfile=/scratch/kocevski/841014/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1404.fits ra=155.788 dec=39.8226 rad=12.0 tmin=603244801.0 tmax=603504001.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 2.95
user 2.71
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/841014/ft2_4FGL_J1023.1+3949_daily_bin1404.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/841014/ft2_4FGL_J1023.1+3949_daily_bin1404.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/841014/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1404.fits evtable="EVENTS" outfile="/scratch/kocevski/841014/ft1_filtered_4FGL_J1023.1+3949_daily_bin1404.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/841014/ft1_filtered_4FGL_J1023.1+3949_daily_bin1404.fits" evtable="EVENTS" scfile=/scratch/kocevski/841014/ft2_4FGL_J1023.1+3949_daily_bin1404.fits sctable="SC_DATA" outfile=/scratch/kocevski/841014/ltcube_603244801_603504001_4FGL_J1023.1+3949_daily_bin1404.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/841014/ft2_4FGL_J1023.1+3949_daily_bin1404.fits
.....................!
real 15.76
user 15.32
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/841014/ft1_filtered_4FGL_J1023.1+3949_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/841014/ft2_4FGL_J1023.1+3949_daily_bin1404.fits sctable="SC_DATA" expcube=/scratch/kocevski/841014/ltcube_603244801_603504001_4FGL_J1023.1+3949_daily_bin1404.fits outfile=/scratch/kocevski/841014/expmap_603244801_603504001_4FGL_J1023.1+3949_daily_bin1404.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/841014/ltcube_603244801_603504001_4FGL_J1023.1+3949_daily_bin1404.fits
.....................!
real 191.51
user 186.03
sys 4.95

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 207 point sources and 0 extended sources

Setting source of interest to:
4FGL J1023.1+3949 @ 155.788 39.8226

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/841014/ft1_filtered_4FGL_J1023.1+3949_daily_bin1404.fits scfile=/scratch/kocevski/841014/ft2_4FGL_J1023.1+3949_daily_bin1404.fits outfile=/scratch/kocevski/841014/cmap_603244801_603504001_4FGL_J1023.1+3949_daily_bin1404.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=155.788 yref=39.8226 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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/841014/ft1_filtered_4FGL_J1023.1+3949_daily_bin1404.fits scfile=/scratch/kocevski/841014/ft2_4FGL_J1023.1+3949_daily_bin1404.fits outfile=/scratch/kocevski/841014/cmap_HighResolution_603244801_603504001_4FGL_J1023.1+3949_daily_bin1404.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=155.788 yref=39.8226 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/841014/ft1_filtered_4FGL_J1023.1+3949_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/841014/ft2_4FGL_J1023.1+3949_daily_bin1404.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/841014/Model_4FGL_J1023.1+3949_daily_bin1404.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/841014/ft1_filtered_4FGL_J1023.1+3949_daily_bin1404.fits......................................!
real 16.55
user 15.29
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/841014/ft1_filtered_4FGL_J1023.1+3949_daily_bin1404.fits', '/scratch/kocevski/841014/ft2_4FGL_J1023.1+3949_daily_bin1404.fits', expMap='/scratch/kocevski/841014/expmap_603244801_603504001_4FGL_J1023.1+3949_daily_bin1404.fits', expCube='/scratch/kocevski/841014/ltcube_603244801_603504001_4FGL_J1023.1+3949_daily_bin1404.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/841014/Model_4FGL_J1023.1+3949_daily_bin1404.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1023.1+3949'

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  9.888e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.250e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.077e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  5.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/841014/ft1_filtered_4FGL_J1023.1+3949_daily_bin1404.fits
Spacecraft file(s): /scratch/kocevski/841014/ft2_4FGL_J1023.1+3949_daily_bin1404.fits
Exposure map: /scratch/kocevski/841014/expmap_603244801_603504001_4FGL_J1023.1+3949_daily_bin1404.fits
Exposure cube: /scratch/kocevski/841014/ltcube_603244801_603504001_4FGL_J1023.1+3949_daily_bin1404.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/841014/Model_4FGL_J1023.1+3949_daily_bin1404.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 481.868451613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 478.578504658

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4644       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.074       1.0000         .10000E-03   10000.    
     3 'norm      '    3.3116       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9884       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.7686       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8394       1.0000         .10000E-03   10000.    
     7 'norm      '    938.45       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13055E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0098       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .28057E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34289       1.0000         .10000E-03   10000.    
    12 'norm      '    .19903E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    462.83       1.0000         .10000E-03   10000.    
    14 'norm      '    .18603E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .76009       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .41589       1.0000         .10000E-03   10000.    
    17 'Prefactor '    56.837       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .81895E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .23545       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .98463E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2909       1.0000         .10000E-03   10000.    
    23 'norm      '    1.1351       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10748E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.263       1.0000         .10000E-03   10000.    
    26 'norm      '    17.648       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .47608       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.5240       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   476.9011     FROM MIGRAD    STATUS=CONVERGED    344 CALLS      743 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        7120.4        .72585E-03** at limit **
   2  Prefactor    10000.0        8823.8        .10526E-04** at limit **
   3  norm         10000.0        9826.6        .23023E-04** at limit **
   4  Prefactor    10000.0        8732.9        .90085E-04** at limit **
   5  Prefactor    10000.0        9219.5       -.13381E-03** at limit **
   6  Prefactor    10000.0        5162.8       -.51024E-03** at limit **
   7  norm          877.99        839.76       -.18531E-04    .30998E-04
   8  Prefactor     .10000E-03    145.79       -.37563E-05** at limit **
   9  Prefactor     1.0098        9211.8         .0000         .0000    
  10  Prefactor     .10003E-03    656.76        .50251E-04** at limit **
  11  Prefactor     .10035E-03    1857.7        .87182E-04** at limit **
  12  norm          .10000E-03    14.799        .18340E-05** at limit **
  13  Prefactor     422.28        486.96        .16063E-04    .85481E-05
  14  norm          .10003E-03    148.38       -.24167E-05** at limit **
  15  Prefactor     .10014E-03    903.39        .14355E-04** at limit **
  16  Prefactor     .10001E-03    240.02        .12597E-04** at limit **
  17  Prefactor     55.196        55.539       -.33710E-05    .21812E-04
  18  Prefactor     .10000E-03    44.548       -.23466E-05** at limit **
  19  Prefactor     .10001E-03    164.30       -.78355E-05** at limit **
  20  Prefactor     .10000E-03    131.66       -.19114E-05** at limit **
  21  Prefactor     .10002E-03    346.03        .32157E-04** at limit **
  22  Prefactor     .10002E-03    598.05        .19760E-05** at limit **
  23  norm          1.1384        .86492        .40656E-07   -.19587E-03
  24  Prefactor     .10000E-03    17.582        .15612E-06** at limit **
  25  Prefactor     12.175        32.444       -.19905E-05    .60959E-05
  26  norm          17.798        36.555       -.96215E-06   -.61826E-06
  27  Normalizat    .30745        .78124       -.85664E-04   -.18669E-04
  28  Prefactor     1.6265        .99414        .39479E-04   -.71958E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 877.986
  Prefactor  = 0.0001
  Prefactor  = 1.00983
  Prefactor  = 0.000100026
  Prefactor  = 0.000100355
  norm       = 0.0001
  Prefactor  = 422.284
  norm       = 0.000100032
  Prefactor  = 0.00010014
  Prefactor  = 0.00010001
  Prefactor  = 55.1963
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.00010002
  norm       = 1.13839
  Prefactor  = 0.0001
  Prefactor  = 12.175
  norm       = 17.7985
  Normalizat = 0.307451
  Prefactor  = 1.62654
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   476.9011     FROM HESSE     STATUS=FAILED        41 CALLS      784 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        7603.1        .54317E-02    7.8539    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        8748.1        .24975E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm         10000.0        9948.5        .55614E-02   -4.7123    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        8661.3        .37939E-02   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        9063.5        .32053E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        5177.5        .76896E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          877.99        821.63        .34292E-03   -.96915    
   8  Prefactor     .10000E-03    147.33        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     588.11        586.66         .0000       -1.5507    
  10  Prefactor     .10003E-03    .24750        .50251E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10035E-03    .28151        .87182E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .20571        .18340E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     422.28        .95723        .16063E-04   -1.1569    
  14  norm          .10003E-03    .25737       -.24167E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10014E-03    .37762        .14355E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    .29825        .12597E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     55.196        .98558       -.33710E-05   -1.4221    
  18  Prefactor     .10000E-03    .20571       -.23466E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    .27269       -.78355E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .25696       -.19114E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    .20576        .32157E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    .23732        .19760E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.1384        1.1668        .40656E-07   -1.5495    
  24  Prefactor     .10000E-03    .20571        .15612E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.175        .99725       -.19905E-05   -1.5010    
  26  norm          17.798        1.0047       -.96215E-06   -1.4864    
  27  Normalizat    .30745        .64893       -.85664E-04   -1.2240    
  28  Prefactor     1.6265        1.0744        .39479E-04   -.74055    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.46213e-10
Minuit parameter uncertainties:
  1  4.09215
  2  0.144314
  3  1.31053
  4  0.22133
  5  0.125672
  6  1.23664
  7  833.629
  8  0.00023142
  9  1.32538
  10  0.000159812
  11  0.000632036
  12  1.27259e-06
  13  0.957226
  14  0.000180354
  15  0.000459401
  16  0.000110655
  17  0.985582
  18  4.94427e-06
  19  9.86758e-05
  20  5.70805e-07
  21  0.000129773
  22  0.000139417
  23  1.16686
  24  2.74733e-08
  25  0.997249
  26  1.00466
  27  0.665869
  28  1.0902
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 476.901067085

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  1.804e-04  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.250e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.077e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  5.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.627e+00  1.090e+00  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  3.075e-01  6.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 155.788 39.823
Photon Flux Upper Limit: 1.80e-06 ph cm-2 s-1
Energy Flux Upper Limit: 6.28e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/841014/likelihoodResults_603244801_603504001_4FGL_J1023.1+3949_daily_bin1404.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) = 476.901090652
delta logL = -2.35665398236e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 476.901086836
delta logL = -1.97514473825e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66728E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2528       1.0000          .0000       5.0000    
     3 'Normalizat'    .30696       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6271       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+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=   476.9011     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      240 TOTAL
                     EDM=   .80E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7685.1        .18776E-01** at limit **
   2  alpha         2.7997        3.0495        .16563       -.17159E-10
   3  Normalizat    .30744        .10401        .48042E-03   -.40051E-05
   4  Prefactor     1.6266        .13059        .27665E-03   -.23346E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.79973
  Normalizat = 0.307444
  Prefactor  = 1.62656
 **********
 **   18 **HESSE 
 **********

 FCN=   476.9011     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    195.97        .29827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7997        2.8325        .66254E-02    .12018    
   3  Normalizat    .30744        .75493        .19217E-04   -1.2240    
   4  Prefactor     1.6266        .97035        .11066E-04   -.74054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81651e-12
Minuit parameter uncertainties:
  1  5.17315e-05
  2  1958.41
  3  0.782319
  4  0.981895
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/841014': 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) = 476.901067042
delta logL = 4.26692849942e-08

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  5.173e-05  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.800e+00  1.958e+03  0.000e+00  5.000e+00 ( 1.000e+00)
331         beta:  1.077e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  5.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.627e+00  9.819e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  3.074e-01  7.823e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 155.788 39.823

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/841014/cmap_HighResolution_603244801_603504001_4FGL_J1023.1+3949_daily_bin1404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.28e-04', job_status='DONE', photon_flux_upper_limit='1.80e-06', time_completed='2021-09-01 19:44:51.554086', job_id='841014', GAL2='1.63', fit_tolerance='1e-08', EG2='0.31', EG='0.31', time_epoch_completed='1630550691.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.63', dlogl='4.27e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1404' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:44:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 841014: <4FGL_J1023.1+3949_daily_bin1404> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1404> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 19:35:18 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:35:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 19:35:53 2021
Terminated at Wed Sep  1 19:44:52 2021
Results reported at Wed Sep  1 19:44:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1404 155.788 39.8226 603244801 603504001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1023.1+3949 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   340.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   538 sec.
    Turnaround time :                            574 sec.

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

