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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1413
RA = 155.788, Dec = 39.8226
tmin = 605577601, tmax = 605836801
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='841027', job_status='RUN', time_executed='2021-09-01 19:36:16.656115', time_epoch_executed='1630550176.66' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1413'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/841027

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/841027/ft1_4FGL_J1023.1+3949_daily_bin1413.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/841027/ft2_4FGL_J1023.1+3949_daily_bin1413.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/841027/ft1_4FGL_J1023.1+3949_daily_bin1413.fits outfile=/scratch/kocevski/841027/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1413.fits ra=155.788 dec=39.8226 rad=12.0 tmin=605577601.0 tmax=605836801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.30
user 4.92
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/841027/ft2_4FGL_J1023.1+3949_daily_bin1413.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/841027/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1413.fits evtable="EVENTS" outfile="/scratch/kocevski/841027/ft1_filtered_4FGL_J1023.1+3949_daily_bin1413.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/841027/ft1_filtered_4FGL_J1023.1+3949_daily_bin1413.fits" evtable="EVENTS" scfile=/scratch/kocevski/841027/ft2_4FGL_J1023.1+3949_daily_bin1413.fits sctable="SC_DATA" outfile=/scratch/kocevski/841027/ltcube_605577601_605836801_4FGL_J1023.1+3949_daily_bin1413.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/841027/ft2_4FGL_J1023.1+3949_daily_bin1413.fits
.....................!
real 14.22
user 13.86
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/841027/ft1_filtered_4FGL_J1023.1+3949_daily_bin1413.fits evtable="EVENTS" scfile=/scratch/kocevski/841027/ft2_4FGL_J1023.1+3949_daily_bin1413.fits sctable="SC_DATA" expcube=/scratch/kocevski/841027/ltcube_605577601_605836801_4FGL_J1023.1+3949_daily_bin1413.fits outfile=/scratch/kocevski/841027/expmap_605577601_605836801_4FGL_J1023.1+3949_daily_bin1413.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/841027/ltcube_605577601_605836801_4FGL_J1023.1+3949_daily_bin1413.fits
.....................!
real 191.19
user 185.92
sys 4.83

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/841027/ft1_filtered_4FGL_J1023.1+3949_daily_bin1413.fits scfile=/scratch/kocevski/841027/ft2_4FGL_J1023.1+3949_daily_bin1413.fits outfile=/scratch/kocevski/841027/cmap_605577601_605836801_4FGL_J1023.1+3949_daily_bin1413.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/841027/ft1_filtered_4FGL_J1023.1+3949_daily_bin1413.fits scfile=/scratch/kocevski/841027/ft2_4FGL_J1023.1+3949_daily_bin1413.fits outfile=/scratch/kocevski/841027/cmap_HighResolution_605577601_605836801_4FGL_J1023.1+3949_daily_bin1413.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.148       1.0000         .10000E-03   10000.    
     3 'norm      '    .28726E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.269       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26786E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .30525E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0765       1.0000         .10000E-03   10000.    
    11 'Prefactor '    87.485       1.0000         .10000E-03   10000.    
    12 'norm      '    3.5976       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.588       1.0000         .10000E-03   10000.    
    14 'norm      '    8.4546       1.0000         .10000E-03   10000.    
    15 'Prefactor '    63.637       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.6291       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.820       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .30803E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    57.528       1.0000         .10000E-03   10000.    
    23 'norm      '    1.6330       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .98858       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91568       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=   5524.311     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3653 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.3324        .84584E-07** at limit **
   2  Prefactor     11.150        4.2754       -.62642E-07   -.45228E-03
   3  norm          .10059E-03    24.098        .79786E-05** at limit **
   4  Prefactor     30.296        30.991       -.66349E-05   -.44191E-03
   5  Prefactor     .10000E-03    134.68        .19031E-05** at limit **
   6  Prefactor     .10000E-03    5.9605       -.12492E-06** at limit **
   7  norm          .10000E-03    7.0891       -.29214E-07** at limit **
   8  Prefactor     .10003E-03    5.6548        .20092E-05** at limit **
   9  Prefactor     .10000E-03    1.3581       -.73762E-07** at limit **
  10  Prefactor     5.0781        4.6421       -.12475E-06   -.59447E-04
  11  Prefactor     87.532        49.233        .21662E-06   -.52623E-04
  12  norm          3.5995        2.9636        .14609E-06   -.52711E-03
  13  Prefactor     16.591        8.0516        .45106E-06    .51315E-04
  14  norm          8.4624        15.727       -.16489E-06   -.45798E-04
  15  Prefactor     63.635        86.327       -.17312E-05   -.42217E-04
  16  Prefactor     .10000E-03    82.015       -.10892E-05** at limit **
  17  Prefactor     .10000E-03    2.7309       -.36485E-07** at limit **
  18  Prefactor     9.6321        8.2246       -.13154E-06   -.11969E-03
  19  Prefactor     .10000E-03    13.138       -.39730E-07** at limit **
  20  Prefactor     34.864        68.780        .57205E-05    .47076E-04
  21  Prefactor     .68262        26.720        .11119E-05   -.93329E-04
  22  Prefactor     57.469        96.268        .65357E-05    .46567E-04
  23  norm          1.6331        .37746        .26265E-08   -.24423E-03
  24  Prefactor     .10000E-03    4.9568       -.62878E-07** at limit **
  25  Prefactor     .10000E-03    9.0507       -.12776E-06** at limit **
  26  norm          .10000E-03    14.067       -.14292E-06** at limit **
  27  Normalizat    .98798        .19494       -.10292E-05   -.42351E-03
  28  Prefactor     .91571        .22408        .54922E-06   -.39376E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 11.1499
  norm       = 0.000100591
  Prefactor  = 30.2958
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 5.07808
  Prefactor  = 87.5318
  norm       = 3.59955
  Prefactor  = 16.5912
  norm       = 8.46242
  Prefactor  = 63.6351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.63207
  Prefactor  = 0.0001
  Prefactor  = 34.8641
  Prefactor  = 0.682619
  Prefactor  = 57.4692
  norm       = 1.63308
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.987983
  Prefactor  = 0.915705
 **********
 **   18 **HESSE 
 **********

 FCN=   5524.311     FROM HESSE     STATUS=OK           513 CALLS     4166 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.3477        .16761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.150        4.2749        .91056E-04   -1.5040    
   3  norm          .10059E-03    128.91        .60523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.296        32.146        .72825E-04   -1.4607    
   5  Prefactor     .10000E-03    138.54        .42874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9953        .17718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.1214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10003E-03    12.147        .32651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.3694        .84562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0781        4.6326        .13802E-03   -1.5257    
  11  Prefactor     87.532        49.293        .42954E-04   -1.3834    
  12  norm          3.5995        2.9470        .11102E-03   -1.5328    
  13  Prefactor     16.591        8.0413        .98339E-04   -1.4893    
  14  norm          8.4624        15.669        .13787E-03   -1.5126    
  15  Prefactor     63.635        86.360        .50304E-04   -1.4111    
  16  Prefactor     .10000E-03    82.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.7551        .11984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.6321        8.1979        .12914E-03   -1.5087    
  19  Prefactor     .10000E-03    13.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     34.864        68.959        .67912E-04   -1.4526    
  21  Prefactor     .68262        247.64        .72988E-02   -1.5543    
  22  Prefactor     57.469        96.714        .52892E-04   -1.4190    
  23  norm          1.6331        .37817        .21207E-04   -1.5452    
  24  Prefactor     .10000E-03    4.9603        .16160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.0693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    14.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .98798        .22558        .25086E-03   -.93434    
  28  Prefactor     .91571        .26162        .31338E-03   -.95594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.39204e-09
