/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 50 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 = 7477
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1023.1+3949_daily_bin148
RA = 155.788, Dec = 39.8226
tmin = 277689601, tmax = 277948801
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='832979', job_status='RUN', time_executed='2021-09-01 19:07:09.687687', time_epoch_executed='1630548429.69' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/832979

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/832979/ft1_4FGL_J1023.1+3949_daily_bin148.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/832979/ft2_4FGL_J1023.1+3949_daily_bin148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/832979/ft1_4FGL_J1023.1+3949_daily_bin148.fits outfile=/scratch/kocevski/832979/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin148.fits ra=155.788 dec=39.8226 rad=12.0 tmin=277689601.0 tmax=277948801.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.56
user 3.37
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/832979/ft2_4FGL_J1023.1+3949_daily_bin148.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/832979/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin148.fits evtable="EVENTS" outfile="/scratch/kocevski/832979/ft1_filtered_4FGL_J1023.1+3949_daily_bin148.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/832979/ft1_filtered_4FGL_J1023.1+3949_daily_bin148.fits" evtable="EVENTS" scfile=/scratch/kocevski/832979/ft2_4FGL_J1023.1+3949_daily_bin148.fits sctable="SC_DATA" outfile=/scratch/kocevski/832979/ltcube_277689601_277948801_4FGL_J1023.1+3949_daily_bin148.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/832979/ft2_4FGL_J1023.1+3949_daily_bin148.fits
.....................!
real 11.90
user 11.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/832979/ft1_filtered_4FGL_J1023.1+3949_daily_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/832979/ft2_4FGL_J1023.1+3949_daily_bin148.fits sctable="SC_DATA" expcube=/scratch/kocevski/832979/ltcube_277689601_277948801_4FGL_J1023.1+3949_daily_bin148.fits outfile=/scratch/kocevski/832979/expmap_277689601_277948801_4FGL_J1023.1+3949_daily_bin148.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/832979/ltcube_277689601_277948801_4FGL_J1023.1+3949_daily_bin148.fits
.....................!
real 192.13
user 187.22
sys 4.60

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/832979/ft1_filtered_4FGL_J1023.1+3949_daily_bin148.fits scfile=/scratch/kocevski/832979/ft2_4FGL_J1023.1+3949_daily_bin148.fits outfile=/scratch/kocevski/832979/cmap_277689601_277948801_4FGL_J1023.1+3949_daily_bin148.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/832979/ft1_filtered_4FGL_J1023.1+3949_daily_bin148.fits scfile=/scratch/kocevski/832979/ft2_4FGL_J1023.1+3949_daily_bin148.fits outfile=/scratch/kocevski/832979/cmap_HighResolution_277689601_277948801_4FGL_J1023.1+3949_daily_bin148.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0261       1.0000         .10000E-03   10000.    
     3 'norm      '    .10333E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .76202       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.0507       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .77670       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.4838       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0950       1.0000         .10000E-03   10000.    
    14 'norm      '    13.787       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.588       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .27707E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.685       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2404       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.7969       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .40791       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    13.547       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .77833       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2166       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=   6091.003     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3545 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3444        .35317E-07** at limit **
   2  Prefactor     2.0262        1.8795       -.64547E-08   -.10426E-03
   3  norm          .10000E-03    30.949        .14057E-05** at limit **
   4  Prefactor     .61941        152.93       -.42406E-05   -.79268E-04
   5  Prefactor     .10000E-03    47.680        .12675E-05** at limit **
   6  Prefactor     .10000E-03    4.2167        .11582E-06** at limit **
   7  norm          8.0496        9.9903       -.20555E-06   -.18225E-04
   8  Prefactor     .77645        6.3835       -.17972E-05   -.44047E-04
   9  Prefactor     .10000E-03    .74584        .46085E-07** at limit **
  10  Prefactor     .10000E-03    1.5238        .17872E-06** at limit **
  11  Prefactor     .10000E-03    19.781       -.39980E-06** at limit **
  12  norm          4.4832        2.9059       -.91854E-07   -.26119E-04
  13  Prefactor     3.0943        3.1293       -.78207E-07   -.80248E-04
  14  norm          13.784        10.502        .29424E-07   -.28201E-04
  15  Prefactor     .10000E-03    19.742        .84274E-06** at limit **
  16  Prefactor     .10000E-03    58.417        .23534E-06** at limit **
  17  Prefactor     10.587        4.8367       -.31147E-07   -.65576E-04
  18  Prefactor     .10000E-03    2.9948        .64859E-07** at limit **
  19  Prefactor     19.664        37.722        .65950E-06   -.31099E-04
  20  Prefactor     3.0081        279.01       -.42264E-05    .48720E-05
  21  Prefactor     .10000E-03    23.185        .25599E-06** at limit **
  22  Prefactor     .10000E-03    32.919       -.18145E-05** at limit **
  23  norm          1.7974        .35741       -.29367E-07   -.29330E-02
  24  Prefactor     .24942        20.145        .32368E-05   -.35224E-03
  25  Prefactor     .10000E-03    7.0289        .36184E-07** at limit **
  26  norm          13.588        16.373       -.16606E-05   -.30422E-03
  27  Normalizat    .77858        .15898       -.67165E-07   -.35442E-03
  28  Prefactor     1.2164        .19819       -.63839E-06   -.28413E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.0262
  norm       = 0.0001
  Prefactor  = 0.619412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.04963
  Prefactor  = 0.776451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.4832
  Prefactor  = 3.09432
  norm       = 13.7843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.587
  Prefactor  = 0.000100001
  Prefactor  = 19.6635
  Prefactor  = 3.00809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.7974
  Prefactor  = 0.249425
  Prefactor  = 0.0001
  norm       = 13.5882
  Normalizat = 0.778585
  Prefactor  = 1.21644
 **********
 **   18 **HESSE 
 **********

 FCN=   6091.003     FROM HESSE     STATUS=OK           521 CALLS     4066 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3482        .11670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0262        1.8662        .99755E-04   -1.5423    
   3  norm          .10000E-03    31.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .61941        162.06        .59829E-02   -1.5551    
   5  Prefactor     .10000E-03    47.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3191        .15655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.0496        9.9651        .14131E-03   -1.5140    
   8  Prefactor     .77645        6.3603        .37598E-03   -1.5532    
   9  Prefactor     .10000E-03    .75997        .65836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.5534        .94047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.4832        2.8961        .10274E-03   -1.5284    
  13  Prefactor     3.0943        3.1121        .13255E-03   -1.5356    
  14  norm          13.784        10.479        .10787E-03   -1.4965    
  15  Prefactor     .10000E-03    19.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    58.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.587        4.8373        .10739E-03   -1.5057    
  18  Prefactor     .10000E-03    15.779        .24699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.664        36.797        .90274E-04   -1.4821    
  20  Prefactor     3.0081        279.10        .22501E-03   -1.5361    
  21  Prefactor     .10000E-03    23.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    32.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.7974        .36301        .19724E-04   -1.5440    
  24  Prefactor     .24942        200.40        .41159E-02   -1.5608    
  25  Prefactor     .10000E-03    7.0427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          13.588        17.554        .10883E-03   -1.4971    
  27  Normalizat    .77858        .18613        .24457E-03   -1.0087    
  28  Prefactor     1.2164        .23333        .26158E-03   -.85827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.39016e-09
