/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 2 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1023.1+3949_daily_bin243
RA = 155.788, Dec = 39.8226
tmin = 302313601, tmax = 302572801
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='834149', job_status='RUN', time_executed='2021-09-01 19:10:53.801391', time_epoch_executed='1630548653.8' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='243'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834149

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834149/ft1_4FGL_J1023.1+3949_daily_bin243.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834149/ft2_4FGL_J1023.1+3949_daily_bin243.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834149/ft1_4FGL_J1023.1+3949_daily_bin243.fits outfile=/scratch/kocevski/834149/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin243.fits ra=155.788 dec=39.8226 rad=12.0 tmin=302313601.0 tmax=302572801.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.54
user 3.30
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834149/ft1_filtered_4FGL_J1023.1+3949_daily_bin243.fits evtable="EVENTS" scfile=/scratch/kocevski/834149/ft2_4FGL_J1023.1+3949_daily_bin243.fits sctable="SC_DATA" expcube=/scratch/kocevski/834149/ltcube_302313601_302572801_4FGL_J1023.1+3949_daily_bin243.fits outfile=/scratch/kocevski/834149/expmap_302313601_302572801_4FGL_J1023.1+3949_daily_bin243.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/834149/ltcube_302313601_302572801_4FGL_J1023.1+3949_daily_bin243.fits
.....................!
real 194.11
user 188.43
sys 4.66

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/834149/ft1_filtered_4FGL_J1023.1+3949_daily_bin243.fits scfile=/scratch/kocevski/834149/ft2_4FGL_J1023.1+3949_daily_bin243.fits outfile=/scratch/kocevski/834149/cmap_302313601_302572801_4FGL_J1023.1+3949_daily_bin243.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.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .90188       1.0000         .10000E-03   10000.    
     3 'norm      '    3.0622       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.771       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24134       1.0000         .10000E-03   10000.    
     7 'norm      '    .57253       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8811       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1096       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8051       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1585       1.0000         .10000E-03   10000.    
    12 'norm      '    7.8508       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1724       1.0000         .10000E-03   10000.    
    14 'norm      '    .10603E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.384       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2018       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.150       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   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 '    86.926       1.0000         .10000E-03   10000.    
    23 'norm      '    1.0813       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    28.799       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2357       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .87100       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=   6210.549     FROM MIGRAD    STATUS=CONVERGED    685 CALLS     3485 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.202       -.11829E-06** at limit **
   2  Prefactor     .90041        2.6779        .37444E-06    .53724E-04
   3  norm          3.0609        8.0685        .29454E-05    .20933E-03
   4  Prefactor     .10000E-03    18.766       -.47286E-06** at limit **
   5  Prefactor     15.758        29.003        .84903E-06   -.31427E-04
   6  Prefactor     .15065        5.9052       -.68685E-06    .19356E-03
   7  norm          .43473        12.483        .33403E-05   -.43966E-03
   8  Prefactor     4.8845        7.8249        .19458E-05    .93823E-04
   9  Prefactor     3.1091        3.2927        .12433E-06    .91166E-06
  10  Prefactor     4.8060        5.0133       -.85818E-06   -.31264E-03
  11  Prefactor     9.1380        30.031        .28004E-05   -.28962E-04
  12  norm          7.8510        3.4553       -.79340E-07   -.19594E-03
  13  Prefactor     1.1719        5.9688        .24259E-05    .18340E-03
  14  norm          .10000E-03    13.148       -.86937E-06** at limit **
  15  Prefactor     .10000E-03    33.798        .73246E-07** at limit **
  16  Prefactor     23.382        72.906        .61647E-06   -.27666E-04
  17  Prefactor     5.1988        5.0703       -.19888E-06   -.50393E-04
  18  Prefactor     12.145        13.165       -.13118E-06   -.15624E-03
  19  Prefactor     .10000E-03    14.940        .57641E-06** at limit **
  20  Prefactor     .10000E-03    23.238        .13915E-05** at limit **
  21  Prefactor     .10000E-03    16.871       -.44343E-06** at limit **
  22  Prefactor     86.900        73.097        .27025E-05   -.39542E-04
  23  norm          1.0812        .29926        .30798E-08   -.39141E-03
  24  Prefactor     .10000E-03    13.773        .31133E-06** at limit **
  25  Prefactor     .10000E-03    5.8004        .23867E-08** at limit **
  26  norm          28.789        18.885        .25748E-06   -.41376E-04
  27  Normalizat    1.2359        .18699       -.15301E-06   -.16095E-03
  28  Prefactor     .87112        .21329       -.14541E-05   -.16871E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.900413
  norm       = 3.06094
  Prefactor  = 0.0001
  Prefactor  = 15.7582
  Prefactor  = 0.150651
  norm       = 0.434731
  Prefactor  = 4.88453
  Prefactor  = 3.10914
  Prefactor  = 4.80601
  Prefactor  = 9.13803
  norm       = 7.85097
  Prefactor  = 1.1719
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.3816
  Prefactor  = 5.19883
  Prefactor  = 12.1455
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 86.9005
  norm       = 1.08124
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.7889
  Normalizat = 1.23588
  Prefactor  = 0.871122
 **********
 **   18 **HESSE 
 **********

 FCN=   6210.549     FROM HESSE     STATUS=OK           531 CALLS     4016 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .90041        2.6665        .21163E-03   -1.5518    
   3  norm          3.0609        8.0691        .11591E-02   -1.5358    
   4  Prefactor     .10000E-03    18.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.758        29.058        .10085E-03   -1.4914    
   6  Prefactor     .15065        126.04        .35803E-02   -1.5630    
   7  norm          .43473        64.169        .45113E-02   -1.5576    
   8  Prefactor     4.8845        7.9516        .91033E-03   -1.5266    
   9  Prefactor     3.1091        3.2853        .14108E-03   -1.5355    
  10  Prefactor     4.8060        4.8934        .15108E-03   -1.5269    
  11  Prefactor     9.1380        30.083        .13243E-03   -1.5103    
  12  norm          7.8510        3.4526        .92994E-04   -1.5148    
  13  Prefactor     1.1719        5.6326        .31885E-03   -1.5491    
  14  norm          .10000E-03    13.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    33.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.382        73.563        .82834E-04   -1.4740    
  17  Prefactor     5.1988        5.0723        .16488E-03   -1.5252    
  18  Prefactor     12.145        13.276        .11492E-03   -1.5011    
  19  Prefactor     .10000E-03    14.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     86.900        72.935        .21546E-03   -1.3841    
  23  norm          1.0812        .29984        .21929E-04   -1.5500    
  24  Prefactor     .10000E-03    13.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.8067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          28.789        18.882        .74656E-04   -1.4634    
  27  Normalizat    1.2359        .22468        .23283E-03   -.85501    
  28  Prefactor     .87112        .25438        .32934E-03   -.97158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7592e-09
