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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin771
RA = 155.788, Dec = 39.8226
tmin = 439171201, tmax = 439430401
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='836985', job_status='RUN', time_executed='2021-09-01 19:20:40.666341', time_epoch_executed='1630549240.67' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/836985

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/836985/ft1_4FGL_J1023.1+3949_daily_bin771.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/836985/ft2_4FGL_J1023.1+3949_daily_bin771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/836985/ft1_4FGL_J1023.1+3949_daily_bin771.fits outfile=/scratch/kocevski/836985/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin771.fits ra=155.788 dec=39.8226 rad=12.0 tmin=439171201.0 tmax=439430401.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.62
user 5.33
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/836985/ft2_4FGL_J1023.1+3949_daily_bin771.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/836985/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin771.fits evtable="EVENTS" outfile="/scratch/kocevski/836985/ft1_filtered_4FGL_J1023.1+3949_daily_bin771.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/836985/ft1_filtered_4FGL_J1023.1+3949_daily_bin771.fits evtable="EVENTS" scfile=/scratch/kocevski/836985/ft2_4FGL_J1023.1+3949_daily_bin771.fits sctable="SC_DATA" expcube=/scratch/kocevski/836985/ltcube_439171201_439430401_4FGL_J1023.1+3949_daily_bin771.fits outfile=/scratch/kocevski/836985/expmap_439171201_439430401_4FGL_J1023.1+3949_daily_bin771.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/836985/ltcube_439171201_439430401_4FGL_J1023.1+3949_daily_bin771.fits
.....................!
real 190.46
user 185.43
sys 4.67

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/836985/ft1_filtered_4FGL_J1023.1+3949_daily_bin771.fits scfile=/scratch/kocevski/836985/ft2_4FGL_J1023.1+3949_daily_bin771.fits outfile=/scratch/kocevski/836985/cmap_439171201_439430401_4FGL_J1023.1+3949_daily_bin771.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/836985/ft1_filtered_4FGL_J1023.1+3949_daily_bin771.fits scfile=/scratch/kocevski/836985/ft2_4FGL_J1023.1+3949_daily_bin771.fits outfile=/scratch/kocevski/836985/cmap_HighResolution_439171201_439430401_4FGL_J1023.1+3949_daily_bin771.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7759       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .84602       1.0000         .10000E-03   10000.    
     3 'norm      '    32.588       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.720       1.0000         .10000E-03   10000.    
     7 'norm      '    22.887       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5153       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9414       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11163E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.9308       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.6140       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.544       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7157       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.022       1.0000         .10000E-03   10000.    
    20 'Prefactor '    91.359       1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.364       1.0000         .10000E-03   10000.    
    22 'Prefactor '    45.470       1.0000         .10000E-03   10000.    
    23 'norm      '    3.9661       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    15.271       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .83505       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .86691       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=   4774.947     FROM MIGRAD    STATUS=CONVERGED    689 CALLS     3483 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7766        6.9805        .18447E-06   -.93107E-04
   2  Prefactor     .84602        1.7688       -.32793E-06   -.10396E-02
   3  norm          32.600        20.496       -.88222E-06    .66157E-05
   4  Prefactor     .10000E-03    13.526       -.21290E-07** at limit **
   5  Prefactor     .10000E-03    10.779       -.32503E-07** at limit **
   6  Prefactor     36.721        15.967       -.14775E-07   -.92498E-06
   7  norm          22.887        14.189       -.98551E-07   -.63080E-05
   8  Prefactor     .10000E-03    1.9969       -.13855E-07** at limit **
   9  Prefactor     4.5157        3.4662       -.54617E-07   -.12701E-03
  10  Prefactor     2.9402        3.9969       -.20745E-06   -.38906E-03
  11  Prefactor     .10000E-03    109.36        .17626E-05** at limit **
  12  norm          5.9310        3.2898        .10736E-06    .70459E-03
  13  Prefactor     .10000E-03    3.2302        .13657E-06** at limit **
  14  norm          7.6039        7.1603       -.46817E-07    .26074E-04
  15  Prefactor     .10000E-03    54.562       -.12496E-05** at limit **
  16  Prefactor     15.543        17.686        .77438E-06    .77413E-05
  17  Prefactor     4.7129        5.1638        .64762E-06   -.21960E-03
  18  Prefactor     .10000E-03    1.5105        .38536E-07** at limit **
  19  Prefactor     16.002        34.493       -.14265E-04   -.86996E-05
  20  Prefactor     91.359        111.20        .79008E-06   -.10807E-06
  21  Prefactor     30.367        27.955        .56335E-06   -.89107E-06
  22  Prefactor     45.475        72.579        .59366E-05    .20896E-07
  23  norm          3.9662        .56341        .97739E-08    .11066E-03
  24  Prefactor     .10000E-03    11.504        .65762E-07** at limit **
  25  Prefactor     .10000E-03    25.944       -.11205E-06** at limit **
  26  norm          15.275        17.670       -.49461E-06   -.16199E-04
  27  Normalizat    .83508        .18775        .25774E-07   -.99272E-06
  28  Prefactor     .86676        .22786        .52836E-06   -.23714E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.77657
  Prefactor  = 0.846022
  norm       = 32.6002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.7211
  norm       = 22.887
  Prefactor  = 0.0001
  Prefactor  = 4.5157
  Prefactor  = 2.9402
  Prefactor  = 0.0001
  norm       = 5.93096
  Prefactor  = 0.0001
  norm       = 7.60393
  Prefactor  = 0.0001
  Prefactor  = 15.5434
  Prefactor  = 4.71286
  Prefactor  = 0.0001
  Prefactor  = 16.0016
  Prefactor  = 91.3594
  Prefactor  = 30.3668
  Prefactor  = 45.4755
  norm       = 3.96624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.2753
  Normalizat = 0.835079
  Prefactor  = 0.866761
 **********
 **   18 **HESSE 
 **********

 FCN=   4774.947     FROM HESSE     STATUS=OK           529 CALLS     4012 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7766        6.9660        .18410E-03   -1.5271    
   2  Prefactor     .84602        1.5041        .13090E-02   -1.5524    
   3  norm          32.600        20.468        .70193E-04   -1.4565    
   4  Prefactor     .10000E-03    13.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     36.721        15.974        .66138E-04   -1.4495    
   7  norm          22.887        14.207        .83728E-04   -1.4751    
   8  Prefactor     .10000E-03    1.9993        .95360E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.5157        3.4650        .10847E-03   -1.5283    
  10  Prefactor     2.9402        3.9910        .15119E-03   -1.5365    
  11  Prefactor     .10000E-03    111.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.9310        3.3017        .45377E-03   -1.5221    
  13  Prefactor     .10000E-03    3.3646        .24187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.6039        7.1580        .14533E-03   -1.5156    
  15  Prefactor     .10000E-03    54.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.543        17.685        .10159E-03   -1.4919    
  17  Prefactor     4.7129        5.1310        .15171E-03   -1.5274    
  18  Prefactor     .10000E-03    1.5137        .82934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.002        33.971        .10006E-03   -1.4908    
  20  Prefactor     91.359        111.48        .42042E-04   -1.3793    
  21  Prefactor     30.367        27.958        .72711E-04   -1.4605    
  22  Prefactor     45.475        72.490        .59458E-04   -1.4358    
  23  norm          3.9662        .56376        .18788E-04   -1.5310    
  24  Prefactor     .10000E-03    11.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    26.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          15.275        17.671        .10249E-03   -1.4926    
  27  Normalizat    .83508        .22004        .24743E-03   -.98780    
  28  Prefactor     .86676        .26595        .30577E-03   -.97312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53003e-10