Minuit parameter uncertainties:
  1  8.72553e-07
  2  1.86625
  3  0.000152496
  4  20.0918
  5  5.2512e-05
  6  5.09812e-06
  7  9.96716
  8  4.4449
  9  8.7048e-07
  10  4.19842e-06
  11  4.91309e-05
  12  2.89622
  13  3.11224
  14  10.4806
  15  1.35194e-05
  16  3.10434e-05
  17  4.83744
  18  0.000229117
  19  36.8397
  20  58.231
  21  3.39781e-05
  22  8.87871e-05
  23  0.363009
  24  14.1848
  25  1.17009e-06
  26  17.561
  27  0.186286
  28  0.233529
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.378e+01  1.048e+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.216e+00  2.335e-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.786e-01  1.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.83
Ra Dec: 155.788 39.823
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 3.93e-08 +/- 2.98e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.04e-05

TS (Fixed Index): 2.83
Ra Dec: 155.788 39.823
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/832979/likelihoodResults_277689601_277948801_4FGL_J1023.1+3949_daily_bin148.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) = 6090.3629818
delta logL = 0.639966455027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6090.35671585
delta logL = 0.646232407763

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.1235       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1551       1.0000          .0000       5.0000    
     3 'Normalizat'    .74071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2512       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=   6090.357     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      272 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.1218        10.300        .13269E-03    .18562E-02
   2  alpha         3.1559        .94244        .14697E-01    .17169E-03
   3  Normalizat    .74055        .18160        .24994E-03   -.35688E-03
   4  Prefactor     1.2513        .23524        .25836E-03   -.46267E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.12182
  alpha      = 3.15593
  Normalizat = 0.740552
  Prefactor  = 1.25131
 **********
 **   18 **HESSE 
 **********

 FCN=   6090.357     FROM HESSE     STATUS=OK            23 CALLS      295 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.1218        9.2099        .53076E-05   -1.5104    
   2  alpha         3.1559        .84670        .58789E-03    .26548    
   3  Normalizat    .74055        .18165        .99977E-05   -1.0231    
   4  Prefactor     1.2513        .23520        .51672E-04   -.84767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73023e-09
Minuit parameter uncertainties:
  1  9.21131
  2  0.865125
  3  0.181793
  4  0.235394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/832979': 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) = 6090.35671444
delta logL = 0.646233812668

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  9.122e+00  9.211e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  3.156e+00  8.651e-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:  1.251e+00  2.354e-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.406e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.20
Ra Dec: 155.788 39.823
Photon Index (Free Index): 3.16 +/- 0.87
Photon Flux (Free Index): 6.51e-08 +/- 4.13e-08
Energy Flux (Free Index): 1.25e-05 +/- 7.80e-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/832979/cmap_HighResolution_277689601_277948801_4FGL_J1023.1+3949_daily_bin148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-05', comment='SUCCESS', photon_flux='3.93e-08', energy_flux2='1.25e-05', photon_flux_error='2.98e-08', dlogl='6.46e-01', energy_flux='1.37e-05', photon_flux2='6.51e-08', job_status='DONE', time_completed='2021-09-01 19:21:24.961519', photon_index_error2='0.87', photon_index2='3.16', ts='2.83', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='7.80e-06', EG='0.78', time_epoch_completed='1630549284.96', return_code='0', job_id='832979', GAL2='1.25', EG2='0.74', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='4.13e-08', ts2='4.20', photon_index='2.25' WHERE bin_id='148' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:21:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 832979: <4FGL_J1023.1+3949_daily_bin148> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin148 155.788 39.8226 277689601 277948801 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 :                                   853.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            920 sec.

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

