/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 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7438
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1023.1+3949_daily_bin283
RA = 155.788, Dec = 39.8226
tmin = 312681601, tmax = 312940801
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='834207', job_status='RUN', time_executed='2021-09-01 19:11:01.784613', time_epoch_executed='1630548661.78' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834207

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834207/ft1_4FGL_J1023.1+3949_daily_bin283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834207/ft2_4FGL_J1023.1+3949_daily_bin283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834207/ft1_4FGL_J1023.1+3949_daily_bin283.fits outfile=/scratch/kocevski/834207/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin283.fits ra=155.788 dec=39.8226 rad=12.0 tmin=312681601.0 tmax=312940801.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.43
user 3.20
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834207/ft1_filtered_4FGL_J1023.1+3949_daily_bin283.fits evtable="EVENTS" scfile=/scratch/kocevski/834207/ft2_4FGL_J1023.1+3949_daily_bin283.fits sctable="SC_DATA" expcube=/scratch/kocevski/834207/ltcube_312681601_312940801_4FGL_J1023.1+3949_daily_bin283.fits outfile=/scratch/kocevski/834207/expmap_312681601_312940801_4FGL_J1023.1+3949_daily_bin283.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/834207/ltcube_312681601_312940801_4FGL_J1023.1+3949_daily_bin283.fits
.....................!
real 193.99
user 189.04
sys 4.54

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/834207/ft1_filtered_4FGL_J1023.1+3949_daily_bin283.fits scfile=/scratch/kocevski/834207/ft2_4FGL_J1023.1+3949_daily_bin283.fits outfile=/scratch/kocevski/834207/cmap_312681601_312940801_4FGL_J1023.1+3949_daily_bin283.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834207/ft1_filtered_4FGL_J1023.1+3949_daily_bin283.fits scfile=/scratch/kocevski/834207/ft2_4FGL_J1023.1+3949_daily_bin283.fits outfile=/scratch/kocevski/834207/cmap_HighResolution_312681601_312940801_4FGL_J1023.1+3949_daily_bin283.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8287       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    75.139       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .69762       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12663E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.1391       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.919       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.0183       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12627E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.052       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14542E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.970       1.0000         .10000E-03   10000.    
    23 'norm      '    1.1772       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.1271       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    31.131       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .81592       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1336       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=   5866.931     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     3505 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8286        4.3775       -.15109E-05   -.42820E-03
   2  Prefactor     .10000E-03    .64313       -.47129E-09** at limit **
   3  norm          .10000E-03    6.5476        .37957E-05** at limit **
   4  Prefactor     .10000E-03    12.279        .13077E-06** at limit **
   5  Prefactor     75.142        37.852        .33787E-06   -.33267E-04
   6  Prefactor     .10000E-03    8.5031        .30698E-06** at limit **
   7  norm          .10000E-03    6.5664       -.39288E-05** at limit **
   8  Prefactor     .69743        4.4926       -.29880E-05   -.12043E-02
   9  Prefactor     .10000E-03    .81362       -.10447E-07** at limit **
  10  Prefactor     .10000E-03    1.7999        .97484E-07** at limit **
  11  Prefactor     .10000E-03    9.0938       -.17037E-05** at limit **
  12  norm          9.1388        3.3061        .54912E-07    .25383E-03
  13  Prefactor     .10000E-03    2.2454       -.45036E-07** at limit **
  14  norm          .10000E-03    3.4964       -.36607E-07** at limit **
  15  Prefactor     .10000E-03    45.258       -.68563E-06** at limit **
  16  Prefactor     15.927        18.655       -.43036E-06    .88179E-05
  17  Prefactor     6.0181        5.2920        .82940E-06   -.39130E-03
  18  Prefactor     .10000E-03    3.3183        .19493E-08** at limit **
  19  Prefactor     32.053        37.625        .39478E-06   -.23746E-04
  20  Prefactor     .10000E-03    161.24       -.12731E-05** at limit **
  21  Prefactor     .10000E-03    64.318        .11686E-05** at limit **
  22  Prefactor     27.951        74.508       -.25049E-04    .11009E-03
  23  norm          1.1772        .31126        .78485E-08    .20211E-03
  24  Prefactor     7.1274        9.5927       -.28118E-06   -.15220E-04
  25  Prefactor     .10000E-03    5.0811       -.79415E-08** at limit **
  26  norm          31.134        17.533       -.13640E-06    .21976E-05
  27  Normalizat    .81592        .15994        .91878E-06    .44710E-04
  28  Prefactor     1.1336        .19783        .25297E-06    .48021E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.8286
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.1418
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.697431
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 9.13876
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9266
  Prefactor  = 6.01811
  Prefactor  = 0.0001
  Prefactor  = 32.0535
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.951
  norm       = 1.17721
  Prefactor  = 7.12743
  Prefactor  = 0.0001
  norm       = 31.1341
  Normalizat = 0.815917
  Prefactor  = 1.13357
 **********
 **   18 **HESSE 
 **********

 FCN=   5866.931     FROM HESSE     STATUS=OK           513 CALLS     4018 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8286        4.3960        .24470E-03   -1.5438    
   2  Prefactor     .10000E-03    .64591        .59981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.4696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     75.142        37.886        .46321E-04   -1.3972    
   6  Prefactor     .10000E-03    8.6611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.4988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .69743        5.3529        .34204E-03   -1.5541    
   9  Prefactor     .10000E-03    .81875        .67466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.7525        .19690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.0867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.1388        3.3055        .80842E-04   -1.5103    
  13  Prefactor     .10000E-03    2.2799        .11194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.5099        .13985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    45.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.927        18.527        .10038E-03   -1.4910    
  17  Prefactor     6.0181        5.2618        .14807E-03   -1.5217    
  18  Prefactor     .10000E-03    3.3455        .13525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     32.053        37.565        .70775E-04   -1.4575    
  20  Prefactor     .10000E-03    162.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    65.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.951        72.222        .75752E-04   -1.4650    
  23  norm          1.1772        .31184        .21129E-04   -1.5491    
  24  Prefactor     7.1274        9.5830        .15026E-03   -1.5174    
  25  Prefactor     .10000E-03    5.0841        .16861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          31.134        17.518        .71812E-04   -1.4591    
  27  Normalizat    .81592        .18705        .24285E-03   -.99481    
  28  Prefactor     1.1336        .23195        .26747E-03   -.88401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26507e-09
