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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin362
RA = 155.788, Dec = 39.8226
tmin = 333158401, tmax = 333417601
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='834324', job_status='RUN', time_executed='2021-09-01 19:11:10.690144', time_epoch_executed='1630548670.69' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834324

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834324/ft1_4FGL_J1023.1+3949_daily_bin362.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834324/ft2_4FGL_J1023.1+3949_daily_bin362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834324/ft1_4FGL_J1023.1+3949_daily_bin362.fits outfile=/scratch/kocevski/834324/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin362.fits ra=155.788 dec=39.8226 rad=12.0 tmin=333158401.0 tmax=333417601.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 6.09
user 5.81
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/834324/ft2_4FGL_J1023.1+3949_daily_bin362.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/834324/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin362.fits evtable="EVENTS" outfile="/scratch/kocevski/834324/ft1_filtered_4FGL_J1023.1+3949_daily_bin362.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.48
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834324/ft1_filtered_4FGL_J1023.1+3949_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/834324/ft2_4FGL_J1023.1+3949_daily_bin362.fits sctable="SC_DATA" expcube=/scratch/kocevski/834324/ltcube_333158401_333417601_4FGL_J1023.1+3949_daily_bin362.fits outfile=/scratch/kocevski/834324/expmap_333158401_333417601_4FGL_J1023.1+3949_daily_bin362.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/834324/ltcube_333158401_333417601_4FGL_J1023.1+3949_daily_bin362.fits
.....................!
real 189.07
user 184.90
sys 3.83

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/834324/ft1_filtered_4FGL_J1023.1+3949_daily_bin362.fits scfile=/scratch/kocevski/834324/ft2_4FGL_J1023.1+3949_daily_bin362.fits outfile=/scratch/kocevski/834324/cmap_333158401_333417601_4FGL_J1023.1+3949_daily_bin362.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=155.788 yref=39.8226 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.36
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1774       1.0000         .10000E-03   10000.    
     3 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    47.751       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4225       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .33154E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .16344       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .66514       1.0000         .10000E-03   10000.    
    14 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.441       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3685       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6799       1.0000         .10000E-03   10000.    
    19 'Prefactor '    68.686       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    87.415       1.0000         .10000E-03   10000.    
    23 'norm      '    .70820       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.5798       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.2936       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .71574       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1312       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=   5401.603     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     3539 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.2558        .20664E-06** at limit **
   2  Prefactor     1.1778        2.8221        .43008E-06    .16341E-03
   3  norm          .10000E-03    7.7801        .95412E-07** at limit **
   4  Prefactor     .10000E-03    19.265        .16397E-06** at limit **
   5  Prefactor     47.783        36.427       -.20224E-05   -.13570E-03
   6  Prefactor     .10000E-03    3.2533        .54042E-07** at limit **
   7  norm          .10000E-03    2.7291        .18557E-07** at limit **
   8  Prefactor     7.4255        7.5308        .42609E-07   -.49514E-05
   9  Prefactor     .72093E-02    1.4046        .11370E-05   -.17796E-02
  10  Prefactor     .10000E-03    .97413        .60191E-07** at limit **
  11  Prefactor     .10000E-03    9.2626        .18017E-06** at limit **
  12  norm          .16527        1.4221       -.74854E-09   -.14077E-04
  13  Prefactor     .66491        2.5202        .25269E-06    .71604E-04
  14  norm          .10000E-03    4.7377        .54282E-07** at limit **
  15  Prefactor     28.433        49.530        .77846E-06    .47434E-06
  16  Prefactor     .10000E-03    45.537       -.19724E-05** at limit **
  17  Prefactor     3.3701        3.2558       -.12457E-06   -.43147E-04
  18  Prefactor     7.6818        6.1464        .13911E-06    .11449E-03
  19  Prefactor     68.689        40.921       -.23637E-06    .52341E-05
  20  Prefactor     .10000E-03    33.985        .20984E-05** at limit **
  21  Prefactor     .10000E-03    19.850        .22623E-06** at limit **
  22  Prefactor     87.266        118.71        .10958E-04    .12194E-03
  23  norm          .70829        .25603       -.65358E-07   -.67078E-03
  24  Prefactor     8.5745        14.859        .10030E-05    .23033E-04
  25  Prefactor     2.2931        14.024        .45743E-05    .27616E-03
  26  norm          .10031E-03    14.615        .26408E-05** at limit **
  27  Normalizat    .71499        .16538        .96285E-06   -.45479E-04
  28  Prefactor     1.1322        .19883       -.15562E-05   -.10349E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.17778
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.7834
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.42551
  Prefactor  = 0.00720927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.165275
  Prefactor  = 0.66491
  norm       = 0.0001
  Prefactor  = 28.4328
  Prefactor  = 0.0001
  Prefactor  = 3.37012
  Prefactor  = 7.68181
  Prefactor  = 68.6887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 87.2663
  norm       = 0.708295
  Prefactor  = 8.57455
  Prefactor  = 2.29306
  norm       = 0.000100315
  Normalizat = 0.714991
  Prefactor  = 1.13218
 **********
 **   18 **HESSE 
 **********

 FCN=   5401.603     FROM HESSE     STATUS=OK           531 CALLS     4070 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.2899        .17937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1778        2.8058        .18080E-03   -1.5491    
   3  norm          .10000E-03    7.7883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     47.783        36.573        .58027E-04   -1.4324    
   6  Prefactor     .10000E-03    3.2626        .12945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.7310        .11857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.4255        7.4986        .14721E-03   -1.5163    
   9  Prefactor     .72093E-02    2.0786        .27483E-01   -1.5691    
  10  Prefactor     .10000E-03    .97989        .70760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.2699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .16527        7.5106        .16607E-02   -1.5627    
  13  Prefactor     .66491        2.4452        .21546E-03   -1.5545    
  14  norm          .10000E-03    4.7717        .15619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.433        49.544        .75123E-04   -1.4641    
  16  Prefactor     .10000E-03    45.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.3701        3.2556        .12408E-03   -1.5341    
  18  Prefactor     7.6818        6.1206        .14470E-03   -1.5154    
  19  Prefactor     68.689        40.882        .48432E-04   -1.4048    
  20  Prefactor     .10000E-03    33.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     87.266        118.97        .21486E-03   -1.3837    
  23  norm          .70829        .25701        .20956E-04   -1.5540    
  24  Prefactor     8.5745        14.150        .13685E-03   -1.5122    
  25  Prefactor     2.2931        14.434        .13551E-02   -1.5405    
  26  norm          .10031E-03    58.351        .45337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .71499        .19181        .23781E-03   -1.0330    
  28  Prefactor     1.1322        .23141        .25128E-03   -.88445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29975e-08
