/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 126 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 = 7393
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1023.1+3949_daily_bin75
RA = 155.788, Dec = 39.8226
tmin = 258768001, tmax = 259027201
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='832862', job_status='RUN', time_executed='2021-09-01 19:08:09.977454', time_epoch_executed='1630548489.98' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/832862

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/832862/ft1_4FGL_J1023.1+3949_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/832862/ft2_4FGL_J1023.1+3949_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/832862/ft1_4FGL_J1023.1+3949_daily_bin75.fits outfile=/scratch/kocevski/832862/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin75.fits ra=155.788 dec=39.8226 rad=12.0 tmin=258768001.0 tmax=259027201.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 1.13
user 0.95
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/832862/ft1_filtered_4FGL_J1023.1+3949_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/832862/ft2_4FGL_J1023.1+3949_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/832862/ltcube_258768001_259027201_4FGL_J1023.1+3949_daily_bin75.fits outfile=/scratch/kocevski/832862/expmap_258768001_259027201_4FGL_J1023.1+3949_daily_bin75.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/832862/ltcube_258768001_259027201_4FGL_J1023.1+3949_daily_bin75.fits
.....................!
real 190.11
user 185.05
sys 4.67

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/832862/ft1_filtered_4FGL_J1023.1+3949_daily_bin75.fits scfile=/scratch/kocevski/832862/ft2_4FGL_J1023.1+3949_daily_bin75.fits outfile=/scratch/kocevski/832862/cmap_258768001_259027201_4FGL_J1023.1+3949_daily_bin75.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/832862/ft1_filtered_4FGL_J1023.1+3949_daily_bin75.fits scfile=/scratch/kocevski/832862/ft2_4FGL_J1023.1+3949_daily_bin75.fits outfile=/scratch/kocevski/832862/cmap_HighResolution_258768001_259027201_4FGL_J1023.1+3949_daily_bin75.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9044       1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.906       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3036       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11163E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.4269       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.216       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4671       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.7150       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.7944       1.0000         .10000E-03   10000.    
    23 'norm      '    .47162       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4705       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .56842       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=   2994.920     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     3530 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.6739        .79706E-07** at limit **
   2  Prefactor     3.9039        4.0109        .14038E-06   -.13141E-04
   3  norm          .10000E-03    8.4880        .33511E-07** at limit **
   4  Prefactor     .10000E-03    17.019        .15367E-06** at limit **
   5  Prefactor     52.906        45.102        .12858E-07   -.10789E-04
   6  Prefactor     5.3048        16.169        .50646E-06   -.43407E-04
   7  norm          .10000E-03    14.336        .35960E-06** at limit **
   8  Prefactor     .10000E-03    17.289        .39229E-06** at limit **
   9  Prefactor     .10000E-03    2.2711        .44560E-06** at limit **
  10  Prefactor     .10000E-03    3.8729        .69807E-06** at limit **
  11  Prefactor     .10001E-03    99.908       -.17617E-05** at limit **
  12  norm          4.4270        4.0655        .34753E-07   -.68890E-05
  13  Prefactor     .10000E-03    1.9598        .29707E-07** at limit **
  14  norm          .10000E-03    4.4397       -.20029E-06** at limit **
  15  Prefactor     .10002E-03    149.35        .38352E-05** at limit **
  16  Prefactor     28.225        27.982       -.77703E-07    .42549E-05
  17  Prefactor     3.4707        6.0131        .54052E-05   -.30289E-03
  18  Prefactor     .10000E-03    2.5407       -.18260E-06** at limit **
  19  Prefactor     9.6006        69.060       -.10134E-04   -.15983E-03
  20  Prefactor     .10000E-03    42.443        .10399E-06** at limit **
  21  Prefactor     .10000E-03    13.629       -.59629E-07** at limit **
  22  Prefactor     8.7462        263.46       -.40765E-05   -.36943E-04
  23  norm          .47145        .33613       -.60646E-08    .64350E-04
  24  Prefactor     .10000E-03    21.412        .20745E-06** at limit **
  25  Prefactor     .10000E-03    10.060        .80732E-07** at limit **
  26  norm          .10000E-03    6.5251        .70489E-07** at limit **
  27  Normalizat    1.4704        .24956       -.74940E-06   -.92717E-04
  28  Prefactor     .56869        .29836       -.10204E-05   -.62575E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.90387
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.9059
  Prefactor  = 5.30482
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100006
  norm       = 4.42699
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 28.2246
  Prefactor  = 3.47067
  Prefactor  = 0.0001
  Prefactor  = 9.60058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.74621
  norm       = 0.471446
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.47043
  Prefactor  = 0.568686
 **********
 **   18 **HESSE 
 **********

 FCN=   2994.920     FROM HESSE     STATUS=OK           509 CALLS     4039 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.6815        .12731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.9039        4.0045        .10721E-03   -1.5313    
   3  norm          .10000E-03    8.4909        .15573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     52.906        45.213        .55141E-04   -1.4252    
   6  Prefactor     5.3048        16.065        .17452E-03   -1.5247    
   7  norm          .10000E-03    14.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.5734        .16019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.3024        .20619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    101.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.4270        4.0684        .10263E-03   -1.5287    
  13  Prefactor     .10000E-03    1.9631        .74800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.4435        .11263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    151.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.225        27.989        .75422E-04   -1.4645    
  17  Prefactor     3.4707        6.0376        .83103E-03   -1.5335    
  18  Prefactor     .10000E-03    2.5458        .85178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.6006        71.802        .12857E-03   -1.5088    
  20  Prefactor     .10000E-03    42.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.7462        266.95        .13516E-03   -1.5116    
  23  norm          .47145        .33284        .25875E-04   -1.5571    
  24  Prefactor     .10000E-03    21.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.067        .16952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    6.5291        .13654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.4704        .28833        .20011E-03   -.78613    
  28  Prefactor     .56869        .34071        .36978E-03   -1.0892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14192e-09
