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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin93
RA = 155.788, Dec = 39.8226
tmin = 263433601, tmax = 263692801
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='832891', job_status='RUN', time_executed='2021-09-01 19:08:58.499990', time_epoch_executed='1630548538.5' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/832891

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/832891/ft1_4FGL_J1023.1+3949_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/832891/ft2_4FGL_J1023.1+3949_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/832891/ft1_4FGL_J1023.1+3949_daily_bin93.fits outfile=/scratch/kocevski/832891/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin93.fits ra=155.788 dec=39.8226 rad=12.0 tmin=263433601.0 tmax=263692801.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 3.47
user 3.27
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/832891/ft1_filtered_4FGL_J1023.1+3949_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/832891/ft2_4FGL_J1023.1+3949_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/832891/ltcube_263433601_263692801_4FGL_J1023.1+3949_daily_bin93.fits outfile=/scratch/kocevski/832891/expmap_263433601_263692801_4FGL_J1023.1+3949_daily_bin93.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/832891/ltcube_263433601_263692801_4FGL_J1023.1+3949_daily_bin93.fits
.....................!
real 191.22
user 186.67
sys 4.10

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/832891/ft1_filtered_4FGL_J1023.1+3949_daily_bin93.fits scfile=/scratch/kocevski/832891/ft2_4FGL_J1023.1+3949_daily_bin93.fits outfile=/scratch/kocevski/832891/cmap_263433601_263692801_4FGL_J1023.1+3949_daily_bin93.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.53
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/832891/ft1_filtered_4FGL_J1023.1+3949_daily_bin93.fits scfile=/scratch/kocevski/832891/ft2_4FGL_J1023.1+3949_daily_bin93.fits outfile=/scratch/kocevski/832891/cmap_HighResolution_263433601_263692801_4FGL_J1023.1+3949_daily_bin93.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/832891/ft1_filtered_4FGL_J1023.1+3949_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/832891/ft2_4FGL_J1023.1+3949_daily_bin93.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/832891/Model_4FGL_J1023.1+3949_daily_bin93.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/832891/ft1_filtered_4FGL_J1023.1+3949_daily_bin93.fits.....................!
real 43.39
user 41.95
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.6624       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10709E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .50050       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.6179       1.0000         .10000E-03   10000.    
    14 'norm      '    17.066       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0065       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    165.85       1.0000         .10000E-03   10000.    
    23 'norm      '    .58318       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .41714E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0844       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0513       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=   4600.250     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     3470 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.9118       -.11646E-07** at limit **
   2  Prefactor     .10000E-03    2.5561       -.89975E-07** at limit **
   3  norm          .10000E-03    5.5683        .15543E-06** at limit **
   4  Prefactor     .10000E-03    58.598       -.39666E-05** at limit **
   5  Prefactor     .10000E-03    44.260        .21035E-05** at limit **
   6  Prefactor     .10000E-03    4.5633        .10177E-06** at limit **
   7  norm          5.6565        14.001       -.12751E-05    .76660E-04
   8  Prefactor     .10003E-03    90.673       -.39457E-04** at limit **
   9  Prefactor     .50073        1.6154       -.21002E-05   -.45047E-04
  10  Prefactor     .10000E-03    3.2834        .58661E-06** at limit **
  11  Prefactor     .10000E-03    23.846       -.33910E-05** at limit **
  12  norm          .10000E-03    2.7466       -.11054E-06** at limit **
  13  Prefactor     9.6184        6.3848       -.48906E-07    .16640E-03
  14  norm          17.065        14.492       -.32264E-06    .23738E-03
  15  Prefactor     .10000E-03    29.566        .10523E-05** at limit **
  16  Prefactor     .10000E-03    33.390        .34317E-05** at limit **
  17  Prefactor     4.0050        4.2588       -.69718E-06    .17403E-03
  18  Prefactor     .10000E-03    3.4467        .11507E-06** at limit **
  19  Prefactor     .10000E-03    72.388       -.45208E-05** at limit **
  20  Prefactor     .10000E-03    65.956       -.44485E-05** at limit **
  21  Prefactor     .10000E-03    13.773       -.86100E-06** at limit **
  22  Prefactor     165.85        123.92        .54816E-06    .33393E-04
  23  norm          .58320        .26888        .65729E-07    .71107E-03
  24  Prefactor     .10017E-03    19.356        .12935E-04** at limit **
  25  Prefactor     .10000E-03    15.469        .15056E-05** at limit **
  26  norm          .10000E-03    5.5834       -.20926E-06** at limit **
  27  Normalizat    1.0843        .19766        .84376E-06    .61336E-03
  28  Prefactor     1.0513        .24205       -.19362E-06    .35390E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.65651
  Prefactor  = 0.000100035
  Prefactor  = 0.500725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.61837
  norm       = 17.0651
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.005
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 165.846
  norm       = 0.583195
  Prefactor  = 0.00010017
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.08433
  Prefactor  = 1.05132
 **********
 **   18 **HESSE 
 **********

 FCN=   4600.250     FROM HESSE     STATUS=OK           509 CALLS     3979 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.9607        .17413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6221        .21163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.5701        .15633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    59.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    44.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.5839        .14150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.6565        13.897        .16881E-03   -1.5232    
   8  Prefactor     .10003E-03    98.756        .31860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .50073        1.6240        .15535E-02   -1.5566    
  10  Prefactor     .10000E-03    3.3511        .23887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.8364        .21928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.6184        6.3686        .12922E-03   -1.5088    
  14  norm          17.065        14.467        .96950E-04   -1.4882    
  15  Prefactor     .10000E-03    29.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    33.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.0050        4.2545        .13755E-03   -1.5308    
  18  Prefactor     .10000E-03    3.4667        .12289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    72.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    66.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     165.85        123.94        .31321E-04   -1.3125    
  23  norm          .58320        .26355        .22706E-04   -1.5555    
  24  Prefactor     .10017E-03    83.753        .41202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    5.5966        .15653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0843        .23146        .22827E-03   -.90257    
  28  Prefactor     1.0513        .28530        .29104E-03   -.91038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10941e-08
