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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1007
RA = 155.788, Dec = 39.8226
tmin = 500342401, tmax = 500601601
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='838617', job_status='RUN', time_executed='2021-09-01 19:27:22.316783', time_epoch_executed='1630549642.32' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838617

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838617/ft1_4FGL_J1023.1+3949_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838617/ft2_4FGL_J1023.1+3949_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838617/ft1_4FGL_J1023.1+3949_daily_bin1007.fits outfile=/scratch/kocevski/838617/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1007.fits ra=155.788 dec=39.8226 rad=12.0 tmin=500342401.0 tmax=500601601.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 4.78
user 4.51
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/838617/ft2_4FGL_J1023.1+3949_daily_bin1007.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/838617/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1007.fits evtable="EVENTS" outfile="/scratch/kocevski/838617/ft1_filtered_4FGL_J1023.1+3949_daily_bin1007.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/838617/ft1_filtered_4FGL_J1023.1+3949_daily_bin1007.fits" evtable="EVENTS" scfile=/scratch/kocevski/838617/ft2_4FGL_J1023.1+3949_daily_bin1007.fits sctable="SC_DATA" outfile=/scratch/kocevski/838617/ltcube_500342401_500601601_4FGL_J1023.1+3949_daily_bin1007.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/838617/ft2_4FGL_J1023.1+3949_daily_bin1007.fits
.....................!
real 13.66
user 13.29
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838617/ft1_filtered_4FGL_J1023.1+3949_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/838617/ft2_4FGL_J1023.1+3949_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/838617/ltcube_500342401_500601601_4FGL_J1023.1+3949_daily_bin1007.fits outfile=/scratch/kocevski/838617/expmap_500342401_500601601_4FGL_J1023.1+3949_daily_bin1007.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/838617/ltcube_500342401_500601601_4FGL_J1023.1+3949_daily_bin1007.fits
.....................!
real 193.18
user 187.62
sys 4.97

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/838617/ft1_filtered_4FGL_J1023.1+3949_daily_bin1007.fits scfile=/scratch/kocevski/838617/ft2_4FGL_J1023.1+3949_daily_bin1007.fits outfile=/scratch/kocevski/838617/cmap_500342401_500601601_4FGL_J1023.1+3949_daily_bin1007.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.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.346       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .77139E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    54.089       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.064       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9965       1.0000         .10000E-03   10000.    
    11 'Prefactor '    97.176       1.0000         .10000E-03   10000.    
    12 'norm      '    5.4407       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.737       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    67.703       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    114.93       1.0000         .10000E-03   10000.    
    23 'norm      '    1.4715       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .70853       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2333       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=   5635.181     FROM MIGRAD    STATUS=CONVERGED    673 CALLS     3508 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.331        13.154        .96433E-06    .78686E-04
   2  Prefactor     .94232E-01    1.5079       -.31161E-06    .12383E-03
   3  norm          .10000E-03    7.2950        .13602E-05** at limit **
   4  Prefactor     .10000E-03    17.280       -.37895E-05** at limit **
   5  Prefactor     54.082        38.895       -.65129E-05    .33674E-04
   6  Prefactor     .10000E-03    4.7869       -.11731E-06** at limit **
   7  norm          16.069        16.129        .38945E-06   -.84079E-05
   8  Prefactor     .10000E-03    6.0206       -.58215E-06** at limit **
   9  Prefactor     .10000E-03    1.8142        .16447E-06** at limit **
  10  Prefactor     2.9980        4.5299       -.19479E-05   -.55778E-03
  11  Prefactor     97.189        45.109        .99979E-05   -.77500E-05
  12  norm          5.4413        2.8079       -.49795E-08    .27087E-04
  13  Prefactor     .10000E-03    2.5234        .20004E-06** at limit **
  14  norm          .10000E-03    11.193        .10417E-05** at limit **
  15  Prefactor     .10000E-03    45.911       -.16659E-04** at limit **
  16  Prefactor     .10000E-03    16.990       -.34553E-05** at limit **
  17  Prefactor     .10000E-03    3.2953       -.24015E-06** at limit **
  18  Prefactor     13.738        6.7228       -.28377E-06   -.10675E-03
  19  Prefactor     .10000E-03    37.675        .17137E-04** at limit **
  20  Prefactor     67.699        88.552       -.42434E-05   -.68200E-06
  21  Prefactor     .10000E-03    12.570        .45078E-05** at limit **
  22  Prefactor     114.93        91.089        .31792E-05   -.36855E-05
  23  norm          1.4715        .36774       -.97640E-08    .40656E-03
  24  Prefactor     .10000E-03    22.359       -.62484E-06** at limit **
  25  Prefactor     .10000E-03    9.9614       -.47936E-05** at limit **
  26  norm          .10000E-03    14.338        .26750E-05** at limit **
  27  Normalizat    .70862        .18321       -.88357E-06    .35631E-04
  28  Prefactor     1.2331        .21459        .34056E-06   -.11876E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 22.3306
  Prefactor  = 0.094232
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.0819
  Prefactor  = 0.0001
  norm       = 16.0695
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.99797
  Prefactor  = 97.1893
  norm       = 5.44135
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7378
  Prefactor  = 0.0001
  Prefactor  = 67.6989
  Prefactor  = 0.0001
  Prefactor  = 114.934
  norm       = 1.47155
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.708618
  Prefactor  = 1.23309
 **********
 **   18 **HESSE 
 **********

 FCN=   5635.181     FROM HESSE     STATUS=OK           513 CALLS     4021 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.331        13.077        .84733E-04   -1.4763    
   2  Prefactor     .94232E-01    13.146        .17353E-02   -1.5647    
   3  norm          .10000E-03    7.3114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     54.082        38.889        .54538E-04   -1.4236    
   6  Prefactor     .10000E-03    4.8025        .16035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.069        16.149        .99930E-04   -1.4906    
   8  Prefactor     .10000E-03    6.1039        .17969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.1884        .19579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.9980        4.5623        .18305E-03   -1.5362    
  11  Prefactor     97.189        45.108        .40776E-04   -1.3733    
  12  norm          5.4413        2.8071        .87506E-04   -1.5241    
  13  Prefactor     .10000E-03    2.5326        .11612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    11.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    45.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3476        .13301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.738        6.7238        .10807E-03   -1.4967    
  19  Prefactor     .10000E-03    37.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     67.699        88.619        .48780E-04   -1.4061    
  21  Prefactor     .10000E-03    12.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     114.93        91.122        .37528E-04   -1.3560    
  23  norm          1.4715        .36799        .21904E-04   -1.5465    
  24  Prefactor     .10000E-03    22.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.9773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    14.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .70862        .21786        .27534E-03   -1.0355    
  28  Prefactor     1.2331        .25619        .26962E-03   -.85319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97121e-10
