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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1457
RA = 155.788, Dec = 39.8226
tmin = 616982401, tmax = 617241601
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='841102', job_status='RUN', time_executed='2021-09-01 19:40:30.268487', time_epoch_executed='1630550430.27' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1457'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/841102

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/841102/ft1_4FGL_J1023.1+3949_daily_bin1457.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/841102/ft2_4FGL_J1023.1+3949_daily_bin1457.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/841102/ft1_4FGL_J1023.1+3949_daily_bin1457.fits outfile=/scratch/kocevski/841102/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1457.fits ra=155.788 dec=39.8226 rad=12.0 tmin=616982401.0 tmax=617241601.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.03
user 2.83
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/841102/ft1_filtered_4FGL_J1023.1+3949_daily_bin1457.fits" evtable="EVENTS" scfile=/scratch/kocevski/841102/ft2_4FGL_J1023.1+3949_daily_bin1457.fits sctable="SC_DATA" outfile=/scratch/kocevski/841102/ltcube_616982401_617241601_4FGL_J1023.1+3949_daily_bin1457.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/841102/ft2_4FGL_J1023.1+3949_daily_bin1457.fits
.....................!
real 13.40
user 13.04
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/841102/ft1_filtered_4FGL_J1023.1+3949_daily_bin1457.fits evtable="EVENTS" scfile=/scratch/kocevski/841102/ft2_4FGL_J1023.1+3949_daily_bin1457.fits sctable="SC_DATA" expcube=/scratch/kocevski/841102/ltcube_616982401_617241601_4FGL_J1023.1+3949_daily_bin1457.fits outfile=/scratch/kocevski/841102/expmap_616982401_617241601_4FGL_J1023.1+3949_daily_bin1457.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/841102/ltcube_616982401_617241601_4FGL_J1023.1+3949_daily_bin1457.fits
.....................!
real 192.06
user 186.85
sys 4.77

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/841102/ft1_filtered_4FGL_J1023.1+3949_daily_bin1457.fits scfile=/scratch/kocevski/841102/ft2_4FGL_J1023.1+3949_daily_bin1457.fits outfile=/scratch/kocevski/841102/cmap_616982401_617241601_4FGL_J1023.1+3949_daily_bin1457.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/841102/ft1_filtered_4FGL_J1023.1+3949_daily_bin1457.fits scfile=/scratch/kocevski/841102/ft2_4FGL_J1023.1+3949_daily_bin1457.fits outfile=/scratch/kocevski/841102/cmap_HighResolution_616982401_617241601_4FGL_J1023.1+3949_daily_bin1457.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=155.788 yref=39.8226 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10851E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19838E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .21756E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8862       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.548       1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.301       1.0000         .10000E-03   10000.    
    12 'norm      '    4.3709       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    14.626       1.0000         .10000E-03   10000.    
    15 'Prefactor '    55.095       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.835       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .34489E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12278E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.9038       1.0000         .10000E-03   10000.    
    23 'norm      '    3.1560       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0887       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .99958       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=   3971.237     FROM MIGRAD    STATUS=CONVERGED    740 CALLS     3547 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.387       -.19673E-06** at limit **
   2  Prefactor     .10000E-03    3.7732       -.11196E-06** at limit **
   3  norm          .10000E-03    19.488       -.15770E-06** at limit **
   4  Prefactor     .10000E-03    23.350       -.23409E-06** at limit **
   5  Prefactor     .10001E-03    214.15       -.22374E-05** at limit **
   6  Prefactor     .10000E-03    8.4165       -.34152E-06** at limit **
   7  norm          .10000E-03    44.048       -.20014E-06** at limit **
   8  Prefactor     .10000E-03    3.0557       -.91833E-07** at limit **
   9  Prefactor     1.8871        5.7564        .51930E-06    .34098E-03
  10  Prefactor     11.542        6.9023        .72788E-07    .56941E-04
  11  Prefactor     47.258        51.614        .39248E-06    .10779E-03
  12  norm          4.3735        3.2414        .69419E-07    .44523E-03
  13  Prefactor     .10000E-03    5.5306       -.98676E-06** at limit **
  14  norm          14.632        12.593        .70487E-07    .17078E-04
  15  Prefactor     55.061        83.825       -.45006E-06    .38850E-05
  16  Prefactor     20.710        49.841       -.64502E-06   -.46378E-04
  17  Prefactor     .10000E-03    3.2225       -.38221E-07** at limit **
  18  Prefactor     .10001E-03    6.8667       -.49286E-06** at limit **
  19  Prefactor     .10000E-03    10.894        .20350E-07** at limit **
  20  Prefactor     .10000E-03    28.858       -.63182E-07** at limit **
  21  Prefactor     .10000E-03    16.276       -.40138E-06** at limit **
  22  Prefactor     5.1557        273.43       -.46227E-05    .18611E-04
  23  norm          3.1557        .51497        .44782E-08    .31173E-02
  24  Prefactor     .10000E-03    13.747       -.61921E-06** at limit **
  25  Prefactor     .10000E-03    6.6054       -.11156E-06** at limit **
  26  norm          .10001E-03    47.645       -.18827E-04** at limit **
  27  Normalizat    1.0890        .22386       -.13797E-05    .60175E-03
  28  Prefactor     .99916        .26869        .35935E-05    .60246E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.8871
  Prefactor  = 11.5424
  Prefactor  = 47.2583
  norm       = 4.37353
  Prefactor  = 0.000100001
  norm       = 14.6315
  Prefactor  = 55.0606
  Prefactor  = 20.71
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.15567
  norm       = 3.15574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100011
  Normalizat = 1.08896
  Prefactor  = 0.999161
 **********
 **   18 **HESSE 
 **********

 FCN=   3971.237     FROM HESSE     STATUS=OK           507 CALLS     4054 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.7814        .11957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    19.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    216.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.4408        .17867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    45.476        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.0606        .10760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8871        5.7445        .25441E-03   -1.5433    
  10  Prefactor     11.542        6.9030        .11788E-03   -1.5028    
  11  Prefactor     47.258        51.889        .58301E-04   -1.4332    
  12  norm          4.3735        3.2418        .94644E-04   -1.5290    
  13  Prefactor     .10000E-03    5.6545        .14552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          14.632        12.582        .10473E-03   -1.4943    
  15  Prefactor     55.061        83.947        .54041E-04   -1.4223    
  16  Prefactor     20.710        50.608        .87749E-04   -1.4797    
  17  Prefactor     .10000E-03    3.2680        .11043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    71.712        .27851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.1557        271.81        .18163E-03   -1.5254    
  23  norm          3.1557        .51509        .17520E-04   -1.5353    
  24  Prefactor     .10000E-03    13.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.6109        .15818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10001E-03    48.130        .39354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0890        .26501        .24722E-03   -.90107    
  28  Prefactor     .99916        .32278        .32012E-03   -.92757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05489e-09