Minuit parameter uncertainties:
  1  4.48736e-06
  2  4.00479
  3  6.79955e-07
  4  2.73018e-05
  5  45.2427
  6  16.0781
  7  5.12812e-05
  8  2.64877e-06
  9  3.43401e-05
  10  0.000143358
  11  0.0016052
  12  4.0687
  13  1.71937e-07
  14  4.41833e-06
  15  0.00323199
  16  28.0019
  17  6.03862
  18  2.39898e-06
  19  52.5989
  20  5.47157e-05
  21  5.11611e-05
  22  97.1174
  23  0.332844
  24  4.87848e-06
  25  1.36423e-05
  26  6.05949e-06
  27  0.288651
  28  0.34195
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  4.418e-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:  5.687e-01  3.420e-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.470e+00  2.887e-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.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/832862/likelihoodResults_258768001_259027201_4FGL_J1023.1+3949_daily_bin75.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) = 2994.92082022
delta logL = -0.000998830500976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2994.91982139
delta logL = 9.39053279581e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2472       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4704       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56870       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=   2994.920     FROM MIGRAD    STATUS=FAILED        86 CALLS      232 TOTAL
                     EDM=   .97E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10025E-03    1035.4        .11269E-02** at limit **
   2  alpha         2.1758        3.0779        .16568        .20721E-05
   3  Normalizat    1.4704        .21479        .20011E-03   -.36927E-05
   4  Prefactor     .56869        .25935        .36977E-03   -.18447E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2994.920     FROM SIMPLEX   STATUS=UNCHANGED    156 CALLS      388 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10025E-03    1035.4        .31433E-03** at limit **
   2  alpha         2.1758        3.0779        .46579E-05    .20721E-05
   3  Normalizat    1.4704        .21479        .12702E-05   -.36927E-05
   4  Prefactor     .56869        .25935        .16715E-05   -.18447E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2994.920     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      419 TOTAL
                     EDM=   .82E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.4931        .22538E-03** at limit **
   2  alpha         2.0991        3.5494        .66273E-02   -.20242E-07
   3  Normalizat    1.4704        .28108        .80045E-05    .10794E-04
   4  Prefactor     .56869        .33904        .14791E-04    .54573E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.0991
  Normalizat = 1.47043
  Prefactor  = 0.568687
 **********
 **   18 **HESSE 
 **********

 FCN=   2994.920     FROM HESSE     STATUS=OK            23 CALLS      442 TOTAL
                     EDM=   .84E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.4930        .45076E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0991        3.5028        .13255E-02   -.16106    
   3  Normalizat    1.4704        .28086        .16009E-05   -.78613    
   4  Prefactor     .56869        .33876        .29582E-05   -1.0892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.37539e-12
Minuit parameter uncertainties:
  1  1.29003e-05
  2  297.39
  3  0.281162
  4  0.339977
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/832862': 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) = 2994.91982126
delta logL = 1.23796326079e-07

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  1.290e-05  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.099e+00  2.974e+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:  5.687e-01  3.400e-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.470e+00  2.812e-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/832862/cmap_HighResolution_258768001_259027201_4FGL_J1023.1+3949_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.38e-05', job_status='DONE', photon_flux_upper_limit='6.81e-08', time_completed='2021-09-01 19:17:42.924281', job_id='832862', GAL2='0.57', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1630549062.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='1.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='75' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:17:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 832862: <4FGL_J1023.1+3949_daily_bin75> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin75> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 19:05:54 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:05:55 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:05:55 2021
Terminated at Wed Sep  1 19:17:43 2021
Results reported at Wed Sep  1 19:17:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin75 155.788 39.8226 258768001 259027201 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 :                                   573.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            709 sec.

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

