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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin718
RA = 155.788, Dec = 39.8226
tmin = 425433601, tmax = 425692801
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='836909', job_status='RUN', time_executed='2021-09-01 19:20:32.141268', time_epoch_executed='1630549232.14' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/836909

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

Retrieving the FT1 file...

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

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

Retrieving 38 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/836909/ft1_4FGL_J1023.1+3949_daily_bin718.fits


Retrieving the FT1 file...

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

Retrieving 38 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/836909/ft2_4FGL_J1023.1+3949_daily_bin718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/836909/ft1_4FGL_J1023.1+3949_daily_bin718.fits outfile=/scratch/kocevski/836909/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin718.fits ra=155.788 dec=39.8226 rad=12.0 tmin=425433601.0 tmax=425692801.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.08
user 2.87
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/836909/ft1_filtered_4FGL_J1023.1+3949_daily_bin718.fits" evtable="EVENTS" scfile=/scratch/kocevski/836909/ft2_4FGL_J1023.1+3949_daily_bin718.fits sctable="SC_DATA" outfile=/scratch/kocevski/836909/ltcube_425433601_425692801_4FGL_J1023.1+3949_daily_bin718.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/836909/ft2_4FGL_J1023.1+3949_daily_bin718.fits
.....................!
real 10.24
user 9.84
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/836909/ft1_filtered_4FGL_J1023.1+3949_daily_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/836909/ft2_4FGL_J1023.1+3949_daily_bin718.fits sctable="SC_DATA" expcube=/scratch/kocevski/836909/ltcube_425433601_425692801_4FGL_J1023.1+3949_daily_bin718.fits outfile=/scratch/kocevski/836909/expmap_425433601_425692801_4FGL_J1023.1+3949_daily_bin718.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/836909/ltcube_425433601_425692801_4FGL_J1023.1+3949_daily_bin718.fits
.....................!
real 190.28
user 185.91
sys 3.93

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/836909/ft1_filtered_4FGL_J1023.1+3949_daily_bin718.fits scfile=/scratch/kocevski/836909/ft2_4FGL_J1023.1+3949_daily_bin718.fits outfile=/scratch/kocevski/836909/cmap_425433601_425692801_4FGL_J1023.1+3949_daily_bin718.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=155.788 yref=39.8226 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/836909/ft1_filtered_4FGL_J1023.1+3949_daily_bin718.fits scfile=/scratch/kocevski/836909/ft2_4FGL_J1023.1+3949_daily_bin718.fits outfile=/scratch/kocevski/836909/cmap_HighResolution_425433601_425692801_4FGL_J1023.1+3949_daily_bin718.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5600       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0685       1.0000         .10000E-03   10000.    
     3 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.499       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.7614       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .44177       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3510       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .41732E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3341       1.0000         .10000E-03   10000.    
    14 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.243       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6173       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    69.934       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-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      '    1.3763       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .79931       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0807       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=   4693.170     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3533 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5598        7.0959       -.39835E-07   -.43052E-04
   2  Prefactor     2.0684        2.0997        .83582E-08   -.59030E-04
   3  norm          .10000E-03    12.103       -.20980E-05** at limit **
   4  Prefactor     34.497        24.463       -.49842E-06    .25705E-04
   5  Prefactor     9.7609        24.258       -.27424E-06    .26018E-05
   6  Prefactor     .46908        7.7935       -.17836E-05   -.42649E-04
   7  norm          .10000E-03    10.431        .66650E-05** at limit **
   8  Prefactor     8.3502        7.7626       -.21626E-06   -.19899E-03
   9  Prefactor     .10000E-03    .64390       -.29848E-10** at limit **
  10  Prefactor     .10000E-03    2.9122       -.14438E-06** at limit **
  11  Prefactor     .10000E-03    9.4083       -.31676E-05** at limit **
  12  norm          .10000E-03    1.0099       -.50170E-08** at limit **
  13  Prefactor     3.3658        5.5649        .39926E-06   -.14589E-03
  14  norm          .10000E-03    13.234       -.56474E-05** at limit **
  15  Prefactor     17.247        39.375        .56365E-05    .32600E-05
  16  Prefactor     .10000E-03    16.187        .79568E-05** at limit **
  17  Prefactor     5.6168        3.9881        .16630E-07    .90126E-04
  18  Prefactor     .10000E-03    2.7103       -.17328E-07** at limit **
  19  Prefactor     69.936        43.871       -.30833E-07    .24610E-04
  20  Prefactor     .10000E-03    35.583        .63369E-05** at limit **
  21  Prefactor     .10000E-03    14.690       -.14840E-05** at limit **
  22  Prefactor     .10000E-03    27.122       -.69028E-05** at limit **
  23  norm          1.3762        .33458        .37394E-09    .17552E-03
  24  Prefactor     .10000E-03    6.9488        .14458E-06** at limit **
  25  Prefactor     .10000E-03    4.0026       -.13720E-07** at limit **
  26  norm          .10000E-03    4.4388        .17148E-07** at limit **
  27  Normalizat    .79940        .16999        .10515E-06    .13607E-03
  28  Prefactor     1.0807        .21339       -.19051E-06    .11625E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55976
  Prefactor  = 2.06837
  norm       = 0.0001
  Prefactor  = 34.4968
  Prefactor  = 9.7609
  Prefactor  = 0.469081
  norm       = 0.0001
  Prefactor  = 8.35019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.3658
  norm       = 0.0001
  Prefactor  = 17.2469
  Prefactor  = 0.0001
  Prefactor  = 5.61684
  Prefactor  = 0.0001
  Prefactor  = 69.9362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.37624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.799403
  Prefactor  = 1.0807
 **********
 **   18 **HESSE 
 **********

 FCN=   4693.170     FROM HESSE     STATUS=OK           527 CALLS     4060 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5598        7.0879        .17038E-03   -1.5236    
   2  Prefactor     2.0684        2.0932        .96631E-04   -1.5420    
   3  norm          .10000E-03    12.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     34.497        24.459        .68227E-04   -1.4533    
   5  Prefactor     9.7609        24.240        .12826E-03   -1.5083    
   6  Prefactor     .46908        25.089        .36294E-02   -1.5571    
   7  norm          .10000E-03    10.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.3502        7.7760        .13873E-03   -1.5130    
   9  Prefactor     .10000E-03    .64454        .53684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.048        .31018E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.4117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.0151        .67214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3658        5.9805        .16847E-03   -1.5341    
  14  norm          .10000E-03    13.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.247        39.356        .96452E-04   -1.4877    
  16  Prefactor     .10000E-03    16.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6168        3.9873        .10975E-03   -1.5234    
  18  Prefactor     .10000E-03    2.7285        .11006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     69.936        43.849        .48001E-04   -1.4033    
  20  Prefactor     .10000E-03    35.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.3762        .33520        .18974E-04   -1.5473    
  24  Prefactor     .10000E-03    6.9793        .17635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.0039        .13386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.4420        .14096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .79940        .20015        .23167E-03   -1.0009    
  28  Prefactor     1.0807        .25117        .26323E-03   -.90086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17116e-08
