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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin56
RA = 155.788, Dec = 39.8226
tmin = 253843201, tmax = 254102401
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='832829', job_status='RUN', time_executed='2021-09-01 19:08:59.317317', time_epoch_executed='1630548539.32' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/832829

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/832829/ft1_4FGL_J1023.1+3949_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/832829/ft2_4FGL_J1023.1+3949_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/832829/ft1_4FGL_J1023.1+3949_daily_bin56.fits outfile=/scratch/kocevski/832829/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin56.fits ra=155.788 dec=39.8226 rad=12.0 tmin=253843201.0 tmax=254102401.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.47
user 1.31
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/832829/ft1_filtered_4FGL_J1023.1+3949_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/832829/ft2_4FGL_J1023.1+3949_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/832829/ltcube_253843201_254102401_4FGL_J1023.1+3949_daily_bin56.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/832829/ft2_4FGL_J1023.1+3949_daily_bin56.fits
.....................!
real 12.60
user 12.26
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/832829/ft1_filtered_4FGL_J1023.1+3949_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/832829/ft2_4FGL_J1023.1+3949_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/832829/ltcube_253843201_254102401_4FGL_J1023.1+3949_daily_bin56.fits outfile=/scratch/kocevski/832829/expmap_253843201_254102401_4FGL_J1023.1+3949_daily_bin56.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/832829/ltcube_253843201_254102401_4FGL_J1023.1+3949_daily_bin56.fits
.....................!
real 189.99
user 184.99
sys 4.62

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/832829/ft1_filtered_4FGL_J1023.1+3949_daily_bin56.fits scfile=/scratch/kocevski/832829/ft2_4FGL_J1023.1+3949_daily_bin56.fits outfile=/scratch/kocevski/832829/cmap_253843201_254102401_4FGL_J1023.1+3949_daily_bin56.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.59
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/832829/ft1_filtered_4FGL_J1023.1+3949_daily_bin56.fits scfile=/scratch/kocevski/832829/ft2_4FGL_J1023.1+3949_daily_bin56.fits outfile=/scratch/kocevski/832829/cmap_HighResolution_253843201_254102401_4FGL_J1023.1+3949_daily_bin56.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37278       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .14145E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    53.570       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.377       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9487       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7036       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.9536       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.033       1.0000         .10000E-03   10000.    
    14 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.727       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .49383       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    57.701       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.9642       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.761       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1065       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .64489       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=   5099.885     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     3574 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37404        5.8064       -.22188E-05   -.11206E-04
   2  Prefactor     .10000E-03    .99584        .22760E-07** at limit **
   3  norm          .10000E-03    22.075       -.15601E-06** at limit **
   4  Prefactor     53.554        34.531        .10973E-05    .93481E-04
   5  Prefactor     13.381        34.734       -.76764E-05    .22170E-04
   6  Prefactor     .10000E-03    3.1575       -.35089E-06** at limit **
   7  norm          .10000E-03    5.2101        .11101E-06** at limit **
   8  Prefactor     .10000E-03    3.1239       -.12820E-06** at limit **
   9  Prefactor     3.9489        2.8287       -.19324E-06   -.63772E-04
  10  Prefactor     3.7048        4.1692       -.44633E-06   -.17916E-03
  11  Prefactor     .10000E-03    9.2863        .26260E-06** at limit **
  12  norm          7.9539        3.6233       -.21138E-06    .46480E-04
  13  Prefactor     12.035        6.1672       -.20945E-06    .11064E-03
  14  norm          .10000E-03    5.9856        .63202E-07** at limit **
  15  Prefactor     28.461        48.401       -.38304E-06    .83328E-05
  16  Prefactor     .10000E-03    8.8900        .24147E-06** at limit **
  17  Prefactor     .49800        3.2824       -.17014E-05   -.37678E-03
  18  Prefactor     .10000E-03    1.4053       -.17939E-06** at limit **
  19  Prefactor     .10000E-03    59.317        .30391E-06** at limit **
  20  Prefactor     57.630        92.997       -.64738E-04   -.32241E-06
  21  Prefactor     .10000E-03    15.142        .12424E-05** at limit **
  22  Prefactor     .10000E-03    32.402       -.19181E-06** at limit **
  23  norm          1.9642        .40401       -.34610E-07    .63616E-03
  24  Prefactor     10.759        12.280       -.40086E-06   -.72157E-05
  25  Prefactor     .10000E-03    4.9092       -.98670E-07** at limit **
  26  norm          .10000E-03    4.1618       -.97848E-07** at limit **
  27  Normalizat    1.1063        .18192        .26709E-05    .27510E-03
  28  Prefactor     .64526        .21237        .26096E-05    .21478E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.374042
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 53.5544
  Prefactor  = 13.3813
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.94885
  Prefactor  = 3.70484
  Prefactor  = 0.0001
  norm       = 7.95392
  Prefactor  = 12.0346
  norm       = 0.0001
  Prefactor  = 28.461
  Prefactor  = 0.0001
  Prefactor  = 0.498004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.6303
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.9642
  Prefactor  = 10.7588
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.10628
  Prefactor  = 0.645258
 **********
 **   18 **HESSE 
 **********

 FCN=   5099.885     FROM HESSE     STATUS=OK           519 CALLS     4093 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37404        18.711        .33278E-02   -1.5586    
   2  Prefactor     .10000E-03    1.0065        .69553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    22.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     53.554        34.481        .54800E-04   -1.4243    
   5  Prefactor     13.381        34.670        .10952E-03   -1.4976    
   6  Prefactor     .10000E-03    3.1655        .12393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.2242        .15919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.1347        .12325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.9489        2.8274        .98223E-04   -1.5311    
  10  Prefactor     3.7048        4.1501        .13601E-03   -1.5323    
  11  Prefactor     .10000E-03    9.2961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.9539        3.6240        .88772E-04   -1.5144    
  13  Prefactor     12.035        6.1571        .11076E-03   -1.5014    
  14  norm          .10000E-03    6.0313        .17055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.461        48.405        .74749E-04   -1.4640    
  16  Prefactor     .10000E-03    8.8917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .49800        6.0493        .24349E-02   -1.5567    
  18  Prefactor     .10000E-03    1.4079        .82662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    59.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     57.630        93.004        .26407E-03   -1.4188    
  21  Prefactor     .10000E-03    15.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    32.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.9642        .40491        .19698E-04   -1.5428    
  24  Prefactor     10.759        12.287        .12214E-03   -1.5052    
  25  Prefactor     .10000E-03    4.9107        .15453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.1641        .14228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1063        .21026        .21196E-03   -.89550    
  28  Prefactor     .64526        .24455        .33072E-03   -1.0571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68284e-08
