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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1018
RA = 155.788, Dec = 39.8226
tmin = 503193601, tmax = 503452801
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='839314', job_status='RUN', time_executed='2021-09-01 19:32:23.145612', time_epoch_executed='1630549943.15' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1018'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839314

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839314/ft1_4FGL_J1023.1+3949_daily_bin1018.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839314/ft2_4FGL_J1023.1+3949_daily_bin1018.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839314/ft1_4FGL_J1023.1+3949_daily_bin1018.fits outfile=/scratch/kocevski/839314/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1018.fits ra=155.788 dec=39.8226 rad=12.0 tmin=503193601.0 tmax=503452801.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.14
user 4.90
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839314/ft1_filtered_4FGL_J1023.1+3949_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/839314/ft2_4FGL_J1023.1+3949_daily_bin1018.fits sctable="SC_DATA" expcube=/scratch/kocevski/839314/ltcube_503193601_503452801_4FGL_J1023.1+3949_daily_bin1018.fits outfile=/scratch/kocevski/839314/expmap_503193601_503452801_4FGL_J1023.1+3949_daily_bin1018.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/839314/ltcube_503193601_503452801_4FGL_J1023.1+3949_daily_bin1018.fits
.....................!
real 191.48
user 185.84
sys 4.85

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/839314/ft1_filtered_4FGL_J1023.1+3949_daily_bin1018.fits scfile=/scratch/kocevski/839314/ft2_4FGL_J1023.1+3949_daily_bin1018.fits outfile=/scratch/kocevski/839314/cmap_503193601_503452801_4FGL_J1023.1+3949_daily_bin1018.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.57
user 0.39
sys 0.15

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6630       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .93714       1.0000         .10000E-03   10000.    
     3 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .48188       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.7535       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.032       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8390       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.7705       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.8026       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22215E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .92414       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.244       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.9323       1.0000         .10000E-03   10000.    
    26 'norm      '    16.684       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .98327       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .88984       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=   6148.798     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3030 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6637        7.8584        .64085E-07    .18782E-04
   2  Prefactor     .93691        1.9472        .27812E-06   -.19356E-03
   3  norm          .10000E-03    9.4564       -.21717E-06** at limit **
   4  Prefactor     .16979        16.687       -.32581E-06    .38802E-04
   5  Prefactor     8.9468        37.820       -.25124E-06    .14276E-04
   6  Prefactor     .10000E-03    2.1197       -.34852E-08** at limit **
   7  norm          16.031        11.000        .24477E-06    .12023E-03
   8  Prefactor     .10000E-03    2.7832        .37696E-09** at limit **
   9  Prefactor     .10000E-03    1.4907        .32981E-07** at limit **
  10  Prefactor     1.8394        2.4328        .81259E-07   -.14797E-03
  11  Prefactor     .10000E-03    9.3180        .34420E-07** at limit **
  12  norm          .10000E-03    .95212        .82580E-08** at limit **
  13  Prefactor     .10000E-03    1.2499       -.26944E-07** at limit **
  14  norm          5.7718        6.1317        .14515E-05   -.11381E-02
  15  Prefactor     .10000E-03    21.180       -.68469E-06** at limit **
  16  Prefactor     .10000E-03    20.233        .60896E-06** at limit **
  17  Prefactor     7.8027        4.3297       -.90837E-07   -.70287E-04
  18  Prefactor     .10000E-03    2.4340       -.11695E-06** at limit **
  19  Prefactor     .10000E-03    11.762       -.11682E-06** at limit **
  20  Prefactor     .10000E-03    67.502       -.89836E-06** at limit **
  21  Prefactor     .10000E-03    11.050        .56224E-07** at limit **
  22  Prefactor     .10000E-03    106.08        .27793E-05** at limit **
  23  norm          .92416        .29068       -.75811E-07    .14899E-03
  24  Prefactor     10.238        13.189        .53015E-06    .85771E-04
  25  Prefactor     1.9215        27.654        .66680E-05    .16823E-03
  26  norm          16.683        13.615       -.10390E-05   -.37835E-03
  27  Normalizat    .98319        .15226       -.21989E-06   -.16045E-04
  28  Prefactor     .89003        .18449       -.16680E-06   -.30226E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.66373
  Prefactor  = 0.936913
  norm       = 0.0001
  Prefactor  = 0.169792
  Prefactor  = 8.94679
  Prefactor  = 0.0001
  norm       = 16.0314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.83939
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.77184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.80274
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.924164
  Prefactor  = 10.2378
  Prefactor  = 1.92154
  norm       = 16.6827
  Normalizat = 0.983187
  Prefactor  = 0.89003
 **********
 **   18 **HESSE 
 **********

 FCN=   6148.798     FROM HESSE     STATUS=OK           533 CALLS     3563 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6637        7.8288        .13619E-03   -1.5119    
   2  Prefactor     .93691        1.7777        .15193E-02   -1.5514    
   3  norm          .10000E-03    9.5361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .16979        22.383        .89843E-01   -1.5626    
   5  Prefactor     8.9468        38.868        .13548E-03   -1.5110    
   6  Prefactor     .10000E-03    2.1215        .11149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.031        11.027        .10003E-03   -1.4907    
   8  Prefactor     .10000E-03    2.8014        .12772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.8215        .18533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8394        2.4169        .13505E-03   -1.5437    
  11  Prefactor     .10000E-03    9.3281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .96414        .74700E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.2596        .85521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.7718        7.1773        .83599E-03   -1.5227    
  15  Prefactor     .10000E-03    21.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.8027        4.3351        .11487E-03   -1.5149    
  18  Prefactor     .10000E-03    5.2333        .23628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    67.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    107.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .92416        .29315        .21171E-04   -1.5516    
  24  Prefactor     10.238        13.025        .12519E-03   -1.5068    
  25  Prefactor     1.9215        29.465        .29877E-03   -1.5431    
  26  norm          16.683        13.953        .98055E-04   -1.4891    
  27  Normalizat    .98319        .17809        .21144E-03   -.93596    
  28  Prefactor     .89003        .21588        .28060E-03   -.96490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.10805e-09