Minuit parameter uncertainties:
  1  7.40779e-07
  2  1.70239e-05
  3  0.000127001
  4  4.9072e-05
  5  0.00267395
  6  7.66585e-05
  7  0.0003476
  8  1.23819e-05
  9  5.74613
  10  6.90347
  11  51.9388
  12  3.2419
  13  0.000175088
  14  12.584
  15  84.1282
  16  50.7135
  17  1.53399e-06
  18  0.00144804
  19  1.25373e-05
  20  0.000160095
  21  0.000141825
  22  75.232
  23  0.515094
  24  0.000151971
  25  1.7171e-05
  26  0.00143016
  27  0.265335
  28  0.323404
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.463e+01  1.258e+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:  9.992e-01  3.234e-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.089e+00  2.653e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.76
Ra Dec: 155.788 39.823
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 4.17e-08 +/- 3.58e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.25e-05

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) = 3971.08115137
delta logL = 0.15574069397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3971.05865412
delta logL = 0.178237952236

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.820       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7278       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1083       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98690       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=   3971.059     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      226 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.808        10.540        .29130E-02    .18897E-04
   2  alpha         1.7272        .60347        .40735       -.20607E-04
   3  Normalizat    1.1077        .21433        .55513E-01   -.99295E-04
   4  Prefactor     .98744        .26749        .72759E-01   -.38304E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.8079
  alpha      = 1.72723
  Normalizat = 1.10775
  Prefactor  = 0.987442
 **********
 **   18 **HESSE 
 **********

 FCN=   3971.059     FROM HESSE     STATUS=OK            31 CALLS      257 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.808        12.696        .11652E-03   -1.5021    
   2  alpha         1.7272        .82617        .15672E-01   -.31426    
   3  Normalizat    1.1077        .25469        .24547E-03   -.89504    
   4  Prefactor     .98744        .31722        .32191E-03   -.93149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45035e-11
Minuit parameter uncertainties:
  1  12.6986
  2  0.843771
  3  0.254975
  4  0.317824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/841102': 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) = 3971.05865033
delta logL = 0.178241735851

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.181e+01  1.270e+01  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  1.727e+00  8.438e-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:  9.874e-01  3.178e-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.108e+00  2.550e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.12
Ra Dec: 155.788 39.823
Photon Index (Free Index): 1.73 +/- 0.84
Photon Flux (Free Index): 2.39e-08 +/- 3.14e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.98e-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/841102/cmap_HighResolution_616982401_617241601_4FGL_J1023.1+3949_daily_bin1457.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.17e-08', energy_flux2='1.81e-05', photon_flux_error='3.58e-08', dlogl='1.78e-01', energy_flux='1.45e-05', photon_flux2='2.39e-08', job_status='DONE', time_completed='2021-09-01 19:51:36.149552', photon_index_error2='0.84', photon_index2='1.73', ts='5.76', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.98e-05', EG='1.09', time_epoch_completed='1630551096.15', return_code='0', job_id='841102', GAL2='0.99', EG2='1.11', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='3.14e-08', ts2='6.12', photon_index='2.25' WHERE bin_id='1457' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:51:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 841102: <4FGL_J1023.1+3949_daily_bin1457> in cluster <slac> Done

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

Your job looked like:

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

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

