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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin18
RA = 155.788, Dec = 39.8226
tmin = 243993601, tmax = 244252801
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='832767', job_status='RUN', time_executed='2021-09-01 19:09:52.594735', time_epoch_executed='1630548592.59' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/832767

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/832767/ft1_4FGL_J1023.1+3949_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/832767/ft2_4FGL_J1023.1+3949_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/832767/ft1_4FGL_J1023.1+3949_daily_bin18.fits outfile=/scratch/kocevski/832767/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin18.fits ra=155.788 dec=39.8226 rad=12.0 tmin=243993601.0 tmax=244252801.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.41
user 1.22
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/832767/ft2_4FGL_J1023.1+3949_daily_bin18.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/832767/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin18.fits evtable="EVENTS" outfile="/scratch/kocevski/832767/ft1_filtered_4FGL_J1023.1+3949_daily_bin18.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/832767/ft1_filtered_4FGL_J1023.1+3949_daily_bin18.fits" evtable="EVENTS" scfile=/scratch/kocevski/832767/ft2_4FGL_J1023.1+3949_daily_bin18.fits sctable="SC_DATA" outfile=/scratch/kocevski/832767/ltcube_243993601_244252801_4FGL_J1023.1+3949_daily_bin18.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/832767/ft2_4FGL_J1023.1+3949_daily_bin18.fits
.....................!
real 12.35
user 11.99
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/832767/ft1_filtered_4FGL_J1023.1+3949_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/832767/ft2_4FGL_J1023.1+3949_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/832767/ltcube_243993601_244252801_4FGL_J1023.1+3949_daily_bin18.fits outfile=/scratch/kocevski/832767/expmap_243993601_244252801_4FGL_J1023.1+3949_daily_bin18.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/832767/ltcube_243993601_244252801_4FGL_J1023.1+3949_daily_bin18.fits
.....................!
real 190.05
user 184.69
sys 5.01

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/832767/ft1_filtered_4FGL_J1023.1+3949_daily_bin18.fits scfile=/scratch/kocevski/832767/ft2_4FGL_J1023.1+3949_daily_bin18.fits outfile=/scratch/kocevski/832767/cmap_243993601_244252801_4FGL_J1023.1+3949_daily_bin18.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/832767/ft1_filtered_4FGL_J1023.1+3949_daily_bin18.fits scfile=/scratch/kocevski/832767/ft2_4FGL_J1023.1+3949_daily_bin18.fits outfile=/scratch/kocevski/832767/cmap_HighResolution_243993601_244252801_4FGL_J1023.1+3949_daily_bin18.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/832767/ft1_filtered_4FGL_J1023.1+3949_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/832767/ft2_4FGL_J1023.1+3949_daily_bin18.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/832767/Model_4FGL_J1023.1+3949_daily_bin18.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/832767/ft1_filtered_4FGL_J1023.1+3949_daily_bin18.fits.....................!
real 52.29
user 50.79
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21939E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7057       1.0000         .10000E-03   10000.    
     3 'norm      '    21.598       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    80.594       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6756       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8195       1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.831       1.0000         .10000E-03   10000.    
    12 'norm      '    10.975       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    27.177       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11090E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11558E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.555       1.0000         .10000E-03   10000.    
    20 'Prefactor '    121.89       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.232       1.0000         .10000E-03   10000.    
    22 'Prefactor '    150.67       1.0000         .10000E-03   10000.    
    23 'norm      '    1.6940       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    22.421       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2190       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .37130       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=   6007.550     FROM MIGRAD    STATUS=CONVERGED    697 CALLS     3515 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10010E-03    6.3259       -.98130E-06** at limit **
   2  Prefactor     1.7052        1.7805        .40495E-07    .15268E-03
   3  norm          21.597        16.530       -.21783E-07    .13402E-04
   4  Prefactor     .10000E-03    9.5115       -.10290E-06** at limit **
   5  Prefactor     80.588        40.068        .11887E-06   -.16437E-04
   6  Prefactor     .10000E-03    5.0948       -.10752E-06** at limit **
   7  norm          .10000E-03    23.948       -.39569E-06** at limit **
   8  Prefactor     .10000E-03    3.3831       -.78273E-07** at limit **
   9  Prefactor     4.6753        2.7253        .80327E-08   -.34795E-04
  10  Prefactor     9.8203        4.5127        .19504E-07   -.23656E-03
  11  Prefactor     45.832        31.116        .46300E-07   -.57811E-04
  12  norm          10.975        3.7066        .18536E-07   -.38129E-04
  13  Prefactor     .10000E-03    4.0321        .18768E-06** at limit **
  14  norm          27.189        13.130       -.13108E-06   -.25816E-03
  15  Prefactor     .10000E-03    67.070       -.73290E-07** at limit **
  16  Prefactor     .10000E-03    39.471        .27132E-05** at limit **
  17  Prefactor     .10000E-03    3.0508        .15427E-05** at limit **
  18  Prefactor     .10000E-03    9.4985        .35096E-05** at limit **
  19  Prefactor     21.618        42.594       -.98216E-06   -.36090E-04
  20  Prefactor     121.87        94.903       -.62396E-07   -.23288E-04
  21  Prefactor     14.234        17.245       -.42571E-07   -.19253E-04
  22  Prefactor     150.67        93.648        .57632E-07   -.22096E-04
  23  norm          1.6942        .35901        .33486E-09   -.40278E-03
  24  Prefactor     .10000E-03    8.4391        .88974E-08** at limit **
  25  Prefactor     .10000E-03    11.882       -.73462E-07** at limit **
  26  norm          22.424        14.268       -.28092E-07   -.27094E-04
  27  Normalizat    1.2190        .18875       -.16696E-05   -.10668E-03
  28  Prefactor     .37139        .21978        .34932E-05   -.32284E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100098
  Prefactor  = 1.7052
  norm       = 21.597
  Prefactor  = 0.0001
  Prefactor  = 80.5883
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.67534
  Prefactor  = 9.8203
  Prefactor  = 45.8321
  norm       = 10.9754
  Prefactor  = 0.0001
  norm       = 27.1886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.6179
  Prefactor  = 121.871
  Prefactor  = 14.2336
  Prefactor  = 150.668
  norm       = 1.69416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.4235
  Normalizat = 1.21901
  Prefactor  = 0.371395
 **********
 **   18 **HESSE 
 **********

 FCN=   6007.550     FROM HESSE     STATUS=OK           517 CALLS     4032 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10010E-03    45.031        .35750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.7052        1.7692        .10199E-03   -1.5447    
   3  norm          21.597        16.518        .86186E-04   -1.4778    
   4  Prefactor     .10000E-03    9.5224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     80.588        40.148        .44738E-04   -1.3910    
   6  Prefactor     .10000E-03    5.1423        .17080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    24.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.4029        .13918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6753        2.7218        .94126E-04   -1.5275    
  10  Prefactor     9.8203        4.5103        .10494E-03   -1.5081    
  11  Prefactor     45.832        31.153        .59225E-04   -1.4353    
  12  norm          10.975        3.7087        .83899E-04   -1.5045    
  13  Prefactor     .10000E-03    4.0989        .30250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          27.189        13.161        .76846E-04   -1.4665    
  15  Prefactor     .10000E-03    67.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.1268        .13222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.6359        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.618        42.702        .86273E-04   -1.4778    
  20  Prefactor     121.87        94.948        .18227E-03   -1.3496    
  21  Prefactor     14.234        17.236        .10617E-03   -1.4953    
  22  Prefactor     150.67        93.811        .32836E-04   -1.3247    
  23  norm          1.6942        .35924        .20609E-04   -1.5448    
  24  Prefactor     .10000E-03    8.4742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          22.424        14.259        .84591E-04   -1.4761    
  27  Normalizat    1.2190        .19992        .20730E-03   -.86017    
  28  Prefactor     .37139        .22577        .42987E-03   -1.1829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10144e-09