Minuit parameter uncertainties:
  1  13.0786
  2  2.22531
  3  2.58234e-05
  4  8.87824e-05
  5  38.9077
  6  1.65177e-05
  7  16.1538
  8  6.94359e-07
  9  2.6266e-05
  10  4.56281
  11  45.1238
  12  2.80721
  13  2.29073e-05
  14  0.000170624
  15  7.15605e-05
  16  7.38402e-07
  17  4.94962e-05
  18  6.72416
  19  8.37958e-05
  20  88.7926
  21  3.31601e-06
  22  91.2336
  23  0.367992
  24  2.02343e-05
  25  5.50289e-06
  26  1.6016e-06
  27  0.218129
  28  0.256448
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  1.706e-04  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.233e+00  2.564e-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.086e-01  2.181e-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: 7.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/838617/likelihoodResults_500342401_500601601_4FGL_J1023.1+3949_daily_bin1007.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) = 5635.18097218
delta logL = -0.000420451305217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5635.18055172
delta logL = 2.49474396696e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2607       1.0000          .0000       5.0000    
     3 'Normalizat'    .70863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2331       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=   5635.181     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      246 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1625.4        .18142E-02** at limit **
   2  alpha         2.3735        3.7523        .16557       -.14419E-07
   3  Normalizat    .70862        .66602E-01    .27534E-03   -.65733E-04
   4  Prefactor     1.2331        .84232E-01    .26962E-03   -.69530E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.37354
  Normalizat = 0.708617
  Prefactor  = 1.23309
 **********
 **   18 **HESSE 
 **********

 FCN=   5635.181     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.639        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3735        3.6410        .66228E-02   -.50607E-01
   3  Normalizat    .70862        .20079        .11014E-04   -1.0355    
   4  Prefactor     1.2331        .25397        .10785E-04   -.85319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03854e-11
Minuit parameter uncertainties:
  1  2.85122e-05
  2  263.972
  3  0.201001
  4  0.254221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838617': 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) = 5635.18055161
delta logL = 1.11000190373e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.233e+00  2.542e-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.086e-01  2.010e-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/838617/cmap_HighResolution_500342401_500601601_4FGL_J1023.1+3949_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.46e-05', job_status='DONE', photon_flux_upper_limit='7.04e-08', time_completed='2021-09-01 19:40:58.576395', job_id='838617', GAL2='1.23', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630550458.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1007' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:40:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 838617: <4FGL_J1023.1+3949_daily_bin1007> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1007 155.788 39.8226 500342401 500601601 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 :                                   811.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            924 sec.

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