Minuit parameter uncertainties:
  1  1.50534e-05
  2  2.80614
  3  2.05939e-05
  4  0.000104108
  5  36.5897
  6  3.58359e-06
  7  1.31214e-06
  8  7.49958
  9  0.243134
  10  1.14472e-06
  11  1.44327e-05
  12  2.2279
  13  2.44558
  14  4.2592e-06
  15  49.6162
  16  0.000251747
  17  3.25579
  18  6.12112
  19  40.8986
  20  0.00019875
  21  1.37099e-05
  22  119.295
  23  0.257008
  24  14.1551
  25  11.5102
  26  0.00857828
  27  0.191989
  28  0.231617
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  4.259e-06  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.132e+00  2.316e-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.150e-01  1.920e-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: 4.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/834324/likelihoodResults_333158401_333417601_4FGL_J1023.1+3949_daily_bin362.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) = 5401.60444401
delta logL = -0.000997409291813

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5401.60344661
delta logL = -8.9285094873e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2547       1.0000          .0000       5.0000    
     3 'Normalizat'    .71500       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1322       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5401.603     FROM MIGRAD    STATUS=FAILED        83 CALLS      227 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10024E-03    26.437        .15629E-02** at limit **
   2  alpha         2.3121        3.6558        .16562       -.23178E-05
   3  Normalizat    .71499        .17364        .23780E-03    .11522E-04
   4  Prefactor     1.1322        .22720        .25128E-03    .12578E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5401.603     FROM SIMPLEX   STATUS=UNCHANGED    136 CALLS      363 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10024E-03    26.437        .37168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3121        3.6558        .30285E-03   -.75219E-01
   3  Normalizat    .71499        .17364        .21899E-04   -1.0330    
   4  Prefactor     1.1322        .22720        .46105E-04   -.88445    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5401.603     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      395 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.8391        .31257E-03** at limit **
   2  alpha         2.3781        2.8836        .33124E-01   -.51483E-08
   3  Normalizat    .71499        .17379        .95121E-05   -.35377E-04
   4  Prefactor     1.1322        .22740        .10051E-04   -.31218E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.3781
  Normalizat = 0.71499
  Prefactor  = 1.13218
 **********
 **   18 **HESSE 
 **********

 FCN=   5401.603     FROM HESSE     STATUS=OK            23 CALLS      418 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.8255        .62514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3781        2.8214        .13249E-02   -.48778E-01
   3  Normalizat    .71499        .17390        .19024E-05   -1.0330    
   4  Prefactor     1.1322        .22756        .20102E-05   -.88445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66426e-12
Minuit parameter uncertainties:
  1  3.41895e-07
  2  266.072
  3  0.174038
  4  0.227753
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834324': 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) = 5401.60344648
delta logL = 1.14568138088e-07

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  3.419e-07  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.378e+00  2.661e+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.132e+00  2.278e-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.150e-01  1.740e-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/834324/cmap_HighResolution_333158401_333417601_4FGL_J1023.1+3949_daily_bin362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.70e-05', job_status='DONE', photon_flux_upper_limit='4.87e-08', time_completed='2021-09-01 19:24:47.083322', job_id='834324', GAL2='1.13', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630549487.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='362' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:24:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 834324: <4FGL_J1023.1+3949_daily_bin362> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin362 155.788 39.8226 333158401 333417601 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.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            830 sec.

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

