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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin917
RA = 155.788, Dec = 39.8226
tmin = 477014401, tmax = 477273601
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='838489', job_status='RUN', time_executed='2021-09-01 19:25:55.342708', time_epoch_executed='1630549555.34' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='917'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838489

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838489/ft1_4FGL_J1023.1+3949_daily_bin917.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838489/ft2_4FGL_J1023.1+3949_daily_bin917.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838489/ft1_4FGL_J1023.1+3949_daily_bin917.fits outfile=/scratch/kocevski/838489/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin917.fits ra=155.788 dec=39.8226 rad=12.0 tmin=477014401.0 tmax=477273601.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.69
user 3.46
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/838489/ft1_filtered_4FGL_J1023.1+3949_daily_bin917.fits" evtable="EVENTS" scfile=/scratch/kocevski/838489/ft2_4FGL_J1023.1+3949_daily_bin917.fits sctable="SC_DATA" outfile=/scratch/kocevski/838489/ltcube_477014401_477273601_4FGL_J1023.1+3949_daily_bin917.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/838489/ft2_4FGL_J1023.1+3949_daily_bin917.fits
.....................!
real 12.56
user 12.20
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838489/ft1_filtered_4FGL_J1023.1+3949_daily_bin917.fits evtable="EVENTS" scfile=/scratch/kocevski/838489/ft2_4FGL_J1023.1+3949_daily_bin917.fits sctable="SC_DATA" expcube=/scratch/kocevski/838489/ltcube_477014401_477273601_4FGL_J1023.1+3949_daily_bin917.fits outfile=/scratch/kocevski/838489/expmap_477014401_477273601_4FGL_J1023.1+3949_daily_bin917.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/838489/ltcube_477014401_477273601_4FGL_J1023.1+3949_daily_bin917.fits
.....................!
real 190.54
user 185.39
sys 4.15

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/838489/ft1_filtered_4FGL_J1023.1+3949_daily_bin917.fits scfile=/scratch/kocevski/838489/ft2_4FGL_J1023.1+3949_daily_bin917.fits outfile=/scratch/kocevski/838489/cmap_477014401_477273601_4FGL_J1023.1+3949_daily_bin917.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/838489/ft1_filtered_4FGL_J1023.1+3949_daily_bin917.fits scfile=/scratch/kocevski/838489/ft2_4FGL_J1023.1+3949_daily_bin917.fits outfile=/scratch/kocevski/838489/cmap_HighResolution_477014401_477273601_4FGL_J1023.1+3949_daily_bin917.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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/838489/ft1_filtered_4FGL_J1023.1+3949_daily_bin917.fits evtable="EVENTS" scfile=/scratch/kocevski/838489/ft2_4FGL_J1023.1+3949_daily_bin917.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/838489/Model_4FGL_J1023.1+3949_daily_bin917.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/838489/ft1_filtered_4FGL_J1023.1+3949_daily_bin917.fits.....................!
real 52.27
user 50.91
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/838489/ft1_filtered_4FGL_J1023.1+3949_daily_bin917.fits', '/scratch/kocevski/838489/ft2_4FGL_J1023.1+3949_daily_bin917.fits', expMap='/scratch/kocevski/838489/expmap_477014401_477273601_4FGL_J1023.1+3949_daily_bin917.fits', expCube='/scratch/kocevski/838489/ltcube_477014401_477273601_4FGL_J1023.1+3949_daily_bin917.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/838489/Model_4FGL_J1023.1+3949_daily_bin917.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/838489/ft1_filtered_4FGL_J1023.1+3949_daily_bin917.fits
Spacecraft file(s): /scratch/kocevski/838489/ft2_4FGL_J1023.1+3949_daily_bin917.fits
Exposure map: /scratch/kocevski/838489/expmap_477014401_477273601_4FGL_J1023.1+3949_daily_bin917.fits
Exposure cube: /scratch/kocevski/838489/ltcube_477014401_477273601_4FGL_J1023.1+3949_daily_bin917.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/838489/Model_4FGL_J1023.1+3949_daily_bin917.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) = 5953.27841093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5004       1.0000         .10000E-03   10000.    
     3 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10491E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1701       1.0000         .10000E-03   10000.    
     7 'norm      '    27.815       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9529       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.6603       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3538       1.0000         .10000E-03   10000.    
    14 'norm      '    18.157       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11387E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .69187E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8457       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1116       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.919       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .82744E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.339       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.2231       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.540       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.2146       1.0000         .10000E-03   10000.    
    26 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .99191       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .79672       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.

 FCN=   5953.267     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     3538 TOTAL
                     EDM=   .97E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9787        .10199E-07** at limit **
   2  Prefactor     2.5007        1.9424       -.23873E-08   -.12855E-04
   3  norm          .10000E-03    10.388       -.61697E-08** at limit **
   4  Prefactor     .10000E-03    14.474        .22958E-06** at limit **
   5  Prefactor     .10000E-03    15.935       -.20057E-06** at limit **
   6  Prefactor     4.1715        9.6476       -.83836E-06    .20367E-05
   7  norm          27.825        14.170        .46056E-06    .37439E-04
   8  Prefactor     .10000E-03    2.3693        .17185E-08** at limit **
   9  Prefactor     1.9537        2.8004       -.87375E-08    .15428E-04
  10  Prefactor     .10000E-03    4.9931       -.13367E-06** at limit **
  11  Prefactor     .10000E-03    8.8601        .24114E-07** at limit **
  12  norm          9.6609        3.5186       -.13278E-07    .61284E-05
  13  Prefactor     1.3524        4.6842       -.17685E-07    .69881E-04
  14  norm          18.165        11.453       -.49862E-07   -.12962E-05
  15  Prefactor     .10000E-03    27.828        .19173E-06** at limit **
  16  Prefactor     .10000E-03    130.70        .92419E-05** at limit **
  17  Prefactor     2.8461        4.7552        .14978E-07    .10157E-04
  18  Prefactor     4.1269        5.0784       -.97817E-06   -.70486E-05
  19  Prefactor     20.916        25.688        .14585E-06    .25052E-05
  20  Prefactor     .10000E-03    596.60       -.47524E-05** at limit **
  21  Prefactor     17.346        27.940       -.66813E-06   -.10100E-04
  22  Prefactor     .10000E-03    85.225       -.27973E-06** at limit **
  23  norm          2.2231        .43872       -.19768E-07    .66405E-03
  24  Prefactor     12.546        16.810        .54318E-06    .28563E-05
  25  Prefactor     7.2237        16.574        .89377E-06   -.40436E-06
  26  norm          .10000E-03    3.9272       -.70588E-08** at limit **
  27  Normalizat    .99177        .16991        .18438E-06    .18827E-04
  28  Prefactor     .79672        .19847       -.32344E-06    .23921E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.5007
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.1715
  norm       = 27.8251
  Prefactor  = 0.0001
  Prefactor  = 1.95365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.66085
  Prefactor  = 1.35236
  norm       = 18.1655
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.8461
  Prefactor  = 4.12693
  Prefactor  = 20.9161
  Prefactor  = 0.0001
  Prefactor  = 17.346
  Prefactor  = 0.0001
  norm       = 2.22308
  Prefactor  = 12.5464
  Prefactor  = 7.22366
  norm       = 0.0001
  Normalizat = 0.991775
  Prefactor  = 0.796721
 **********
 **   18 **HESSE 
 **********

 FCN=   5953.267     FROM HESSE     STATUS=OK           525 CALLS     4063 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9903        .13005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5007        1.9367        .92207E-04   -1.5392    
   3  norm          .10000E-03    10.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1715        9.6514        .98683E-03   -1.5299    
   7  norm          27.825        14.203        .75962E-04   -1.4652    
   8  Prefactor     .10000E-03    2.3800        .11598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9537        2.7828        .14836E-03   -1.5428    
  10  Prefactor     .10000E-03    5.0879        .33389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.8636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.6609        3.5187        .84535E-04   -1.5086    
  13  Prefactor     1.3524        4.5977        .28278E-03   -1.5475    
  14  norm          18.165        11.416        .93993E-04   -1.4855    
  15  Prefactor     .10000E-03    27.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    130.30        .69031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.8461        4.7321        .19838E-03   -1.5371    
  18  Prefactor     4.1269        5.1298        .18205E-03   -1.5302    
  19  Prefactor     20.916        25.657        .87572E-04   -1.4793    
  20  Prefactor     .10000E-03    601.68        .18419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.346        27.986        .96186E-04   -1.4875    
  22  Prefactor     .10000E-03    85.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.2231        .44119        .20525E-04   -1.5410    
  24  Prefactor     12.546        16.760        .11312E-03   -1.4999    
  25  Prefactor     7.2237        16.568        .14934E-03   -1.5170    
  26  norm          .10000E-03    3.9292        .14933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .99177        .19909        .23152E-03   -.93306    
  28  Prefactor     .79672        .23259        .31125E-03   -.99849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90542e-11