Minuit parameter uncertainties:
  1  6.96721
  2  1.50415
  3  20.4728
  4  1.51748e-05
  5  3.54689e-06
  6  15.9761
  7  14.2087
  8  2.83856e-07
  9  3.46515
  10  3.99133
  11  1.0958e-05
  12  3.30181
  13  4.03719e-06
  14  7.1588
  15  3.17519e-06
  16  17.6913
  17  5.13149
  18  4.77681e-06
  19  34.0122
  20  111.733
  21  27.9703
  22  72.6309
  23  0.563758
  24  5.21293e-06
  25  1.0477e-07
  26  17.6775
  27  0.220278
  28  0.26635
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  7.604e+00  7.159e+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.668e-01  2.663e-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:  8.351e-01  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.66
Ra Dec: 155.788 39.823
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 2.17e-08 +/- 2.04e-08
Energy Flux (Fixed Index): 7.56e-06 +/- 7.12e-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) = 4773.67333795
delta logL = 1.27399333122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4773.21228858
delta logL = 1.7350427007

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6661       1.0000         .10000E-03   10000.    
     2 'alpha     '    .69745       1.0000          .0000       5.0000    
     3 'Normalizat'    .85188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85911       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=   4773.212     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      210 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6591        1.9023        .81678E-02   -.51819E-03
   2  alpha         .69633        .45074        .34441       -.11596E-04
   3  Normalizat    .85210        .17838        .44284E-01   -.15469E-03
   4  Prefactor     .85855        .22547        .69394E-01   -.12296E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.65911
  alpha      = 0.696331
  Normalizat = 0.852105
  Prefactor  = 0.858545
 **********
 **   18 **HESSE 
 **********

 FCN=   4773.212     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6591        3.1569        .86056E-04   -1.5450    
   2  alpha         .69633        .71869        .15347E-02   -.80592    
   3  Normalizat    .85210        .20833        .24506E-03   -.98164    
   4  Prefactor     .85855        .26303        .30701E-03   -.97605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84526e-11
Minuit parameter uncertainties:
  1  3.15724
  2  0.741118
  3  0.208527
  4  0.263414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/836985': 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) = 4773.21228216
delta logL = 1.73504911583

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.659e+00  3.157e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  6.963e-01  7.411e-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.585e-01  2.634e-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:  8.521e-01  2.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.12
Ra Dec: 155.788 39.823
Photon Index (Free Index): 0.70 +/- 0.74
Photon Flux (Free Index): 5.11e-09 +/- 5.63e-09
Energy Flux (Free Index): 4.47e-05 +/- 6.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/836985/cmap_HighResolution_439171201_439430401_4FGL_J1023.1+3949_daily_bin771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.17e-08', energy_flux2='4.47e-05', photon_flux_error='2.04e-08', dlogl='1.74e+00', energy_flux='7.56e-06', photon_flux2='5.11e-09', job_status='DONE', time_completed='2021-09-01 19:31:50.494430', photon_index_error2='0.74', photon_index2='0.70', ts='5.66', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='6.98e-05', EG='0.84', time_epoch_completed='1630549910.49', return_code='0', job_id='836985', GAL2='0.86', EG2='0.85', return_code2='0', energy_flux_error='7.12e-06', photon_flux_error2='5.63e-09', ts2='9.12', photon_index='2.25' WHERE bin_id='771' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:31:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 836985: <4FGL_J1023.1+3949_daily_bin771> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin771 155.788 39.8226 439171201 439430401 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 :                                   668.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            687 sec.

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

