/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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1023.1+3949_daily_bin215
RA = 155.788, Dec = 39.8226
tmin = 295056001, tmax = 295315201
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='834110', job_status='RUN', time_executed='2021-09-01 19:10:54.613228', time_epoch_executed='1630548654.61' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834110

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834110/ft1_4FGL_J1023.1+3949_daily_bin215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834110/ft2_4FGL_J1023.1+3949_daily_bin215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834110/ft1_4FGL_J1023.1+3949_daily_bin215.fits outfile=/scratch/kocevski/834110/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin215.fits ra=155.788 dec=39.8226 rad=12.0 tmin=295056001.0 tmax=295315201.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.68
user 2.43
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/834110/ft2_4FGL_J1023.1+3949_daily_bin215.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/834110/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin215.fits evtable="EVENTS" outfile="/scratch/kocevski/834110/ft1_filtered_4FGL_J1023.1+3949_daily_bin215.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/834110/ft1_filtered_4FGL_J1023.1+3949_daily_bin215.fits" evtable="EVENTS" scfile=/scratch/kocevski/834110/ft2_4FGL_J1023.1+3949_daily_bin215.fits sctable="SC_DATA" outfile=/scratch/kocevski/834110/ltcube_295056001_295315201_4FGL_J1023.1+3949_daily_bin215.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/834110/ft2_4FGL_J1023.1+3949_daily_bin215.fits
.....................!
real 11.98
user 11.58
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834110/ft1_filtered_4FGL_J1023.1+3949_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/834110/ft2_4FGL_J1023.1+3949_daily_bin215.fits sctable="SC_DATA" expcube=/scratch/kocevski/834110/ltcube_295056001_295315201_4FGL_J1023.1+3949_daily_bin215.fits outfile=/scratch/kocevski/834110/expmap_295056001_295315201_4FGL_J1023.1+3949_daily_bin215.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/834110/ltcube_295056001_295315201_4FGL_J1023.1+3949_daily_bin215.fits
.....................!
real 190.84
user 185.48
sys 5.00

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/834110/ft1_filtered_4FGL_J1023.1+3949_daily_bin215.fits scfile=/scratch/kocevski/834110/ft2_4FGL_J1023.1+3949_daily_bin215.fits outfile=/scratch/kocevski/834110/cmap_295056001_295315201_4FGL_J1023.1+3949_daily_bin215.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.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834110/ft1_filtered_4FGL_J1023.1+3949_daily_bin215.fits scfile=/scratch/kocevski/834110/ft2_4FGL_J1023.1+3949_daily_bin215.fits outfile=/scratch/kocevski/834110/cmap_HighResolution_295056001_295315201_4FGL_J1023.1+3949_daily_bin215.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.749       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.023       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .78316       1.0000         .10000E-03   10000.    
     7 'norm      '    11.953       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2942       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.704       1.0000         .10000E-03   10000.    
    12 'norm      '    4.4140       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .94119       1.0000         .10000E-03   10000.    
    14 'norm      '    5.9626       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14849E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.167       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8745       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15579E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.8095       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10771E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.949       1.0000         .10000E-03   10000.    
    26 'norm      '    41.331       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1405       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .74235       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=   5823.704     FROM MIGRAD    STATUS=CONVERGED    688 CALLS     3485 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.2124       -.18340E-06** at limit **
   2  Prefactor     .10000E-03    1.2239        .10025E-06** at limit **
   3  norm          .10000E-03    6.6595        .17784E-06** at limit **
   4  Prefactor     24.764        24.173        .16079E-05    .17257E-03
   5  Prefactor     17.017        28.813       -.16652E-05   -.13037E-03
   6  Prefactor     .78331        6.5676        .23911E-05   -.24156E-03
   7  norm          11.963        10.242       -.37369E-06   -.20436E-03
   8  Prefactor     .10000E-03    2.6176       -.45825E-08** at limit **
   9  Prefactor     .10000E-03    .83657       -.97153E-08** at limit **
  10  Prefactor     5.3130        5.9080       -.49682E-06   -.10744E-02
  11  Prefactor     19.699        35.476       -.16452E-05   -.14464E-03
  12  norm          4.4141        2.6673        .27741E-07   -.24380E-05
  13  Prefactor     .92610        7.3094        .17057E-05   -.46735E-03
  14  norm          5.9737        11.776       -.81525E-07   -.99861E-04
  15  Prefactor     .10000E-03    55.194        .39825E-06** at limit **
  16  Prefactor     16.156        16.583       -.29982E-07   -.40469E-04
  17  Prefactor     1.8779        5.6635        .17732E-05    .25556E-05
  18  Prefactor     .10000E-03    1.7076        .39677E-08** at limit **
  19  Prefactor     .10000E-03    35.815       -.38889E-06** at limit **
  20  Prefactor     .10000E-03    31.230       -.13015E-06** at limit **
  21  Prefactor     .10000E-03    55.374       -.12405E-05** at limit **
  22  Prefactor     .10000E-03    42.691        .18192E-05** at limit **
  23  norm          1.8096        .40761        .53557E-11   -.17032E-03
  24  Prefactor     .10000E-03    30.969       -.38615E-06** at limit **
  25  Prefactor     19.947        15.916       -.82269E-08   -.41827E-05
  26  norm          41.340        18.247        .14427E-06    .54168E-04
  27  Normalizat    1.1405        .17490       -.49620E-06   -.32370E-03
  28  Prefactor     .74247        .20045       -.53516E-07   -.18066E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.7645
  Prefactor  = 17.0167
  Prefactor  = 0.783311
  norm       = 11.9627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.31295
  Prefactor  = 19.6986
  norm       = 4.41411
  Prefactor  = 0.926101
  norm       = 5.97365
  Prefactor  = 0.0001
  Prefactor  = 16.1559
  Prefactor  = 1.87788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.80958
  Prefactor  = 0.0001
  Prefactor  = 19.947
  norm       = 41.3401
  Normalizat = 1.14045
  Prefactor  = 0.742471
 **********
 **   18 **HESSE 
 **********

 FCN=   5823.704     FROM HESSE     STATUS=OK           521 CALLS     4006 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.3338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.8851        .16337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.6621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.764        24.756        .80521E-04   -1.4712    
   5  Prefactor     17.017        29.325        .97074E-04   -1.4883    
   6  Prefactor     .78331        7.5131        .40368E-03   -1.5531    
   7  norm          11.963        10.307        .11587E-03   -1.5016    
   8  Prefactor     .10000E-03    2.6254        .12055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .84134        .68151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.3130        5.5539        .13233E-03   -1.5247    
  11  Prefactor     19.699        35.914        .90229E-04   -1.4820    
  12  norm          4.4141        2.6701        .93803E-04   -1.5288    
  13  Prefactor     .92610        9.8224        .25806E-02   -1.5516    
  14  norm          5.9737        11.535        .16444E-03   -1.5219    
  15  Prefactor     .10000E-03    55.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.156        16.562        .99611E-04   -1.4904    
  17  Prefactor     1.8779        5.6107        .27099E-03   -1.5434    
  18  Prefactor     .10000E-03    1.7130        .97334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    57.733        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    43.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.8096        .40921        .21754E-04   -1.5439    
  24  Prefactor     .10000E-03    31.971        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     19.947        15.953        .89674E-04   -1.4814    
  26  norm          41.340        18.238        .62352E-04   -1.4421    
  27  Normalizat    1.1405        .20028        .21587E-03   -.88463    
  28  Prefactor     .74247        .22897        .32236E-03   -1.0189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.99976e-10