Minuit parameter uncertainties:
  1  0.00420703
  2  1.76922
  3  16.5216
  4  3.64792e-06
  5  40.1612
  6  9.66441e-07
  7  3.47765e-05
  8  9.76864e-07
  9  2.72192
  10  4.51043
  11  31.1642
  12  3.70879
  13  6.32226e-07
  14  13.1626
  15  0.000102448
  16  1.10854e-05
  17  1.56037e-05
  18  3.06008e-05
  19  42.7621
  20  95.0672
  21  17.242
  22  93.9036
  23  0.359238
  24  1.41133e-07
  25  5.66045e-06
  26  14.2608
  27  0.20005
  28  0.226312
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  2.719e+01  1.316e+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:  3.714e-01  2.263e-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.219e+00  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.48
Ra Dec: 155.788 39.823
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 7.74e-08 +/- 3.75e-08
Energy Flux (Fixed Index): 2.70e-05 +/- 1.31e-05

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) = 6006.81554769
delta logL = 0.734590219952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6006.81003619
delta logL = 0.740101725615

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.704       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8435       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1719       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .41015       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=   6006.810     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      300 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.699        12.508        .84064E-04    .63562E-05
   2  alpha         2.8436        .52371        .10980E-01   -.61046E-05
   3  Normalizat    1.1720        .19385        .21055E-03   -.17553E-03
   4  Prefactor     .41004        .22809        .41039E-03   -.51249E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 22.6988
  alpha      = 2.8436
  Normalizat = 1.17203
  Prefactor  = 0.410045
 **********
 **   18 **HESSE 
 **********

 FCN=   6006.810     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.699        12.124        .33626E-05   -1.4755    
   2  alpha         2.8436        .50748        .43921E-03    .13787    
   3  Normalizat    1.1720        .19385        .42111E-04   -.87472    
   4  Prefactor     .41004        .22804        .16416E-04   -1.1630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0072e-10
Minuit parameter uncertainties:
  1  12.1254
  2  0.511102
  3  0.193973
  4  0.228548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/832767': 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) = 6006.81003598
delta logL = 0.740101926401

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  2.270e+01  1.213e+01  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.844e+00  5.111e-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:  4.100e-01  2.285e-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.172e+00  1.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.00
Ra Dec: 155.788 39.823
Photon Index (Free Index): 2.84 +/- 0.51
Photon Flux (Free Index): 1.14e-07 +/- 5.32e-08
Energy Flux (Free Index): 2.53e-05 +/- 1.06e-05

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/832767/cmap_HighResolution_243993601_244252801_4FGL_J1023.1+3949_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.74e-08', energy_flux2='2.53e-05', photon_flux_error='3.75e-08', dlogl='7.40e-01', energy_flux='2.70e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-01 19:22:09.784022', photon_index_error2='0.51', photon_index2='2.84', ts='8.48', fit_tolerance='1e-08', GAL='0.37', photon_index_error='0.00', energy_flux_error2='1.06e-05', EG='1.22', time_epoch_completed='1630549329.78', return_code='0', job_id='832767', GAL2='0.41', EG2='1.17', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='5.32e-08', ts2='10.00', photon_index='2.25' WHERE bin_id='18' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:22:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 832767: <4FGL_J1023.1+3949_daily_bin18> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin18> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 19:05:45 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:05:47 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:47 2021
Terminated at Wed Sep  1 19:22:10 2021
Results reported at Wed Sep  1 19:22:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin18 155.788 39.8226 243993601 244252801 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 :                                   736.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             256.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