Minuit parameter uncertainties:
  1  9.96761e-06
  2  4.275
  3  0.0174921
  4  32.164
  5  0.000113348
  6  7.89488e-06
  7  2.29559e-06
  8  0.00113398
  9  3.72464e-06
  10  4.63297
  11  49.316
  12  2.94708
  13  8.04179
  14  15.6768
  15  86.531
  16  0.000286338
  17  1.94323e-06
  18  8.19888
  19  4.70697e-06
  20  69.1175
  21  26.111
  22  96.9796
  23  0.378169
  24  1.93251e-06
  25  6.11612e-07
  26  1.78137e-05
  27  0.225797
  28  0.261979
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  8.462e+00  1.568e+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:  9.157e-01  2.620e-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.880e-01  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.40
Ra Dec: 155.788 39.823
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/841027/likelihoodResults_605577601_605836801_4FGL_J1023.1+3949_daily_bin1413.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) = 5523.65798293
delta logL = 0.652798695395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5523.31104558
delta logL = 0.999736045728

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .89096       1.0000         .10000E-03   10000.    
     2 'alpha     '    .38308       1.0000          .0000       5.0000    
     3 'Normalizat'    .98329       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93037       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=   5523.311     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      228 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88784        1.3268        .12775E-01    .17870E-03
   2  alpha         .38212        .47981        .36765       -.29797E-04
   3  Normalizat    .98327        .18217        .45957E-01    .12583E-04
   4  Prefactor     .93038        .22131        .70413E-01    .46874E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.887843
  alpha      = 0.382123
  Normalizat = 0.983274
  Prefactor  = 0.930379
 **********
 **   18 **HESSE 
 **********

 FCN=   5523.311     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88784        2.4218        .73425E-04   -1.5520    
   2  alpha         .38212        .72554        .19273E-01   -1.0106    
   3  Normalizat    .98327        .21366        .25143E-03   -.93593    
   4  Prefactor     .93038        .25968        .31151E-03   -.95088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57716e-12
Minuit parameter uncertainties:
  1  2.42206
  2  0.76754
  3  0.213846
  4  0.260024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/841027': 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) = 5523.31104517
delta logL = 0.999736454635

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  8.878e-01  2.422e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  3.821e-01  7.675e-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:  9.304e-01  2.600e-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.833e-01  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.41
Ra Dec: 155.788 39.823
Photon Index (Free Index): 0.38 +/- 0.77
Photon Flux (Free Index): 5.13e-09 +/- 6.35e-09
Energy Flux (Free Index): 8.36e-05 +/- 1.04e-04

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/841027/cmap_HighResolution_605577601_605836801_4FGL_J1023.1+3949_daily_bin1413.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-05', comment='SUCCESS', energy_flux2='8.36e-05', dlogl='1.00e+00', photon_flux2='5.13e-09', job_status='DONE', time_completed='2021-09-01 19:49:59.992369', photon_index_error2='0.77', photon_index2='0.38', ts='0.40', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.04e-04', EG='0.99', time_epoch_completed='1630550999.99', return_code='0', job_id='841027', GAL2='0.93', EG2='0.98', return_code2='0', photon_flux_error2='6.35e-09', ts2='2.41', photon_index='2.25' WHERE bin_id='1413' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:50:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 841027: <4FGL_J1023.1+3949_daily_bin1413> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1413> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 19:35:19 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:35:57 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:57 2021
Terminated at Wed Sep  1 19:50:00 2021
Results reported at Wed Sep  1 19:50:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1413 155.788 39.8226 605577601 605836801 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 :                                   808.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            881 sec.

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

