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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1081
RA = 155.788, Dec = 39.8226
tmin = 519523201, tmax = 519782401
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='839407', job_status='RUN', time_executed='2021-09-01 19:33:58.801058', time_epoch_executed='1630550038.8' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839407

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839407/ft1_4FGL_J1023.1+3949_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839407/ft2_4FGL_J1023.1+3949_daily_bin1081.fits


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

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

Done.
real 2.98
user 2.72
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839407/ft1_filtered_4FGL_J1023.1+3949_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/839407/ft2_4FGL_J1023.1+3949_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/839407/ltcube_519523201_519782401_4FGL_J1023.1+3949_daily_bin1081.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/839407/ft2_4FGL_J1023.1+3949_daily_bin1081.fits
.....................!
real 13.07
user 12.32
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839407/ft1_filtered_4FGL_J1023.1+3949_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/839407/ft2_4FGL_J1023.1+3949_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/839407/ltcube_519523201_519782401_4FGL_J1023.1+3949_daily_bin1081.fits outfile=/scratch/kocevski/839407/expmap_519523201_519782401_4FGL_J1023.1+3949_daily_bin1081.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/839407/ltcube_519523201_519782401_4FGL_J1023.1+3949_daily_bin1081.fits
.....................!
real 192.37
user 187.67
sys 4.26

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/839407/ft1_filtered_4FGL_J1023.1+3949_daily_bin1081.fits scfile=/scratch/kocevski/839407/ft2_4FGL_J1023.1+3949_daily_bin1081.fits outfile=/scratch/kocevski/839407/cmap_519523201_519782401_4FGL_J1023.1+3949_daily_bin1081.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839407/ft1_filtered_4FGL_J1023.1+3949_daily_bin1081.fits scfile=/scratch/kocevski/839407/ft2_4FGL_J1023.1+3949_daily_bin1081.fits outfile=/scratch/kocevski/839407/cmap_HighResolution_519523201_519782401_4FGL_J1023.1+3949_daily_bin1081.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9297       1.0000         .10000E-03   10000.    
     3 'norm      '    .11076E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.233       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16393E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0554       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .91435E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.4474       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1263       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.809       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9701       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .67089E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11810E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.0298       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.1513       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    15.187       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2381       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .97482       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5247.713     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     2998 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10037E-03    10.237        .58856E-05** at limit **
   2  Prefactor     2.9309        2.9201       -.23858E-06    .43358E-06
   3  norm          .10005E-03    11.678       -.16141E-05** at limit **
   4  Prefactor     10.094        11.794        .44269E-05   -.25875E-02
   5  Prefactor     .10007E-03    116.15        .14834E-04** at limit **
   6  Prefactor     .10012E-03    16.760       -.33313E-05** at limit **
   7  norm          .10030E-03    10.975       -.73700E-07** at limit **
   8  Prefactor     1.0549        9.0764        .21483E-05    .21734E-04
   9  Prefactor     .10000E-03    3.5512       -.18084E-06** at limit **
  10  Prefactor     .10425E-03    566.43        .28311E-04** at limit **
  11  Prefactor     .10043E-03    32.827        .27573E-05** at limit **
  12  norm          2.4468        2.5240       -.26449E-06   -.66475E-04
  13  Prefactor     5.1987        5.5582        .44343E-05    .18115E-03
  14  norm          .10000E-03    2.9059       -.54890E-06** at limit **
  15  Prefactor     31.841        5.6668        .55816E-07   -.21932E-02
  16  Prefactor     .10018E-03    13.921       -.15387E-05** at limit **
  17  Prefactor     1.9684        3.7517       -.10915E-05   -.13394E-03
  18  Prefactor     .66379E-01    2.7618        .36072E-05    .22294E-03
  19  Prefactor     .10003E-03    19.807        .11783E-05** at limit **
  20  Prefactor     .10011E-03    76.200       -.14968E-04** at limit **
  21  Prefactor     .10002E-03    11.718        .14229E-05** at limit **
  22  Prefactor     .10015E-03    23.338        .15833E-05** at limit **
  23  norm          1.0297        .32962       -.94278E-08   -.12780E-03
  24  Prefactor     8.1449        1.0812        .44598E-07   -.95356E-04
  25  Prefactor     .10000E-03    5.2026       -.21377E-06** at limit **
  26  norm          15.184        1.1326        .14449E-06    .43965E-04
  27  Normalizat    1.2381        .22880       -.12813E-05   -.27816E-05
  28  Prefactor     .97509        .28171        .88472E-06    .51484E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100367
  Prefactor  = 2.93089
  norm       = 0.00010005
  Prefactor  = 10.0939
  Prefactor  = 0.000100075
  Prefactor  = 0.000100118
  norm       = 0.000100296
  Prefactor  = 1.05487
  Prefactor  = 0.0001
  Prefactor  = 0.000104248
  Prefactor  = 0.000100432
  norm       = 2.4468
  Prefactor  = 5.19869
  norm       = 0.0001
  Prefactor  = 31.8414
  Prefactor  = 0.000100177
  Prefactor  = 1.96839
  Prefactor  = 0.0663791
  Prefactor  = 0.000100032
  Prefactor  = 0.000100107
  Prefactor  = 0.000100024
  Prefactor  = 0.00010015
  norm       = 1.02971
  Prefactor  = 8.14494
  Prefactor  = 0.0001
  norm       = 15.1836
  Normalizat = 1.23813
  Prefactor  = 0.975092
 **********
 **   18 **HESSE 
 **********

 FCN=   5247.713     FROM HESSE     STATUS=OK           593 CALLS     3591 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10037E-03    13.471        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9309        2.9554        .59331E-02   -1.5366    
   3  norm          .10005E-03    12.172        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.094        33.286        .31314E-02   -1.5072    
   5  Prefactor     .10007E-03    131.45        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10012E-03    31.300        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10030E-03    13.910        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0549        8.9257        .11986E-01   -1.5503    
   9  Prefactor     .10000E-03    3.4232        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10425E-03    3.6363        .78793E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10043E-03    39.073        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.4468        2.5428        .65373E-02   -1.5395    
  13  Prefactor     5.1987        6.5908        .44392E-02   -1.5252    
  14  norm          .10000E-03    2.9041        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     31.841        59.380        .17761E-02   -1.4579    
  16  Prefactor     .10018E-03    33.693        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9684        3.7944        .73856E-02   -1.5427    
  18  Prefactor     .66379E-01    2.9424        .70500E-01   -1.5656    
  19  Prefactor     .10003E-03    20.114        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10011E-03    81.193        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    11.943        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10015E-03    25.233        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.0297        .33383        .51491E-02   -1.5505    
  24  Prefactor     8.1449        14.025        .35106E-02   -1.5137    
  25  Prefactor     .10000E-03    5.2042        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          15.184        17.101        .25694E-02   -1.4928    
  27  Normalizat    1.2381        .19362        .50192E-01   -.85433    
  28  Prefactor     .97509        .23481        .70780E-01   -.93564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13578e-07