Minuit parameter uncertainties:
  1  7.82968
  2  1.77783
  3  1.98892e-05
  4  3.89932
  5  37.3364
  6  5.82167e-08
  7  11.028
  8  1.08809e-06
  9  3.20034e-06
  10  2.41703
  11  8.07056e-06
  12  1.79925e-07
  13  8.39248e-07
  14  7.17842
  15  0.000138342
  16  0.000127093
  17  4.33525
  18  1.15635e-06
  19  1.58501e-05
  20  0.000324944
  21  1.02282e-05
  22  0.00126175
  23  0.293151
  24  13.0285
  25  15.0575
  26  13.9562
  27  0.178199
  28  0.216086
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  5.772e+00  7.178e+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:  8.900e-01  2.161e-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:  9.832e-01  1.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 155.788 39.823
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 1.64e-08 +/- 2.04e-08
Energy Flux (Fixed Index): 5.74e-06 +/- 7.14e-06

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

Saving results to:
/scratch/kocevski/839314/likelihoodResults_503193601_503452801_4FGL_J1023.1+3949_daily_bin1018.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) = 6148.74249809
delta logL = 0.0553457620463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6148.74073479
delta logL = 0.0571090594831

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4044       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5513       1.0000          .0000       5.0000    
     3 'Normalizat'    .97890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89316       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6148.741     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      248 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4020        6.9777        .86429E-03    .18521E-03
   2  alpha         2.5512        .92024        .23303E-01    .30935E-05
   3  Normalizat    .97897        .16814        .21183E-03   -.32201E-06
   4  Prefactor     .89311        .21324        .28015E-03    .14609E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.40196
  alpha      = 2.55116
  Normalizat = 0.978966
  Prefactor  = 0.893113
 **********
 **   18 **HESSE 
 **********

 FCN=   6148.741     FROM HESSE     STATUS=OK            27 CALLS      275 TOTAL
                     EDM=   .16E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4020        6.7685        .17286E-03   -1.5243    
   2  alpha         2.5512        .89393        .93212E-03    .20467E-01
   3  Normalizat    .97897        .16831        .84733E-05   -.93738    
   4  Prefactor     .89311        .21343        .11206E-04   -.96382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60862e-14
Minuit parameter uncertainties:
  1  6.76947
  2  0.914175
  3  0.168399
  4  0.213626
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839314': 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) = 6148.7407346
delta logL = 0.0571092567034

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  5.402e+00  6.769e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.551e+00  9.142e-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:  8.931e-01  2.136e-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:  9.790e-01  1.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 155.788 39.823
Photon Index (Free Index): 2.55 +/- 0.91
Photon Flux (Free Index): 2.02e-08 +/- 2.48e-08
Energy Flux (Free Index): 5.38e-06 +/- 6.40e-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/839314/cmap_HighResolution_503193601_503452801_4FGL_J1023.1+3949_daily_bin1018.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-05', comment='SUCCESS', photon_flux='1.64e-08', energy_flux2='5.38e-06', photon_flux_error='2.04e-08', dlogl='5.71e-02', energy_flux='5.74e-06', photon_flux2='2.02e-08', job_status='DONE', time_completed='2021-09-01 19:46:24.470219', photon_index_error2='0.91', photon_index2='2.55', ts='1.06', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='6.76e-08', energy_flux_error2='6.40e-06', EG='0.98', time_epoch_completed='1630550784.47', return_code='0', job_id='839314', GAL2='0.89', EG2='0.98', return_code2='0', energy_flux_error='7.14e-06', photon_flux_error2='2.48e-08', ts2='1.17', photon_index='2.25' WHERE bin_id='1018' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:46:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 839314: <4FGL_J1023.1+3949_daily_bin1018> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1018> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 19:30:21 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:30:32 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:30:32 2021
Terminated at Wed Sep  1 19:46:25 2021
Results reported at Wed Sep  1 19:46:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1018 155.788 39.8226 503193601 503452801 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 :                                   835.45 sec.
    Max Memory :                                 1166 MB
    Average Memory :                             303.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            964 sec.

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