Minuit parameter uncertainties:
  1  4.3968
  2  2.61128e-08
  3  8.52106e-05
  4  1.72926e-05
  5  37.8979
  6  2.83881e-05
  7  9.51719e-05
  8  3.86453
  9  8.55996e-07
  10  0.00039841
  11  3.37833e-05
  12  3.30557
  13  6.24426e-06
  14  6.98599e-06
  15  2.2137e-06
  16  18.5333
  17  5.2622
  18  1.38151e-07
  19  37.5923
  20  0.000102504
  21  0.000205114
  22  72.449
  23  0.311842
  24  9.58502
  25  8.36902e-07
  26  17.5211
  27  0.187198
  28  0.232154
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  6.986e-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:  1.134e+00  2.322e-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:  8.159e-01  1.872e-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.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.55e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/834207/likelihoodResults_312681601_312940801_4FGL_J1023.1+3949_daily_bin283.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) = 5866.93215032
delta logL = -0.00135150051301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5866.93079876
delta logL = 6.5933818405e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2250       1.0000          .0000       5.0000    
     3 'Normalizat'    .81601       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1335       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=   5866.931     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      196 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2695        .90712E-02** at limit **
   2  alpha         2.1986        3.5127        .41471        .37789E-04
   3  Normalizat    .81592        .15311        .43819E-01   -.14110E-03
   4  Prefactor     1.1336        .19645        .60479E-01   -.12100E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.19858
  Normalizat = 0.815917
  Prefactor  = 1.13357
 **********
 **   18 **HESSE 
 **********

 FCN=   5866.931     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7225        .14380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1986        3.4760        .50000       -.12086    
   3  Normalizat    .81592        .17917        .24285E-03   -.99481    
   4  Prefactor     1.1336        .22983        .26747E-03   -.88401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4641e-09
Minuit parameter uncertainties:
  1  4.05913e-05
  2  2.48666
  3  0.179302
  4  0.230035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834207': 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) = 5866.93079804
delta logL = 7.80946720624e-07

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  4.059e-05  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.199e+00  2.487e+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.134e+00  2.300e-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:  8.159e-01  1.793e-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/834207/cmap_HighResolution_312681601_312940801_4FGL_J1023.1+3949_daily_bin283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.55e-05', job_status='DONE', photon_flux_upper_limit='4.43e-08', time_completed='2021-09-01 19:24:28.600126', job_id='834207', GAL2='1.13', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630549468.6', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='7.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='283' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:24:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 834207: <4FGL_J1023.1+3949_daily_bin283> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin283> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 19:10:45 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:10:47 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:10:47 2021
Terminated at Wed Sep  1 19:24:29 2021
Results reported at Wed Sep  1 19:24:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin283 155.788 39.8226 312681601 312940801 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 :                                   801.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             368.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            824 sec.

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