Minuit parameter uncertainties:
  1  2.01176e-05
  2  1.14178e-05
  3  7.28989e-06
  4  24.7658
  5  29.3496
  6  4.85232
  7  10.3089
  8  1.93781e-06
  9  2.86906e-08
  10  5.55443
  11  35.9539
  12  2.6702
  13  6.03302
  14  11.5394
  15  0.000103347
  16  16.567
  17  5.61226
  18  4.16568e-06
  19  0.000176888
  20  2.7806e-05
  21  0.00027368
  22  0.000450466
  23  0.409207
  24  9.79297e-05
  25  15.9567
  26  18.2403
  27  0.20041
  28  0.229258
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  5.974e+00  1.154e+01  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.250e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.077e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  5.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  7.425e-01  2.293e-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.140e+00  2.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/834110/likelihoodResults_295056001_295315201_4FGL_J1023.1+3949_daily_bin215.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) = 5823.2120183
delta logL = 0.492408508334

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5823.15477083
delta logL = 0.549655977548

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79184       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0763       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80080       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=   5823.155     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      350 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .79093        .95353        .59913E-03   -.55061E-03
   2  alpha         5.0000        3.6304        .50000    ** at limit **
   3  Normalizat    1.0764        .19576        .22118E-03   -.18655E-03
   4  Prefactor     .80090        .23367        .31178E-03   -.50503E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.790925
  alpha      = 5
  Normalizat = 1.0764
  Prefactor  = 0.800902
 **********
 **   18 **HESSE 
 **********

 FCN=   5823.155     FROM HESSE     STATUS=OK            31 CALLS      381 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .79093        .90652        .23965E-04   -1.5530    
   2  alpha         5.0000        3.5421        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0764        .19619        .44236E-04   -.90513    
   4  Prefactor     .80090        .23402        .12471E-04   -.99695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98421e-11
Minuit parameter uncertainties:
  1  0.906539
  2  6.26195e-05
  3  0.196326
  4  0.234307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834110': 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) = 5823.15476743
delta logL = 0.549659377838

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  7.909e-01  9.065e-01  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  5.000e+00  6.262e-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:  8.009e-01  2.343e-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.076e+00  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.60
Ra Dec: 155.788 39.823
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.11e-08 +/- 6.97e-08
Energy Flux (Free Index): 8.29e-06 +/- 9.48e-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/834110/cmap_HighResolution_295056001_295315201_4FGL_J1023.1+3949_daily_bin215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.01e-05', comment='SUCCESS', energy_flux2='8.29e-06', dlogl='5.50e-01', photon_flux2='6.11e-08', job_status='DONE', time_completed='2021-09-01 19:24:55.580941', photon_index_error2='0.00', photon_index2='5.00', ts='0.39', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='8.62e-08', energy_flux_error2='9.48e-06', EG='1.14', time_epoch_completed='1630549495.58', return_code='0', job_id='834110', GAL2='0.80', EG2='1.08', return_code2='0', photon_flux_error2='6.97e-08', ts2='1.60', photon_index='2.25' WHERE bin_id='215' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:24:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 834110: <4FGL_J1023.1+3949_daily_bin215> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin215 155.788 39.8226 295056001 295315201 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 :                                   838.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             351.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            857 sec.

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

