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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1100
RA = 155.788, Dec = 39.8226
tmin = 524448001, tmax = 524707201
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='839435', job_status='RUN', time_executed='2021-09-01 19:32:10.675331', time_epoch_executed='1630549930.68' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1100'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839435

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839435/ft1_4FGL_J1023.1+3949_daily_bin1100.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839435/ft2_4FGL_J1023.1+3949_daily_bin1100.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839435/ft1_4FGL_J1023.1+3949_daily_bin1100.fits outfile=/scratch/kocevski/839435/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1100.fits ra=155.788 dec=39.8226 rad=12.0 tmin=524448001.0 tmax=524707201.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.45
user 3.22
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839435/ft1_filtered_4FGL_J1023.1+3949_daily_bin1100.fits" evtable="EVENTS" scfile=/scratch/kocevski/839435/ft2_4FGL_J1023.1+3949_daily_bin1100.fits sctable="SC_DATA" outfile=/scratch/kocevski/839435/ltcube_524448001_524707201_4FGL_J1023.1+3949_daily_bin1100.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/839435/ft2_4FGL_J1023.1+3949_daily_bin1100.fits
.....................!
real 15.70
user 15.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839435/ft1_filtered_4FGL_J1023.1+3949_daily_bin1100.fits evtable="EVENTS" scfile=/scratch/kocevski/839435/ft2_4FGL_J1023.1+3949_daily_bin1100.fits sctable="SC_DATA" expcube=/scratch/kocevski/839435/ltcube_524448001_524707201_4FGL_J1023.1+3949_daily_bin1100.fits outfile=/scratch/kocevski/839435/expmap_524448001_524707201_4FGL_J1023.1+3949_daily_bin1100.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/839435/ltcube_524448001_524707201_4FGL_J1023.1+3949_daily_bin1100.fits
.....................!
real 191.25
user 186.56
sys 4.27

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/839435/ft1_filtered_4FGL_J1023.1+3949_daily_bin1100.fits scfile=/scratch/kocevski/839435/ft2_4FGL_J1023.1+3949_daily_bin1100.fits outfile=/scratch/kocevski/839435/cmap_524448001_524707201_4FGL_J1023.1+3949_daily_bin1100.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.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839435/ft1_filtered_4FGL_J1023.1+3949_daily_bin1100.fits scfile=/scratch/kocevski/839435/ft2_4FGL_J1023.1+3949_daily_bin1100.fits outfile=/scratch/kocevski/839435/cmap_HighResolution_524448001_524707201_4FGL_J1023.1+3949_daily_bin1100.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .89635E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .15765E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.486       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0250       1.0000         .10000E-03   10000.    
     7 'norm      '    31.723       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.787       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7267       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13608E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.6535       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3489       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1870       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6790       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.489       1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.717       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .96802       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.669       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .84138E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    19.896       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0802       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .75477       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=   5704.428     FROM MIGRAD    STATUS=CONVERGED    683 CALLS     3484 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.5858        .76863E-06** at limit **
   2  Prefactor     .10000E-03    1.5252       -.34706E-06** at limit **
   3  norm          .10000E-03    29.773       -.78126E-06** at limit **
   4  Prefactor     20.488        26.526        .23802E-05    .89968E-04
   5  Prefactor     .10000E-03    26.029       -.82626E-06** at limit **
   6  Prefactor     9.0253        7.6575        .50020E-07   -.10872E-04
   7  norm          31.723        15.054       -.14608E-07   -.27190E-04
   8  Prefactor     15.788        8.8239       -.20692E-07   -.49019E-04
   9  Prefactor     2.7268        2.2752       -.15954E-07   -.20453E-04
  10  Prefactor     .10000E-03    1.1048       -.36942E-07** at limit **
  11  Prefactor     .10000E-03    62.162       -.20156E-05** at limit **
  12  norm          3.6535        2.2978        .77727E-07    .43560E-04
  13  Prefactor     4.3491        3.6081       -.21077E-06   -.11005E-03
  14  norm          4.1825        6.8853       -.13011E-05   -.10070E-03
  15  Prefactor     .10000E-03    35.460       -.11733E-05** at limit **
  16  Prefactor     .10000E-03    9.0197        .64159E-06** at limit **
  17  Prefactor     1.6804        3.3013       -.68761E-06   -.15508E-03
  18  Prefactor     .10000E-03    1.3594        .51366E-06** at limit **
  19  Prefactor     35.472        39.678        .15397E-05    .31830E-04
  20  Prefactor     48.668        78.230        .47595E-05    .65327E-04
  21  Prefactor     .10000E-03    24.925       -.13787E-05** at limit **
  22  Prefactor     .10000E-03    30.995        .66208E-06** at limit **
  23  norm          .96774        .30177        .35160E-07    .18028E-02
  24  Prefactor     13.651        16.859        .12333E-06    .10478E-03
  25  Prefactor     .10000E-03    79.154       -.15869E-04** at limit **
  26  norm          19.896        18.825       -.63958E-07    .24409E-04
  27  Normalizat    1.0801        .18152       -.15886E-05    .31601E-03
  28  Prefactor     .75487        .21195        .15785E-05   -.59400E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 20.4876
  Prefactor  = 0.0001
  Prefactor  = 9.02528
  norm       = 31.7228
  Prefactor  = 15.7878
  Prefactor  = 2.72675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.65347
  Prefactor  = 4.34905
  norm       = 4.18255
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.68036
  Prefactor  = 0.0001
  Prefactor  = 35.4717
  Prefactor  = 48.6679
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.967742
  Prefactor  = 13.6509
  Prefactor  = 0.000100004
  norm       = 19.896
  Normalizat = 1.08008
  Prefactor  = 0.754868
 **********
 **   18 **HESSE 
 **********

 FCN=   5704.428     FROM HESSE     STATUS=OK           523 CALLS     4007 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.400        .36923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.5685        .18205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    30.895        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.488        26.526        .88492E-04   -1.4802    
   5  Prefactor     .10000E-03    26.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.0253        7.6581        .13341E-03   -1.5107    
   7  norm          31.723        15.057        .71140E-04   -1.4581    
   8  Prefactor     15.788        8.8365        .10080E-03   -1.4913    
   9  Prefactor     2.7268        2.2725        .10100E-03   -1.5378    
  10  Prefactor     .10000E-03    1.1085        .77435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    62.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6535        2.2984        .87957E-04   -1.5326    
  13  Prefactor     4.3491        3.6075        .12551E-03   -1.5291    
  14  norm          4.1825        6.9020        .19696E-03   -1.5299    
  15  Prefactor     .10000E-03    35.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.0303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.6804        3.2639        .17859E-03   -1.5449    
  18  Prefactor     .10000E-03    1.3693        .86165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     35.472        39.490        .67271E-04   -1.4516    
  20  Prefactor     48.668        78.823        .57452E-04   -1.4312    
  21  Prefactor     .10000E-03    25.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    31.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .96774        .29861        .21604E-04   -1.5511    
  24  Prefactor     13.651        16.501        .10834E-03   -1.4969    
  25  Prefactor     .10000E-03    78.403        .44782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          19.896        18.786        .89794E-04   -1.4816    
  27  Normalizat    1.0801        .19901        .21634E-03   -.90394    
  28  Prefactor     .75487        .23419        .31740E-03   -1.0141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02121e-09