Minuit parameter uncertainties:
  1  7.4857e-07
  2  1.9367
  3  3.56816e-06
  4  3.92487e-06
  5  8.39372e-07
  6  9.65495
  7  14.205
  8  3.87224e-06
  9  2.78294
  10  1.76981e-05
  11  6.67496e-07
  12  3.51873
  13  4.5989
  14  11.4172
  15  1.91778e-05
  16  3.77846e-05
  17  4.73272
  18  5.13034
  19  25.67
  20  0.000428101
  21  28.0075
  22  3.78507e-06
  23  0.441193
  24  16.7666
  25  16.5784
  26  6.57042e-06
  27  0.199242
  28  0.23288
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.817e+01  1.142e+01  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:  7.967e-01  2.329e-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:  9.918e-01  1.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.47
Ra Dec: 155.788 39.823
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 5.17e-08 +/- 3.25e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.14e-05

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) = 5953.23434201
delta logL = 0.0324686720023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5953.23314585
delta logL = 0.0336648341017

Fit tolerance = 1e-08

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

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

 FCN=   5953.233     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      234 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.555        19.367        .23241E-02    .54014E-03
   2  alpha         2.0900        .84896        .40749       -.13600E-04
   3  Normalizat    .99974        .16468        .46164E-01    .18074E-03
   4  Prefactor     .78900        .20164        .70636E-01    .15449E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.5546
  alpha      = 2.08997
  Normalizat = 0.999739
  Prefactor  = 0.789004
 **********
 **   18 **HESSE 
 **********

 FCN=   5953.233     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .76E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.555        11.271        .46482E-03   -1.4846    
   2  alpha         2.0900        .59290        .15114E-01   -.16476    
   3  Normalizat    .99974        .19059        .11535E-02   -.93039    
   4  Prefactor     .78900        .23139        .31257E-03   -1.0013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.64228e-13
