/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 33 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 = 7445
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1414
RA = 155.788, Dec = 39.8226
tmin = 605836801, tmax = 606096001
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='841028', job_status='RUN', time_executed='2021-09-01 19:36:48.720547', time_epoch_executed='1630550208.72' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/841028

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/841028/ft1_4FGL_J1023.1+3949_daily_bin1414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/841028/ft2_4FGL_J1023.1+3949_daily_bin1414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/841028/ft1_4FGL_J1023.1+3949_daily_bin1414.fits outfile=/scratch/kocevski/841028/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1414.fits ra=155.788 dec=39.8226 rad=12.0 tmin=605836801.0 tmax=606096001.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.64
user 3.41
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/841028/ft1_filtered_4FGL_J1023.1+3949_daily_bin1414.fits evtable="EVENTS" scfile=/scratch/kocevski/841028/ft2_4FGL_J1023.1+3949_daily_bin1414.fits sctable="SC_DATA" expcube=/scratch/kocevski/841028/ltcube_605836801_606096001_4FGL_J1023.1+3949_daily_bin1414.fits outfile=/scratch/kocevski/841028/expmap_605836801_606096001_4FGL_J1023.1+3949_daily_bin1414.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/841028/ltcube_605836801_606096001_4FGL_J1023.1+3949_daily_bin1414.fits
.....................!
real 192.25
user 187.54
sys 4.29

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/841028/ft1_filtered_4FGL_J1023.1+3949_daily_bin1414.fits scfile=/scratch/kocevski/841028/ft2_4FGL_J1023.1+3949_daily_bin1414.fits outfile=/scratch/kocevski/841028/cmap_605836801_606096001_4FGL_J1023.1+3949_daily_bin1414.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.53
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/841028/ft1_filtered_4FGL_J1023.1+3949_daily_bin1414.fits scfile=/scratch/kocevski/841028/ft2_4FGL_J1023.1+3949_daily_bin1414.fits outfile=/scratch/kocevski/841028/cmap_HighResolution_605836801_606096001_4FGL_J1023.1+3949_daily_bin1414.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6403       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6306       1.0000         .10000E-03   10000.    
     3 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6666       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14996E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .38652E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.738       1.0000         .10000E-03   10000.    
    12 'norm      '    .99992       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.659       1.0000         .10000E-03   10000.    
    14 'norm      '    8.7451       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.689       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2072       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9746       1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.129       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    44.488       1.0000         .10000E-03   10000.    
    23 'norm      '    1.5237       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.411       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10679E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3588       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .56662       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=   6037.194     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3533 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6405        6.6156        .83675E-07    .10487E-03
   2  Prefactor     5.6311        3.4090        .40361E-07    .22834E-04
   3  norm          .10000E-03    24.531       -.21691E-06** at limit **
   4  Prefactor     .10000E-03    32.563        .23680E-07** at limit **
   5  Prefactor     .10000E-03    20.772        .54829E-06** at limit **
   6  Prefactor     2.6741        10.064        .10532E-05    .10587E-03
   7  norm          .10000E-03    4.0201        .22261E-07** at limit **
   8  Prefactor     .10007E-03    6.5005       -.18801E-05** at limit **
   9  Prefactor     .10000E-03    1.1566        .42589E-07** at limit **
  10  Prefactor     .10064E-03    2.9139       -.95263E-06** at limit **
  11  Prefactor     14.747        33.186       -.31025E-06    .51089E-05
  12  norm          .99959        2.1955        .55441E-06    .42742E-03
  13  Prefactor     11.680        6.1056        .10436E-05    .69597E-03
  14  norm          8.7445        11.958       -.92825E-07    .48409E-04
  15  Prefactor     .10000E-03    73.709        .45130E-06** at limit **
  16  Prefactor     14.681        33.686       -.83482E-06    .29870E-04
  17  Prefactor     2.2068        3.2678        .13129E-06    .25438E-04
  18  Prefactor     6.9750        5.7962        .43558E-06    .34912E-04
  19  Prefactor     41.132        39.432       -.13946E-06    .11045E-04
  20  Prefactor     .10000E-03    76.870        .94785E-06** at limit **
  21  Prefactor     .10000E-03    9.1659        .32687E-07** at limit **
  22  Prefactor     44.453        87.922       -.10226E-05   -.63713E-04
  23  norm          1.5238        .36632        .10463E-07    .87867E-04
  24  Prefactor     12.385        18.159       -.61456E-06    .25796E-04
  25  Prefactor     .10000E-03    35.128        .54843E-06** at limit **
  26  norm          .10000E-03    62.543       -.14387E-05** at limit **
  27  Normalizat    1.3587        .18355        .36198E-06    .45362E-03
  28  Prefactor     .56694        .21036       -.16098E-05    .22355E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.64049
  Prefactor  = 5.63107
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.67409
  norm       = 0.0001
  Prefactor  = 0.000100069
  Prefactor  = 0.0001
  Prefactor  = 0.000100638
  Prefactor  = 14.7468
  norm       = 0.999585
  Prefactor  = 11.6798
  norm       = 8.74449
  Prefactor  = 0.0001
  Prefactor  = 14.6812
  Prefactor  = 2.20681
  Prefactor  = 6.97496
  Prefactor  = 41.1322
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 44.4528
  norm       = 1.52376
  Prefactor  = 12.3849
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Normalizat = 1.35868
  Prefactor  = 0.566936
 **********
 **   18 **HESSE 
 **********

 FCN=   6037.194     FROM HESSE     STATUS=OK           533 CALLS     4066 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6405        6.6138        .16915E-03   -1.5233    
   2  Prefactor     5.6311        3.4051        .10641E-03   -1.5233    
   3  norm          .10000E-03    24.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.6741        10.112        .24958E-03   -1.5381    
   7  norm          .10000E-03    4.0275        .15213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10007E-03    19.950        .33666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.1657        .81582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10064E-03    10.748        .36012E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.747        33.353        .10433E-03   -1.4940    
  12  norm          .99959        2.0558        .16437E-02   -1.5508    
  13  Prefactor     11.680        6.9834        .58662E-03   -1.5024    
  14  norm          8.7445        11.910        .13554E-03   -1.5116    
  15  Prefactor     .10000E-03    74.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.681        33.711        .10450E-03   -1.4941    
  17  Prefactor     2.2068        3.2397        .16176E-03   -1.5411    
  18  Prefactor     6.9750        5.7837        .73499E-03   -1.5180    
  19  Prefactor     41.132        39.353        .62505E-04   -1.4424    
  20  Prefactor     .10000E-03    77.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.1747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     44.453        89.223        .60108E-04   -1.4374    
  23  norm          1.5238        .36696        .21644E-04   -1.5461    
  24  Prefactor     12.385        18.057        .11371E-03   -1.5004    
  25  Prefactor     .10000E-03    35.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    63.984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3587        .21285        .21164E-03   -.81831    
  28  Prefactor     .56694        .23888        .37441E-03   -1.0900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96633e-09
