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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1391
RA = 155.788, Dec = 39.8226
tmin = 599875201, tmax = 600134401
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='839854', job_status='RUN', time_executed='2021-09-01 19:35:55.087047', time_epoch_executed='1630550155.09' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839854

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839854/ft1_4FGL_J1023.1+3949_daily_bin1391.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839854/ft2_4FGL_J1023.1+3949_daily_bin1391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839854/ft1_4FGL_J1023.1+3949_daily_bin1391.fits outfile=/scratch/kocevski/839854/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1391.fits ra=155.788 dec=39.8226 rad=12.0 tmin=599875201.0 tmax=600134401.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.49
user 2.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839854/ft1_filtered_4FGL_J1023.1+3949_daily_bin1391.fits" evtable="EVENTS" scfile=/scratch/kocevski/839854/ft2_4FGL_J1023.1+3949_daily_bin1391.fits sctable="SC_DATA" outfile=/scratch/kocevski/839854/ltcube_599875201_600134401_4FGL_J1023.1+3949_daily_bin1391.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/839854/ft2_4FGL_J1023.1+3949_daily_bin1391.fits
.....................!
real 16.75
user 16.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839854/ft1_filtered_4FGL_J1023.1+3949_daily_bin1391.fits evtable="EVENTS" scfile=/scratch/kocevski/839854/ft2_4FGL_J1023.1+3949_daily_bin1391.fits sctable="SC_DATA" expcube=/scratch/kocevski/839854/ltcube_599875201_600134401_4FGL_J1023.1+3949_daily_bin1391.fits outfile=/scratch/kocevski/839854/expmap_599875201_600134401_4FGL_J1023.1+3949_daily_bin1391.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/839854/ltcube_599875201_600134401_4FGL_J1023.1+3949_daily_bin1391.fits
.....................!
real 193.82
user 188.06
sys 4.97

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/839854/ft1_filtered_4FGL_J1023.1+3949_daily_bin1391.fits scfile=/scratch/kocevski/839854/ft2_4FGL_J1023.1+3949_daily_bin1391.fits outfile=/scratch/kocevski/839854/cmap_599875201_600134401_4FGL_J1023.1+3949_daily_bin1391.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839854/ft1_filtered_4FGL_J1023.1+3949_daily_bin1391.fits scfile=/scratch/kocevski/839854/ft2_4FGL_J1023.1+3949_daily_bin1391.fits outfile=/scratch/kocevski/839854/cmap_HighResolution_599875201_600134401_4FGL_J1023.1+3949_daily_bin1391.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.56
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6058       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    85.079       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.4442       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .64493       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.6505       1.0000         .10000E-03   10000.    
    11 'Prefactor '    55.356       1.0000         .10000E-03   10000.    
    12 'norm      '    6.1215       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    102.30       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    177.46       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.8972       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.7242       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2281       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .98882       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=   3985.729     FROM MIGRAD    STATUS=CONVERGED    673 CALLS     3483 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6053        26.484       -.11212E-05   -.60956E-04
   2  Prefactor     .10000E-03    2.0620       -.66995E-07** at limit **
   3  norm          .10000E-03    11.218        .21177E-05** at limit **
   4  Prefactor     85.091        65.585        .10585E-04   -.76064E-04
   5  Prefactor     .10000E-03    58.055        .33273E-04** at limit **
   6  Prefactor     .10000E-03    8.8121       -.37086E-06** at limit **
   7  norm          .10000E-03    29.429       -.12590E-04** at limit **
   8  Prefactor     9.4458        11.201       -.53137E-06   -.64229E-03
   9  Prefactor     .63921        4.8381       -.66598E-06   -.38208E-03
  10  Prefactor     7.6452        7.1085        .61210E-07   -.10396E-03
  11  Prefactor     55.373        65.912        .19993E-04   -.43391E-04
  12  norm          6.1216        4.1680        .19103E-06    .44171E-04
  13  Prefactor     .10000E-03    19.778       -.15295E-05** at limit **
  14  norm          .10001E-03    33.741        .20867E-05** at limit **
  15  Prefactor     102.32        84.567        .18931E-04   -.23823E-05
  16  Prefactor     .10000E-03    17.987        .68479E-05** at limit **
  17  Prefactor     .10000E-03    2.1828       -.10269E-06** at limit **
  18  Prefactor     .10000E-03    3.6658       -.61692E-07** at limit **
  19  Prefactor     .10000E-03    13.247       -.19566E-05** at limit **
  20  Prefactor     177.44        152.81       -.15954E-04   -.62483E-05
  21  Prefactor     .10000E-03    11.374        .75134E-06** at limit **
  22  Prefactor     .10000E-03    73.247       -.27587E-04** at limit **
  23  norm          1.8972        .47238        .56002E-07    .58290E-03
  24  Prefactor     4.7251        14.329        .54584E-06   -.26063E-04
  25  Prefactor     .10000E-03    67.618       -.56767E-05** at limit **
  26  norm          .10000E-03    12.642       -.31840E-05** at limit **
  27  Normalizat    1.2277        .25133       -.55411E-05    .27217E-03
  28  Prefactor     .98926        .27638        .13632E-05   -.51453E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.60533
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 85.0907
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.44584
  Prefactor  = 0.639212
  Prefactor  = 7.64523
  Prefactor  = 55.3735
  norm       = 6.12158
  Prefactor  = 0.000100001
  norm       = 0.000100013
  Prefactor  = 102.317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 177.441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.89719
  Prefactor  = 4.72511
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.22773
  Prefactor  = 0.989257
 **********
 **   18 **HESSE 
 **********

 FCN=   3985.729     FROM HESSE     STATUS=OK           513 CALLS     3996 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6053        26.491        .21279E-03   -1.5328    
   2  Prefactor     .10000E-03    2.0630        .88531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     85.091        65.526        .43552E-04   -1.3860    
   5  Prefactor     .10000E-03    57.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.8364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    29.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.4458        11.243        .65203E-03   -1.5093    
   9  Prefactor     .63921        9.5357        .26209E-02   -1.5548    
  10  Prefactor     7.6452        7.0513        .14498E-03   -1.5155    
  11  Prefactor     55.373        65.978        .53914E-04   -1.4218    
  12  norm          6.1216        4.1679        .10282E-03   -1.5213    
  13  Prefactor     .10000E-03    20.124        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    34.682        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     102.32        84.552        .19877E-03   -1.3681    
  16  Prefactor     .10000E-03    17.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.1870        .91073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.6811        .11802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     177.44        153.56        .15148E-03   -1.3036    
  21  Prefactor     .10000E-03    11.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    73.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.8972        .47239        .20312E-04   -1.5432    
  24  Prefactor     4.7251        14.301        .18513E-03   -1.5273    
  25  Prefactor     .10000E-03    68.958        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    12.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2277        .30119        .25437E-03   -.85750    
  28  Prefactor     .98926        .32956        .32995E-03   -.93088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81902e-09