Minuit parameter uncertainties:
  1  5.2921
  2  2.32e-06
  3  7.94095e-07
  4  34.4941
  5  34.7218
  6  6.32851e-06
  7  1.20983e-05
  8  4.79945e-06
  9  2.82753
  10  4.15043
  11  5.58459e-06
  12  3.62415
  13  6.15745
  14  1.04523e-05
  15  48.4716
  16  2.75637e-06
  17  3.47145
  18  1.40363e-06
  19  7.09607e-06
  20  93.2397
  21  4.13258e-05
  22  8.93986e-06
  23  0.404909
  24  12.2899
  25  2.54422e-06
  26  4.33492e-06
  27  0.210422
  28  0.244951
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  1.045e-05  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:  6.453e-01  2.450e-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.106e+00  2.104e-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: 5.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/832829/likelihoodResults_253843201_254102401_4FGL_J1023.1+3949_daily_bin56.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): 102
logL (Free Index) = 5099.8856306
delta logL = -0.000789512356278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5099.88484116
delta logL = -6.84440237819e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10314E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2256       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1063       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64529       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=   5099.885     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      248 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    25.644        .64086E-01** at limit **
   2  alpha         1.6458        2.6626        .50000       -.83428E-06
   3  Normalizat    1.1063        .93812E-02    .21196E-03    .77214E-04
   4  Prefactor     .64526        .11495E-01    .33072E-03    .34547E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.64578
  Normalizat = 1.10628
  Prefactor  = 0.645256
 **********
 **   18 **HESSE 
 **********

 FCN=   5099.885     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    569.95        .32094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6458        3.8380        .50000       -.34871    
   3  Normalizat    1.1063        .36192E-01    .42392E-04   -.89550    
   4  Prefactor     .64526        .44350E-01    .13229E-04   -1.0571    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.01068e-07
Minuit parameter uncertainties:
  1  0.000220823
  2  1296.37
  3  0.0361925
  4  0.044352
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/832829': 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): 102
logL (Free Index) = 5099.88483819
delta logL = 2.90160369332e-06

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  2.208e-04  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  1.646e+00  1.296e+03  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:  6.453e-01  4.435e-02  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.106e+00  3.619e-02  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/832829/cmap_HighResolution_253843201_254102401_4FGL_J1023.1+3949_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-05', job_status='DONE', photon_flux_upper_limit='5.62e-08', time_completed='2021-09-01 19:21:46.247108', job_id='832829', GAL2='0.65', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630549306.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='2.90e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='56' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:21:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 832829: <4FGL_J1023.1+3949_daily_bin56> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin56 155.788 39.8226 253843201 254102401 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 :                                   766.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            956 sec.

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

