/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 3 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 = 7404
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1023.1+3949_daily_bin153
RA = 155.788, Dec = 39.8226
tmin = 278985601, tmax = 279244801
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='832987', job_status='RUN', time_executed='2021-09-01 19:06:20.746830', time_epoch_executed='1630548380.75' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/832987

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/832987/ft1_4FGL_J1023.1+3949_daily_bin153.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/832987/ft2_4FGL_J1023.1+3949_daily_bin153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/832987/ft1_4FGL_J1023.1+3949_daily_bin153.fits outfile=/scratch/kocevski/832987/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin153.fits ra=155.788 dec=39.8226 rad=12.0 tmin=278985601.0 tmax=279244801.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.79
user 3.55
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/832987/ft1_filtered_4FGL_J1023.1+3949_daily_bin153.fits" evtable="EVENTS" scfile=/scratch/kocevski/832987/ft2_4FGL_J1023.1+3949_daily_bin153.fits sctable="SC_DATA" outfile=/scratch/kocevski/832987/ltcube_278985601_279244801_4FGL_J1023.1+3949_daily_bin153.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/832987/ft2_4FGL_J1023.1+3949_daily_bin153.fits
.....................!
real 11.80
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/832987/ft1_filtered_4FGL_J1023.1+3949_daily_bin153.fits evtable="EVENTS" scfile=/scratch/kocevski/832987/ft2_4FGL_J1023.1+3949_daily_bin153.fits sctable="SC_DATA" expcube=/scratch/kocevski/832987/ltcube_278985601_279244801_4FGL_J1023.1+3949_daily_bin153.fits outfile=/scratch/kocevski/832987/expmap_278985601_279244801_4FGL_J1023.1+3949_daily_bin153.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/832987/ltcube_278985601_279244801_4FGL_J1023.1+3949_daily_bin153.fits
.....................!
real 189.87
user 185.23
sys 4.26

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/832987/ft1_filtered_4FGL_J1023.1+3949_daily_bin153.fits scfile=/scratch/kocevski/832987/ft2_4FGL_J1023.1+3949_daily_bin153.fits outfile=/scratch/kocevski/832987/cmap_278985601_279244801_4FGL_J1023.1+3949_daily_bin153.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/832987/ft1_filtered_4FGL_J1023.1+3949_daily_bin153.fits scfile=/scratch/kocevski/832987/ft2_4FGL_J1023.1+3949_daily_bin153.fits outfile=/scratch/kocevski/832987/cmap_HighResolution_278985601_279244801_4FGL_J1023.1+3949_daily_bin153.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8566       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9456       1.0000         .10000E-03   10000.    
     3 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0258       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.397       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8060       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9768       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11117E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.483       1.0000         .10000E-03   10000.    
    12 'norm      '    7.5710       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.673       1.0000         .10000E-03   10000.    
    14 'norm      '    3.3577       1.0000         .10000E-03   10000.    
    15 'Prefactor '    101.70       1.0000         .10000E-03   10000.    
    16 'Prefactor '    74.402       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.3723       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10916E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    104.71       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0195       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.7743       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10541E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    45.016       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .79220       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2839       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=   6621.800     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3465 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8565        8.4307       -.87004E-07   -.69136E-04
   2  Prefactor     4.9456        3.1176       -.15086E-06   -.18396E-03
   3  norm          .10000E-03    8.1313       -.63476E-06** at limit **
   4  Prefactor     5.0271        16.942        .82680E-06   -.28817E-04
   5  Prefactor     .10000E-03    18.777       -.66384E-05** at limit **
   6  Prefactor     11.397        11.758       -.89439E-07   -.10405E-03
   7  norm          .10000E-03    4.6986        .20921E-07** at limit **
   8  Prefactor     1.8063        5.0611        .32751E-05   -.75444E-03
   9  Prefactor     2.9769        2.9604        .14489E-06   -.18360E-03
  10  Prefactor     .10000E-03    2.9615        .35029E-06** at limit **
  11  Prefactor     24.495        38.866        .17625E-04    .53471E-04
  12  norm          7.5712        3.1138       -.89874E-08   -.64940E-04
  13  Prefactor     10.676        6.3066       -.33015E-06   -.34552E-03
  14  norm          3.3532        14.536       -.10939E-04   -.28857E-03
  15  Prefactor     101.69        79.114       -.70965E-05   -.18842E-04
  16  Prefactor     74.411        39.309        .79220E-05    .35997E-05
  17  Prefactor     9.3738        6.0913       -.46682E-06   -.13757E-03
  18  Prefactor     .10000E-03    2.3221       -.16565E-06** at limit **
  19  Prefactor     .10000E-03    29.100        .73198E-05** at limit **
  20  Prefactor     104.69        99.655       -.18036E-04   -.28092E-05
  21  Prefactor     2.0185        35.264       -.23919E-05   -.10054E-03
  22  Prefactor     .10000E-03    33.891       -.13312E-04** at limit **
  23  norm          1.7744        .37723       -.25299E-07   -.13552E-02
  24  Prefactor     .10000E-03    26.398        .10597E-04** at limit **
  25  Prefactor     .10000E-03    10.776        .13822E-05** at limit **
  26  norm          45.020        20.841        .21796E-05   -.16566E-03
  27  Normalizat    .79204        .18213       -.10785E-05   -.79581E-04
  28  Prefactor     1.2842        .21586        .44930E-06   -.12221E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.85648
  Prefactor  = 4.94558
  norm       = 0.0001
  Prefactor  = 5.0271
  Prefactor  = 0.0001
  Prefactor  = 11.3972
  norm       = 0.0001
  Prefactor  = 1.80631
  Prefactor  = 2.97694
  Prefactor  = 0.0001
  Prefactor  = 24.4946
  norm       = 7.57116
  Prefactor  = 10.676
  norm       = 3.35315
  Prefactor  = 101.688
  Prefactor  = 74.4107
  Prefactor  = 9.37384
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 104.695
  Prefactor  = 2.01851
  Prefactor  = 0.0001
  norm       = 1.7744
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 45.0198
  Normalizat = 0.792044
  Prefactor  = 1.28417
 **********
 **   18 **HESSE 
 **********

 FCN=   6621.800     FROM HESSE     STATUS=OK           523 CALLS     3988 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8565        8.4234        .14305E-03   -1.5147    
   2  Prefactor     4.9456        3.1136        .10808E-03   -1.5263    
   3  norm          .10000E-03    8.1419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.0271        16.911        .17937E-03   -1.5260    
   5  Prefactor     .10000E-03    18.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.397        11.674        .11867E-03   -1.5033    
   7  norm          .10000E-03    4.7282        .17225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8063        4.9669        .29014E-03   -1.5439    
   9  Prefactor     2.9769        2.9562        .13443E-03   -1.5363    
  10  Prefactor     .10000E-03    9.5117        .24023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.495        39.026        .80956E-04   -1.4718    
  12  norm          7.5712        3.1131        .88864E-04   -1.5158    
  13  Prefactor     10.676        5.8047        .12264E-03   -1.5054    
  14  norm          3.3532        14.424        .22085E-03   -1.5342    
  15  Prefactor     101.69        79.121        .39869E-04   -1.3688    
  16  Prefactor     74.411        39.320        .23274E-03   -1.3981    
  17  Prefactor     9.3738        6.0635        .13091E-03   -1.5096    
  18  Prefactor     .10000E-03    2.3291        .12100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    29.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     104.69        99.832        .39296E-04   -1.3658    
  21  Prefactor     2.0185        35.526        .29123E-03   -1.5424    
  22  Prefactor     .10000E-03    33.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.7744        .37765        .22196E-04   -1.5442    
  24  Prefactor     .10000E-03    26.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          45.020        20.778        .59756E-04   -1.4365    
  27  Normalizat    .79204        .21484        .28508E-03   -1.0036    
  28  Prefactor     1.2842        .25551        .29094E-03   -.83779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64551e-09