Minuit parameter uncertainties:
  1  19.5578
  2  5.86214e-06
  3  3.09447e-05
  4  65.5816
  5  0.000506033
  6  3.37204e-08
  7  6.99918e-05
  8  11.2455
  9  4.93831
  10  7.0521
  11  66.065
  12  4.16807
  13  0.000256238
  14  0.00132959
  15  84.6521
  16  1.59486e-05
  17  1.29272e-05
  18  8.25986e-06
  19  6.2078e-06
  20  153.91
  21  5.2571e-06
  22  0.000111391
  23  0.472389
  24  14.3109
  25  0.000293046
  26  3.83831e-05
  27  0.301618
  28  0.330236
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  1.330e-03  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.893e-01  3.302e-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.228e+00  3.016e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/839854/likelihoodResults_599875201_600134401_4FGL_J1023.1+3949_daily_bin1391.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): 102
logL (Free Index) = 3985.72934463
delta logL = -0.00013755490545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3985.50303658
delta logL = 0.226170489892

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3149       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8167       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0250       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=   3985.503     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      274 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3183        234.36        .55585E-02    .29784E-03
   2  alpha         3.8165        2.8711        .50000        .19687E-04
   3  Normalizat    1.1724        .81083E-01    .58639E-01   -.15528E-04
   4  Prefactor     1.0251        .95535E-01    .73376E-01   -.55562E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.31826
  alpha      = 3.8165
  Normalizat = 1.17237
  Prefactor  = 1.02512
 **********
 **   18 **HESSE 
 **********

 FCN=   3985.503     FROM HESSE     STATUS=OK            31 CALLS      305 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3183        7.8560        .17251E-03   -1.5344    
   2  alpha         3.8165        1.5690        .32923E-02    .55460    
   3  Normalizat    1.1724        .28682        .25933E-03   -.87461    
   4  Prefactor     1.0251        .32926        .32468E-03   -.91897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1829e-12
Minuit parameter uncertainties:
  1  7.85846
  2  1.76498
  3  0.287207
  4  0.329912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839854': 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) = 3985.50303641
delta logL = 0.226170661073

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  3.318e+00  7.858e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  3.816e+00  1.765e+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:  1.025e+00  3.299e-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.172e+00  2.872e-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/839854/cmap_HighResolution_599875201_600134401_4FGL_J1023.1+3949_daily_bin1391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-05', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-01 19:47:13.250381', job_id='839854', GAL2='1.03', fit_tolerance='1e-08', EG2='1.17', EG='1.23', time_epoch_completed='1630550833.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.26e-01', ts2='0.48', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1391' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:47:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 839854: <4FGL_J1023.1+3949_daily_bin1391> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1391> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 19:31:02 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:35:38 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:38 2021
Terminated at Wed Sep  1 19:47:14 2021
Results reported at Wed Sep  1 19:47:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1391 155.788 39.8226 599875201 600134401 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 :                                   670.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            972 sec.

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