Minuit parameter uncertainties:
  1  2.14385e-05
  2  2.66687
  3  8.07198
  4  4.49179e-06
  5  29.0843
  6  8.7307
  7  10.5737
  8  7.95328
  9  3.28545
  10  4.89381
  11  30.1328
  12  3.45265
  13  5.13899
  14  7.41053e-05
  15  1.7175e-05
  16  73.8502
  17  5.07268
  18  13.279
  19  2.22759e-05
  20  5.63987e-05
  21  2.86635e-05
  22  73.0098
  23  0.29984
  24  3.42509e-05
  25  1.35739e-06
  26  18.8858
  27  0.224861
  28  0.254728
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  7.411e-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:  8.711e-01  2.547e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  1.236e+00  2.249e-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.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/834149/likelihoodResults_302313601_302572801_4FGL_J1023.1+3949_daily_bin243.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) = 6210.54921466
delta logL = -0.000354150322892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6210.54886041
delta logL = 1.08257154352e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2783       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87111       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=   6210.549     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      256 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1626.4        .36285E-02** at limit **
   2  alpha         2.6949        3.1941        .16543        .11683E-08
   3  Normalizat    1.2359        .50559E-01    .23283E-03   -.37312E-03
   4  Prefactor     .87112        .61360E-01    .32934E-03   -.25551E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.69485
  Normalizat = 1.23587
  Prefactor  = 0.871123
 **********
 **   18 **HESSE 
 **********

 FCN=   6210.549     FROM HESSE     STATUS=OK            23 CALLS      279 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    17.525        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6949        2.5892        .66173E-02    .78020E-01
   3  Normalizat    1.2359        .20527        .46565E-04   -.85501    
   4  Prefactor     .87112        .24932        .13174E-04   -.97158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4057e-10
Minuit parameter uncertainties:
  1  0.000102029
  2  360.362
  3  0.205401
  4  0.249642
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834149': 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) = 6210.54885966
delta logL = 8.5601277533e-07

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  1.020e-04  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.695e+00  3.604e+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:  8.711e-01  2.496e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  1.236e+00  2.054e-01  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/834149/cmap_HighResolution_302313601_302572801_4FGL_J1023.1+3949_daily_bin243.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-05', job_status='DONE', photon_flux_upper_limit='6.75e-08', time_completed='2021-09-01 19:25:25.024351', job_id='834149', GAL2='0.87', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630549525.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='8.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='243' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:25:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 834149: <4FGL_J1023.1+3949_daily_bin243> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin243> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 19:10:41 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:10:43 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:10:43 2021
Terminated at Wed Sep  1 19:25:25 2021
Results reported at Wed Sep  1 19:25:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin243 155.788 39.8226 302313601 302572801 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 :                                   866.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            884 sec.

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

