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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1523
RA = 155.788, Dec = 39.8226
tmin = 634089601, tmax = 634348801
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='841198', job_status='RUN', time_executed='2021-09-01 19:38:26.559581', time_epoch_executed='1630550306.56' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/841198

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/841198/ft1_4FGL_J1023.1+3949_daily_bin1523.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/841198/ft2_4FGL_J1023.1+3949_daily_bin1523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/841198/ft1_4FGL_J1023.1+3949_daily_bin1523.fits outfile=/scratch/kocevski/841198/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1523.fits ra=155.788 dec=39.8226 rad=12.0 tmin=634089601.0 tmax=634348801.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 5.03
user 4.76
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/841198/ft2_4FGL_J1023.1+3949_daily_bin1523.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/841198/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1523.fits evtable="EVENTS" outfile="/scratch/kocevski/841198/ft1_filtered_4FGL_J1023.1+3949_daily_bin1523.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.50
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/841198/ft1_filtered_4FGL_J1023.1+3949_daily_bin1523.fits" evtable="EVENTS" scfile=/scratch/kocevski/841198/ft2_4FGL_J1023.1+3949_daily_bin1523.fits sctable="SC_DATA" outfile=/scratch/kocevski/841198/ltcube_634089601_634348801_4FGL_J1023.1+3949_daily_bin1523.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/841198/ft2_4FGL_J1023.1+3949_daily_bin1523.fits
.....................!
real 12.97
user 12.66
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/841198/ft1_filtered_4FGL_J1023.1+3949_daily_bin1523.fits evtable="EVENTS" scfile=/scratch/kocevski/841198/ft2_4FGL_J1023.1+3949_daily_bin1523.fits sctable="SC_DATA" expcube=/scratch/kocevski/841198/ltcube_634089601_634348801_4FGL_J1023.1+3949_daily_bin1523.fits outfile=/scratch/kocevski/841198/expmap_634089601_634348801_4FGL_J1023.1+3949_daily_bin1523.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/841198/ltcube_634089601_634348801_4FGL_J1023.1+3949_daily_bin1523.fits
.....................!
real 189.97
user 185.86
sys 3.69

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/841198/ft1_filtered_4FGL_J1023.1+3949_daily_bin1523.fits scfile=/scratch/kocevski/841198/ft2_4FGL_J1023.1+3949_daily_bin1523.fits outfile=/scratch/kocevski/841198/cmap_634089601_634348801_4FGL_J1023.1+3949_daily_bin1523.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.58
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5861       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4692       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2781       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6612       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.854       1.0000         .10000E-03   10000.    
    12 'norm      '    3.4126       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.015       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4511       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.065       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .48755       1.0000         .10000E-03   10000.    
    24 'Prefactor '    45.171       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.6694       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0234       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .72894       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=   5639.358     FROM MIGRAD    STATUS=CONVERGED    676 CALLS     3449 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5857        8.8001        .33212E-06   -.70594E-03
   2  Prefactor     .10000E-03    .71538        .76014E-07** at limit **
   3  norm          .10000E-03    4.5639       -.30645E-07** at limit **
   4  Prefactor     .10000E-03    8.6058       -.42151E-05** at limit **
   5  Prefactor     .10000E-03    9.9579        .69213E-05** at limit **
   6  Prefactor     3.4693        4.5919        .10523E-05   -.19819E-02
   7  norm          .10000E-03    8.6832       -.37359E-05** at limit **
   8  Prefactor     6.2780        5.9296        .40192E-06   -.12849E-02
   9  Prefactor     1.6613        2.3654        .92471E-07   -.12272E-03
  10  Prefactor     .10000E-03    1.1672       -.24683E-06** at limit **
  11  Prefactor     23.857        27.781        .13767E-05    .40770E-04
  12  norm          3.4127        2.5442       -.20390E-07    .35168E-04
  13  Prefactor     .10000E-03    1.4290       -.30633E-07** at limit **
  14  norm          10.015        7.2991       -.10163E-06   -.54686E-05
  15  Prefactor     .10000E-03    47.645       -.58468E-05** at limit **
  16  Prefactor     .10000E-03    16.081       -.18856E-05** at limit **
  17  Prefactor     2.4511        3.4003       -.36973E-07   -.12114E-03
  18  Prefactor     .10000E-03    1.6983        .76026E-07** at limit **
  19  Prefactor     41.064        31.157       -.54846E-06   -.17614E-04
  20  Prefactor     .10000E-03    32.567        .56031E-05** at limit **
  21  Prefactor     .10000E-03    7.4723        .28781E-05** at limit **
  22  Prefactor     .10000E-03    16.094       -.14984E-05** at limit **
  23  norm          .48755        .22212        .20363E-08    .66262E-04
  24  Prefactor     45.171        17.830        .77342E-07    .95483E-05
  25  Prefactor     .10000E-03    5.7029       -.38169E-06** at limit **
  26  norm          3.6688        10.655        .28861E-07   -.37874E-04
  27  Normalizat    1.0233        .15328       -.38231E-06    .12178E-03
  28  Prefactor     .72901        .18990        .35297E-06    .52329E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.58569
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.46933
  norm       = 0.0001
  Prefactor  = 6.27804
  Prefactor  = 1.66125
  Prefactor  = 0.0001
  Prefactor  = 23.8568
  norm       = 3.41265
  Prefactor  = 0.0001
  norm       = 10.0153
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.45111
  Prefactor  = 0.0001
  Prefactor  = 41.0641
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.487551
  Prefactor  = 45.1711
  Prefactor  = 0.0001
  norm       = 3.6688
  Normalizat = 1.02335
  Prefactor  = 0.729008
 **********
 **   18 **HESSE 
 **********

 FCN=   5639.358     FROM HESSE     STATUS=OK           517 CALLS     3966 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5857        9.0975        .72801E-03   -1.5157    
   2  Prefactor     .10000E-03    .72434        .61995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.5696        .15668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.6734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4693        6.6146        .10856E-02   -1.5335    
   7  norm          .10000E-03    8.7992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.2780        6.3693        .80102E-03   -1.5207    
   9  Prefactor     1.6613        2.3462        .13294E-03   -1.5450    
  10  Prefactor     .10000E-03    1.1814        .79198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.857        27.829        .82015E-04   -1.4731    
  12  norm          3.4127        2.5416        .99135E-04   -1.5338    
  13  Prefactor     .10000E-03    1.4467        .87628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.015        7.2924        .12662E-03   -1.5075    
  15  Prefactor     .10000E-03    47.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.4511        3.3855        .15351E-03   -1.5395    
  18  Prefactor     .10000E-03    1.7096        .95545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     41.064        31.121        .62553E-04   -1.4425    
  20  Prefactor     .10000E-03    32.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.4966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .48755        .22290        .22792E-04   -1.5568    
  24  Prefactor     45.171        17.790        .59654E-04   -1.4363    
  25  Prefactor     .10000E-03    5.7087        .17511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.6688        10.621        .21086E-03   -1.5325    
  27  Normalizat    1.0233        .18325        .20193E-03   -.92252    
  28  Prefactor     .72901        .22439        .29732E-03   -1.0240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.17357e-09