Minuit parameter uncertainties:
  1  0.000507993
  2  4.2933e-06
  3  0.00038064
  4  26.5412
  5  6.54067e-05
  6  7.65896
  7  15.0587
  8  8.83718
  9  2.27254
  10  4.24573e-06
  11  0.000147713
  12  2.29847
  13  3.60769
  14  6.90326
  15  8.8891e-05
  16  2.5066e-05
  17  3.26423
  18  8.94341e-06
  19  39.5189
  20  78.9925
  21  6.80241e-05
  22  8.87592e-05
  23  0.29861
  24  16.5062
  25  0.00111696
  26  18.7918
  27  0.19915
  28  0.234499
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  4.183e+00  6.903e+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

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  7.549e-01  2.345e-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.080e+00  1.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.60
Ra Dec: 155.788 39.823
Photon Flux Upper Limit: 6.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/839435/likelihoodResults_524448001_524707201_4FGL_J1023.1+3949_daily_bin1100.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) = 5704.2132075
delta logL = 0.215219860725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5704.20924195
delta logL = 0.219185409774

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1088       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1668       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0570       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77151       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5704.209     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      210 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1002        11.676         .0000        .25855E-03
   2  alpha         3.1634        3.7171         .0000        .31526E-03
   3  Normalizat    1.0572        .16440         .0000        .15024E-03
   4  Prefactor     .77137        .20306         .0000        .13318E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.10017
  alpha      = 3.16337
  Normalizat = 1.05722
  Prefactor  = 0.771371
 **********
 **   18 **HESSE 
 **********

 FCN=   5704.209     FROM HESSE     STATUS=OK            29 CALLS      239 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1002        6.2832        .17394E-03   -1.5303    
   2  alpha         3.1634        1.3023        .86348E-02    .26857    
   3  Normalizat    1.0572        .19111        .21837E-03   -.91137    
   4  Prefactor     .77137        .23451        .31427E-03   -1.0079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32809e-11
Minuit parameter uncertainties:
  1  6.28417
  2  1.37581
  3  0.191234
  4  0.234812
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839435': 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) = 5704.20923183
delta logL = 0.219195529319

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  4.100e+00  6.284e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  3.163e+00  1.376e+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:  7.714e-01  2.348e-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.057e+00  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 155.788 39.823
Photon Index (Free Index): 3.16 +/- 1.38
Photon Flux (Free Index): 2.95e-08 +/- 4.00e-08
Energy Flux (Free Index): 5.67e-06 +/- 6.84e-06

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/839435/cmap_HighResolution_524448001_524707201_4FGL_J1023.1+3949_daily_bin1100.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-05', comment='SUCCESS', energy_flux2='5.67e-06', dlogl='2.19e-01', photon_flux2='2.95e-08', job_status='DONE', time_completed='2021-09-01 19:46:12.766147', photon_index_error2='1.38', photon_index2='3.16', ts='0.60', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='6.89e-08', energy_flux_error2='6.84e-06', EG='1.08', time_epoch_completed='1630550772.77', return_code='0', job_id='839435', GAL2='0.77', EG2='1.06', return_code2='0', photon_flux_error2='4.00e-08', ts2='1.08', photon_index='2.25' WHERE bin_id='1100' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:46:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 839435: <4FGL_J1023.1+3949_daily_bin1100> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1100> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 19:30:30 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:31:54 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:31:54 2021
Terminated at Wed Sep  1 19:46:13 2021
Results reported at Wed Sep  1 19:46:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1100 155.788 39.8226 524448001 524707201 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 :                                   837.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             296.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            943 sec.

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