Minuit parameter uncertainties:
  1  11.2724
  2  0.598762
  3  0.190717
  4  0.231678
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838489': 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) = 5953.23314334
delta logL = 0.0336673410366

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.855e+01  1.127e+01  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.090e+00  5.988e-01  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:  7.890e-01  2.317e-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:  9.997e-01  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.52
Ra Dec: 155.788 39.823
Photon Index (Free Index): 2.09 +/- 0.60
Photon Flux (Free Index): 4.66e-08 +/- 3.42e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.40e-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/838489/cmap_HighResolution_477014401_477273601_4FGL_J1023.1+3949_daily_bin917.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.17e-08', energy_flux2='1.97e-05', photon_flux_error='3.25e-08', dlogl='3.37e-02', energy_flux='1.81e-05', photon_flux2='4.66e-08', job_status='DONE', time_completed='2021-09-01 19:38:20.970516', photon_index_error2='0.60', photon_index2='2.09', ts='4.47', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='0.99', time_epoch_completed='1630550300.97', return_code='0', job_id='838489', GAL2='0.79', EG2='1.00', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='3.42e-08', ts2='4.52', photon_index='2.25' WHERE bin_id='917' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:38:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 838489: <4FGL_J1023.1+3949_daily_bin917> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin917> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 19:25:26 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:25:34 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:25:34 2021
Terminated at Wed Sep  1 19:38:21 2021
Results reported at Wed Sep  1 19:38:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin917 155.788 39.8226 477014401 477273601 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 :                                   739.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            775 sec.

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