Minuit parameter uncertainties:
  1  9.0992
  2  4.81564e-07
  3  6.13692e-07
  4  0.000121224
  5  0.000209695
  6  6.61602
  7  9.56776e-05
  8  6.36999
  9  2.34628
  10  2.60262e-06
  11  27.8437
  12  2.54166
  13  4.16304e-07
  14  7.29309
  15  0.00038522
  16  6.77726e-05
  17  3.38581
  18  1.4849e-06
  19  31.1332
  20  0.000307958
  21  7.52207e-05
  22  5.81583e-05
  23  0.222902
  24  17.7918
  25  9.42322e-06
  26  10.6262
  27  0.183366
  28  0.22467
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  7.290e-01  2.247e-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.023e+00  1.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.38
Ra Dec: 155.788 39.823
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 2.85e-08 +/- 2.08e-08
Energy Flux (Fixed Index): 9.96e-06 +/- 7.25e-06

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) = 5638.87929637
delta logL = 0.47882897521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5638.86225819
delta logL = 0.495867160165

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7687       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5889       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0405       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71389       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=   5638.862     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      212 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7714        6.2543        .33840E-02   -.16042E-04
   2  alpha         1.5886        .46446        .37699       -.30499E-04
   3  Normalizat    1.0403        .14980        .41242E-01    .30532E-05
   4  Prefactor     .71436        .18975        .67792E-01    .20130E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.77144
  alpha      = 1.58856
  Normalizat = 1.04034
  Prefactor  = 0.714364
 **********
 **   18 **HESSE 
 **********

 FCN=   5638.862     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7714        7.1292        .13536E-03   -1.5116    
   2  alpha         1.5886        .59802        .14700E-01   -.37318    
   3  Normalizat    1.0403        .17642        .20047E-03   -.91691    
   4  Prefactor     .71436        .22299        .29996E-03   -1.0297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00666e-09
Minuit parameter uncertainties:
  1  7.12991
  2  0.604803
  3  0.176515
  4  0.22327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/841198': 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) = 5638.86225334
delta logL = 0.495872011174

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  7.144e-01  2.233e-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.040e+00  1.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.40
Ra Dec: 155.788 39.823
Photon Index (Free Index): 1.59 +/- 0.60
Photon Flux (Free Index): 1.69e-08 +/- 1.53e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.74e-05

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/841198/cmap_HighResolution_634089601_634348801_4FGL_J1023.1+3949_daily_bin1523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.85e-08', energy_flux2='1.69e-05', photon_flux_error='2.08e-08', dlogl='4.96e-01', energy_flux='9.96e-06', photon_flux2='1.69e-08', job_status='DONE', time_completed='2021-09-01 19:51:34.902218', photon_index_error2='0.60', photon_index2='1.59', ts='4.38', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.74e-05', EG='1.02', time_epoch_completed='1630551094.9', return_code='0', job_id='841198', GAL2='0.71', EG2='1.04', return_code2='0', energy_flux_error='7.25e-06', photon_flux_error2='1.53e-08', ts2='5.40', photon_index='2.25' WHERE bin_id='1523' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:51:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 841198: <4FGL_J1023.1+3949_daily_bin1523> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1523 155.788 39.8226 634089601 634348801 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 :                                   713.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            964 sec.

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