Minuit parameter uncertainties:
  1  6.61461
  2  3.40525
  3  0.000109414
  4  3.51801e-05
  5  0.000219798
  6  10.118
  7  3.95135e-06
  8  0.00235463
  9  8.31856e-08
  10  0.00523784
  11  33.3948
  12  2.05596
  13  6.98386
  14  11.9132
  15  0.000220957
  16  33.7543
  17  3.23991
  18  5.7842
  19  39.3781
  20  0.000726154
  21  3.67254e-06
  22  89.4922
  23  0.366962
  24  18.0649
  25  0.000282395
  26  0.000535089
  27  0.212985
  28  0.23931
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  8.744e+00  1.191e+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:  5.669e-01  2.393e-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:  1.359e+00  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/841028/likelihoodResults_605836801_606096001_4FGL_J1023.1+3949_daily_bin1414.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) = 6037.11149924
delta logL = 0.0825858958124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6037.10874987
delta logL = 0.0853352675267

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0827       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7308       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58082       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=   6037.109     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      274 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0834        11.395        .13299E-03   -.69235E-03
   2  alpha         2.7309        1.1896        .26703E-01   -.69902E-04
   3  Normalizat    1.3398        .20610        .21280E-03    .21308E-03
   4  Prefactor     .58123        .24027        .37006E-03    .16970E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.08342
  alpha      = 2.73093
  Normalizat = 1.33984
  Prefactor  = 0.581233
 **********
 **   18 **HESSE 
 **********

 FCN=   6037.109     FROM HESSE     STATUS=OK            23 CALLS      297 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0834        11.023        .53195E-05   -1.5105    
   2  alpha         2.7309        1.1515        .10681E-02    .92503E-01
   3  Normalizat    1.3398        .20605        .42559E-04   -.82385    
   4  Prefactor     .58123        .24010        .14803E-04   -1.0838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38406e-09
Minuit parameter uncertainties:
  1  11.025
  2  1.19715
  3  0.206179
  4  0.240519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/841028': 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) = 6037.10874758
delta logL = 0.0853375550787

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  9.083e+00  1.103e+01  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.731e+00  1.197e+00  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:  5.812e-01  2.405e-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:  1.340e+00  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.00
Ra Dec: 155.788 39.823
Photon Index (Free Index): 2.73 +/- 1.20
Photon Flux (Free Index): 4.06e-08 +/- 5.69e-08
Energy Flux (Free Index): 9.60e-06 +/- 1.10e-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/841028/cmap_HighResolution_605836801_606096001_4FGL_J1023.1+3949_daily_bin1414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-05', comment='SUCCESS', energy_flux2='9.60e-06', dlogl='8.53e-02', photon_flux2='4.06e-08', job_status='DONE', time_completed='2021-09-01 19:51:51.636220', photon_index_error2='1.20', photon_index2='2.73', ts='0.83', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='1.10e-05', EG='1.36', time_epoch_completed='1630551111.64', return_code='0', job_id='841028', GAL2='0.58', EG2='1.34', return_code2='0', photon_flux_error2='5.69e-08', ts2='1.00', photon_index='2.25' WHERE bin_id='1414' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:51:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 841028: <4FGL_J1023.1+3949_daily_bin1414> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1414> 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) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:35:58 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:58 2021
Terminated at Wed Sep  1 19:51:52 2021
Results reported at Wed Sep  1 19:51:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1414 155.788 39.8226 605836801 606096001 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 :                                   865.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            993 sec.

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