Minuit parameter uncertainties:
  1  5.4609e-07
  2  2.27519e-06
  3  5.54434e-06
  4  7.21348e-05
  5  0.000193377
  6  8.18394e-06
  7  13.9052
  8  0.00371761
  9  1.62417
  10  1.41547e-05
  11  4.60961e-05
  12  5.29395e-06
  13  6.36909
  14  14.47
  15  6.31019e-05
  16  0.000320334
  17  4.25486
  18  1.9409e-05
  19  0.000545255
  20  0.000368727
  21  3.20581e-05
  22  124.138
  23  0.263552
  24  0.00755068
  25  2.13543e-05
  26  4.06922e-06
  27  0.231676
  28  0.285716
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.707e+01  1.447e+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:  1.051e+00  2.857e-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.084e+00  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.09
Ra Dec: 155.788 39.823
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 4.86e-08 +/- 4.12e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.44e-05

TS (Fixed Index): 2.09
Ra Dec: 155.788 39.823
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/832891/likelihoodResults_263433601_263692801_4FGL_J1023.1+3949_daily_bin93.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) = 4600.02496535
delta logL = 0.225317128922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4600.01622344
delta logL = 0.234059034611

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.226       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8523       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0840       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=   4600.016     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      306 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.251        15.584        .53096E-03   -.32331E-05
   2  alpha         2.8542        1.0062        .15260E-01    .11356E-03
   3  Normalizat    1.0493        .23347        .23143E-03   -.28835E-04
   4  Prefactor     1.0829        .28936        .28731E-03   -.20655E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.2512
  alpha      = 2.85423
  Normalizat = 1.0493
  Prefactor  = 1.08288
 **********
 **   18 **HESSE 
 **********

 FCN=   4600.016     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.251        14.578        .21239E-04   -1.4953    
   2  alpha         2.8542        .94396        .30519E-02    .14217    
   3  Normalizat    1.0493        .23346        .92572E-05   -.91397    
   4  Prefactor     1.0829        .28916        .11492E-04   -.90016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04897e-12
Minuit parameter uncertainties:
  1  14.5814
  2  0.968497
  3  0.23369
  4  0.289583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/832891': 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) = 4600.01620228
delta logL = 0.234080199395

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.425e+01  1.458e+01  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.854e+00  9.685e-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:  1.083e+00  2.896e-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.049e+00  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.60
Ra Dec: 155.788 39.823
Photon Index (Free Index): 2.85 +/- 0.97
Photon Flux (Free Index): 7.26e-08 +/- 5.93e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.22e-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/832891/cmap_HighResolution_263433601_263692801_4FGL_J1023.1+3949_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-05', comment='SUCCESS', photon_flux='4.86e-08', energy_flux2='1.60e-05', photon_flux_error='4.12e-08', dlogl='2.34e-01', energy_flux='1.70e-05', photon_flux2='7.26e-08', job_status='DONE', time_completed='2021-09-01 19:21:02.420265', photon_index_error2='0.97', photon_index2='2.85', ts='2.09', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.22e-05', EG='1.08', time_epoch_completed='1630549262.42', return_code='0', job_id='832891', GAL2='1.08', EG2='1.05', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='5.93e-08', ts2='2.60', photon_index='2.25' WHERE bin_id='93' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:21:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 832891: <4FGL_J1023.1+3949_daily_bin93> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin93 155.788 39.8226 263433601 263692801 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 :                                   723.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            907 sec.

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