Minuit parameter uncertainties:
  1  8.42469
  2  3.11366
  3  6.25833e-06
  4  16.9271
  5  3.86434e-05
  6  11.6764
  7  8.4612e-06
  8  4.96803
  9  2.95633
  10  4.72101e-05
  11  39.0665
  12  3.11319
  13  5.805
  14  13.9144
  15  79.2031
  16  39.3337
  17  6.06388
  18  2.39327e-05
  19  2.75634e-05
  20  99.9929
  21  16.9477
  22  1.19043e-05
  23  0.377646
  24  0.000241132
  25  1.58945e-05
  26  20.7814
  27  0.215073
  28  0.255757
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  3.353e+00  1.391e+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:  1.284e+00  2.558e-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.920e-01  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/832987/likelihoodResults_278985601_279244801_4FGL_J1023.1+3949_daily_bin153.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) = 6620.15750572
delta logL = 1.64281066075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6620.11590686
delta logL = 1.68440952525

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8279       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1673       1.0000          .0000       5.0000    
     3 'Normalizat'    .69377       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3582       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=   6620.116     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      269 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8285        9.7705        .94967E-04    .31604E-04
   2  alpha         4.1672        3.6777        .20853E-01    .68179E-05
   3  Normalizat    .69380        .20516        .30194E-03    .75868E-04
   4  Prefactor     1.3581        .25594        .28372E-03    .13624E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.82853
  alpha      = 4.16717
  Normalizat = 0.6938
  Prefactor  = 1.3581
 **********
 **   18 **HESSE 
 **********

 FCN=   6620.116     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8285        6.0838        .37987E-05   -1.5317    
   2  alpha         4.1672        1.0937        .83414E-03    .73000    
   3  Normalizat    .69380        .20549        .12078E-04   -1.0414    
   4  Prefactor     1.3581        .25603        .11349E-04   -.81595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61961e-11
Minuit parameter uncertainties:
  1  6.08478
  2  1.16895
  3  0.205716
  4  0.256269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/832987': 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) = 6620.11590682
delta logL = 1.68440956117

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  3.829e+00  6.085e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  4.167e+00  1.169e+00  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.358e+00  2.563e-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:  6.938e-01  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.70
Ra Dec: 155.788 39.823
Photon Index (Free Index): 4.17 +/- 1.17
Photon Flux (Free Index): 9.59e-08 +/- 6.20e-08
Energy Flux (Free Index): 1.44e-05 +/- 9.37e-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/832987/cmap_HighResolution_278985601_279244801_4FGL_J1023.1+3949_daily_bin153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-05', comment='SUCCESS', energy_flux2='1.44e-05', dlogl='1.68e+00', photon_flux2='9.59e-08', job_status='DONE', time_completed='2021-09-01 19:21:18.289700', photon_index_error2='1.17', photon_index2='4.17', ts='0.09', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='9.01e-08', energy_flux_error2='9.37e-06', EG='0.79', time_epoch_completed='1630549278.29', return_code='0', job_id='832987', GAL2='1.36', EG2='0.69', return_code2='0', photon_flux_error2='6.20e-08', ts2='3.70', photon_index='2.25' WHERE bin_id='153' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:21:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 832987: <4FGL_J1023.1+3949_daily_bin153> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin153> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 19:06:06 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:06:08 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:06:08 2021
Terminated at Wed Sep  1 19:21:18 2021
Results reported at Wed Sep  1 19:21:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin153 155.788 39.8226 278985601 279244801 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 :                                   895.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             331.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