Minuit parameter uncertainties:
  1  0.00444948
  2  2.95554
  3  0.00155924
  4  33.3477
  5  0.00628947
  6  0.00385305
  7  0.00405864
  8  6.13785
  9  5.90358e-06
  10  0.00786087
  11  0.00822045
  12  2.54286
  13  6.59169
  14  8.12308e-06
  15  59.4905
  16  0.00488002
  17  3.79489
  18  0.883261
  19  0.00161427
  20  0.00590248
  21  0.00106097
  22  0.00389432
  23  0.33383
  24  14.0307
  25  2.27309e-06
  26  17.1069
  27  0.193731
  28  0.23506
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  8.123e-06  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.751e-01  2.351e-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.238e+00  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/839407/likelihoodResults_519523201_519782401_4FGL_J1023.1+3949_daily_bin1081.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) = 5247.71500872
delta logL = -0.00159880228421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5247.71340991
delta logL = 1.0890289559e-08

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 'alpha     '    2.2549       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97510       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=   5247.665     FROM MIGRAD    STATUS=CONVERGED    186 CALLS      334 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17012        .47005        .20571E-01   -.21398E-02
   2  alpha         5.0000        4.1597        .16562    ** at limit **
   3  Normalizat    1.2180        .21975        .22190E-03    .40679E-04
   4  Prefactor     .99214        .27960        .31313E-03    .37468E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.170121
  alpha      = 5
  Normalizat = 1.218
  Prefactor  = 0.992144
 **********
 **   18 **HESSE 
 **********

 FCN=   5247.665     FROM HESSE     STATUS=OK            27 CALLS      361 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17012        .57773        .80449E-03   -1.5790    
   2  alpha         5.0000        4.1453        .33123E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2180        .22788        .88761E-05   -.86048    
   4  Prefactor     .99214        .28436        .12525E-04   -.92992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.19928e-11
Minuit parameter uncertainties:
  1  0.577745
  2  1.523e-05
  3  0.22807
  4  0.284793
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839407': 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) = 5247.66535596
delta logL = 0.0480539614009

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.701e-01  5.777e-01  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  5.000e+00  1.523e-05  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.921e-01  2.848e-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.218e+00  2.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/839407/cmap_HighResolution_519523201_519782401_4FGL_J1023.1+3949_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-05', job_status='DONE', photon_flux_upper_limit='4.45e-08', time_completed='2021-09-01 19:46:50.458477', job_id='839407', GAL2='0.99', fit_tolerance='1e-08', EG2='1.22', EG='1.24', time_epoch_completed='1630550810.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='4.81e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1081' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:46:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 839407: <4FGL_J1023.1+3949_daily_bin1081> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1081 155.788 39.8226 519523201 519782401 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 :                                   766.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            984 sec.

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