Minuit parameter uncertainties:
  1  7.089
  2  2.09328
  3  1.29046e-05
  4  24.4663
  5  24.2645
  6  6.86348
  7  8.21368e-06
  8  7.77696
  9  4.8627e-08
  10  9.46845e-05
  11  4.01344e-06
  12  5.70234e-08
  13  5.98156
  14  4.32852e-05
  15  39.4152
  16  1.86577e-06
  17  3.98752
  18  1.77174e-06
  19  43.8689
  20  4.34109e-08
  21  1.37835e-06
  22  9.8436e-07
  23  0.3352
  24  2.83944e-07
  25  1.51589e-09
  26  1.27446e-07
  27  0.200338
  28  0.251444
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.081e+00  2.514e-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:  7.994e-01  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/836909/likelihoodResults_425433601_425692801_4FGL_J1023.1+3949_daily_bin718.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) = 4693.17079961
delta logL = -0.000354125837475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4693.17044632
delta logL = -8.32272235129e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11589E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3039       1.0000          .0000       5.0000    
     3 'Normalizat'    .79919       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0810       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=   4693.170     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      268 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.0847        .49357E-01** at limit **
   2  alpha         2.9717        3.9856        .50000        .36289E-07
   3  Normalizat    .79940        .35971E-02    .23167E-03    .25322E-04
   4  Prefactor     1.0807        .47073E-02    .26323E-03   -.37748E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.97168
  Normalizat = 0.799403
  Prefactor  = 1.0807
 **********
 **   18 **HESSE 
 **********

 FCN=   4693.170     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      305 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.027        .48571E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9717        2.6507        .20000        .18981    
   3  Normalizat    .79940        .52388E-02    .92667E-05   -1.0009    
   4  Prefactor     1.0807        .68553E-02    .10529E-04   -.90086    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.5379e-12
Minuit parameter uncertainties:
  1  7.5962e-05
  2  301.438
  3  0.00523876
  4  0.00685526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/836909': 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): 102
logL (Free Index) = 4693.17044222
delta logL = 3.27095767716e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.081e+00  6.855e-03  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:  7.994e-01  5.239e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 155.788 39.823

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/836909/cmap_HighResolution_425433601_425692801_4FGL_J1023.1+3949_daily_bin718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-05', job_status='DONE', photon_flux_upper_limit='6.57e-08', time_completed='2021-09-01 19:32:48.202697', job_id='836909', GAL2='1.08', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630549968.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='718' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:32:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 836909: <4FGL_J1023.1+3949_daily_bin718> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin718> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 19:20:18 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:20:19 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:20:19 2021
Terminated at Wed Sep  1 19:32:48 2021
Results reported at Wed Sep  1 19:32:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin718 155.788 39.8226 425433601 425692801 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 :                                   735.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            750 sec.

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

