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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin201
RA = 125.8, Dec = 40.7077
tmin = 291427201, tmax = 291686401
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='423577', job_status='RUN', time_executed='2021-08-29 17:52:21.551695', time_epoch_executed='1630284741.55' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='201'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/423577

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/423577/ft1_4FGL_J0823.1+4042_daily_bin201.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/423577/ft2_4FGL_J0823.1+4042_daily_bin201.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/423577/ft1_4FGL_J0823.1+4042_daily_bin201.fits outfile=/scratch/kocevski/423577/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin201.fits ra=125.8 dec=40.7077 rad=12.0 tmin=291427201.0 tmax=291686401.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.79
user 3.27
sys 0.44

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/423577/ft2_4FGL_J0823.1+4042_daily_bin201.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/423577/ft2_4FGL_J0823.1+4042_daily_bin201.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/423577/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin201.fits evtable="EVENTS" outfile="/scratch/kocevski/423577/ft1_filtered_4FGL_J0823.1+4042_daily_bin201.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 1.03
user 0.32
sys 0.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/423577/ft1_filtered_4FGL_J0823.1+4042_daily_bin201.fits" evtable="EVENTS" scfile=/scratch/kocevski/423577/ft2_4FGL_J0823.1+4042_daily_bin201.fits sctable="SC_DATA" outfile=/scratch/kocevski/423577/ltcube_291427201_291686401_4FGL_J0823.1+4042_daily_bin201.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/423577/ft2_4FGL_J0823.1+4042_daily_bin201.fits
.....................!
real 12.89
user 12.20
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/423577/ft1_filtered_4FGL_J0823.1+4042_daily_bin201.fits evtable="EVENTS" scfile=/scratch/kocevski/423577/ft2_4FGL_J0823.1+4042_daily_bin201.fits sctable="SC_DATA" expcube=/scratch/kocevski/423577/ltcube_291427201_291686401_4FGL_J0823.1+4042_daily_bin201.fits outfile=/scratch/kocevski/423577/expmap_291427201_291686401_4FGL_J0823.1+4042_daily_bin201.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/423577/ltcube_291427201_291686401_4FGL_J0823.1+4042_daily_bin201.fits
.....................!
real 193.13
user 187.11
sys 5.30

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 198 point sources and 0 extended sources

Setting source of interest to:
4FGL J0823.1+4042 @ 125.8 40.7077

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/423577/ft1_filtered_4FGL_J0823.1+4042_daily_bin201.fits scfile=/scratch/kocevski/423577/ft2_4FGL_J0823.1+4042_daily_bin201.fits outfile=/scratch/kocevski/423577/cmap_291427201_291686401_4FGL_J0823.1+4042_daily_bin201.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=125.8 yref=40.7077 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.81
user 0.37
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/423577/ft1_filtered_4FGL_J0823.1+4042_daily_bin201.fits scfile=/scratch/kocevski/423577/ft2_4FGL_J0823.1+4042_daily_bin201.fits outfile=/scratch/kocevski/423577/cmap_HighResolution_291427201_291686401_4FGL_J0823.1+4042_daily_bin201.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=125.8 yref=40.7077 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.91
user 0.38
sys 0.34

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/423577/ft1_filtered_4FGL_J0823.1+4042_daily_bin201.fits evtable="EVENTS" scfile=/scratch/kocevski/423577/ft2_4FGL_J0823.1+4042_daily_bin201.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/423577/Model_4FGL_J0823.1+4042_daily_bin201.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/423577/ft1_filtered_4FGL_J0823.1+4042_daily_bin201.fits.....................!
real 59.66
user 57.73
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/423577/ft1_filtered_4FGL_J0823.1+4042_daily_bin201.fits', '/scratch/kocevski/423577/ft2_4FGL_J0823.1+4042_daily_bin201.fits', expMap='/scratch/kocevski/423577/expmap_291427201_291686401_4FGL_J0823.1+4042_daily_bin201.fits', expCube='/scratch/kocevski/423577/ltcube_291427201_291686401_4FGL_J0823.1+4042_daily_bin201.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/423577/Model_4FGL_J0823.1+4042_daily_bin201.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0823.1+4042'

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  2.674e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.456e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/423577/ft1_filtered_4FGL_J0823.1+4042_daily_bin201.fits
Spacecraft file(s): /scratch/kocevski/423577/ft2_4FGL_J0823.1+4042_daily_bin201.fits
Exposure map: /scratch/kocevski/423577/expmap_291427201_291686401_4FGL_J0823.1+4042_daily_bin201.fits
Exposure cube: /scratch/kocevski/423577/ltcube_291427201_291686401_4FGL_J0823.1+4042_daily_bin201.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/423577/Model_4FGL_J0823.1+4042_daily_bin201.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) = 6316.52849648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8351       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .19961       1.0000         .10000E-03   10000.    
     5 'norm      '    4.2247       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.826       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.499       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3227       1.0000         .10000E-03   10000.    
     9 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2758       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.612       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.953       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .70406E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9699       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0865       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.7422       1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.352       1.0000         .10000E-03   10000.    
    24 'norm      '    .64944       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .67318       1.0000         .10000E-03   10000.    
    26 'norm      '    .10180E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.5881       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .86730       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0268       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6330E+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=   6316.447     FROM MIGRAD    STATUS=CONVERGED   1366 CALLS     3861 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8330        13.350        .30801E-03    .47392E-04
   2  Prefactor     .10000E-03    11.976        .18142E-02** at limit **
   3  Prefactor     .10000E-03    9.0619        .18142E-02** at limit **
   4  norm          .17446        15.644        .69008E-01    .33469E-04
   5  norm          4.2250        2.9511        .10983E-03    .94196E-04
   6  Prefactor     11.840        11.145        .11649E-03    .25472E-04
   7  Prefactor     26.328        55.615        .77822E-04   -.66469E-04
   8  Prefactor     2.3234        4.0270        .19770E-03    .13358E-03
   9  norm          .10000E-03    1.7766        .15857E-02** at limit **
  10  norm          1.2759        .65675        .43606E-04   -.40150E-03
  11  Prefactor     28.609        25.580        .74899E-04   -.28839E-05
  12  Prefactor     15.948        11.831        .10028E-03    .28684E-04
  13  Prefactor     .10000E-03    1.0429        .78684E-03** at limit **
  14  Prefactor     .10000E-03    12.511        .18142E-02** at limit **
  15  Prefactor     .10000E-03    5.0898        .17459E-02** at limit **
  16  norm          .10074E-03    5.7289        .53535E-01** at limit **
  17  norm          .10000E-03    1.8305        .10498E-02** at limit **
  18  Prefactor     4.9713        3.0261        .10085E-03   -.14362E-03
  19  Prefactor     .10000E-03    54.386        .18142E-02** at limit **
  20  Prefactor     5.0863        3.7607        .12906E-03   -.76636E-05
  21  Prefactor     .10000E-03    23.752        .18142E-02** at limit **
  22  Prefactor     3.7428        3.6127        .12850E-03   -.58039E-04
  23  Prefactor     29.365        20.890        .73951E-04   -.41508E-05
  24  norm          .64955        .65379        .47319E-04   -.34717E-03
  25  Prefactor     .67171        8.2574        .23809E-02   -.46576E-03
  26  norm          .10000E-03    8.9946        .18142E-02** at limit **
  27  Prefactor     1.5869        3.6586        .19465E-03    .16243E-03
  28  Normalizat    .86724        .21307        .27666E-03   -.13281E-03
  29  Prefactor     1.0270        .16326        .21123E-03    .21424E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.83302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.174464
  norm       = 4.22495
  Prefactor  = 11.8396
  Prefactor  = 26.3277
  Prefactor  = 2.32339
  norm       = 0.0001
  norm       = 1.27589
  Prefactor  = 28.6094
  Prefactor  = 15.9481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100743
  norm       = 0.0001
  Prefactor  = 4.97133
  Prefactor  = 0.0001
  Prefactor  = 5.08633
  Prefactor  = 0.0001
  Prefactor  = 3.74276
  Prefactor  = 29.3654
  norm       = 0.649553
  Prefactor  = 0.671705
  norm       = 0.0001
  Prefactor  = 1.58689
  Normalizat = 0.867238
  Prefactor  = 1.02699
 **********
 **   18 **HESSE 
 **********

 FCN=   6316.447     FROM HESSE     STATUS=OK           545 CALLS     4406 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8330        13.345        .12321E-04   -1.5437    
   2  Prefactor     .10000E-03    11.979        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.0627        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .17446        13.068        .77508E-01   -1.5624    
   5  norm          4.2250        2.9509        .43932E-05   -1.5297    
   6  Prefactor     11.840        11.142        .46596E-05   -1.5020    
   7  Prefactor     26.328        55.596        .15564E-04   -1.4681    
   8  Prefactor     2.3234        4.0261        .79080E-05   -1.5403    
   9  norm          .10000E-03    1.7810        .31714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2759        .65669        .17442E-05   -1.5482    
  11  Prefactor     28.609        25.580        .29960E-05   -1.4638    
  12  Prefactor     15.948        11.830        .40110E-05   -1.4909    
  13  Prefactor     .10000E-03    1.0429        .15737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.512        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.0908        .34919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10074E-03    5.5712        .54663E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.8305        .20995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.9713        3.0218        .40339E-05   -1.5262    
  19  Prefactor     .10000E-03    54.388        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.0863        3.7606        .51625E-05   -1.5257    
  21  Prefactor     .10000E-03    23.753        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.7428        3.6103        .51399E-05   -1.5321    
  23  Prefactor     29.365        20.882        .29580E-05   -1.4624    
  24  norm          .64955        .63096        .18927E-05   -1.5547    
  25  Prefactor     .67171        7.5931        .95237E-04   -1.5544    
  26  norm          .10000E-03    8.9963        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.5869        3.6481        .77858E-05   -1.5456    
  28  Normalizat    .86724        .21273        .11066E-04   -.97621    
  29  Prefactor     1.0270        .16322        .42246E-04   -.91835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40699e-07
Minuit parameter uncertainties:
  1  9.89461
  2  3.94186e-05
  3  1.48624e-05
  4  3.01968
  5  2.95099
  6  11.1441
  7  55.7055
  8  4.02653
  9  3.1167e-07
  10  0.656697
  11  25.5897
  12  11.832
  13  6.32962e-06
  14  1.72517e-05
  15  1.78623e-05
  16  0.00406888
  17  3.27871e-06
  18  3.02185
  19  0.000233332
  20  3.7608
  21  2.57026e-05
  22  3.6105
  23  20.8872
  24  0.630965
  25  4.51715
  26  4.84675e-05
  27  3.64858
  28  0.212934
  29  0.163303
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.595e+01  1.183e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.456e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
630    Prefactor:  1.027e+00  1.633e-01  0.000e+00  1.000e+01 ( 1.000e+00)
631        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
632        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
629   Normalization:  8.672e-01  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.20
Ra Dec: 125.800 40.708
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 4.64e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.05e-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) = 6316.38323197
delta logL = 0.0640280679418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6316.38110271
delta logL = 0.0661573215821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.973       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2043       1.0000          .0000       10.000    
     3 'Normalizat'    .87788       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0217       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6316.381     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      239 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.991        453.93        .22405E-02    .83013E-05
   2  Index         2.2049        5.8402        .14484        .79669E-04
   3  Normalizat    .87799        .13060        .44618E-01    .18250E-04
   4  Prefactor     1.0216        .68156E-01    .41973E-01    .13746E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.991
  Index      = 2.2049
  Normalizat = 0.877988
  Prefactor  = 1.02161
 **********
 **   18 **HESSE 
 **********

 FCN=   6316.381     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .51E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.991        18.167        .89620E-04   -1.4813    
   2  Index         2.2049        .68768        .85393E-02   -.59320    
   3  Normalizat    .87799        .19352        .27516E-03   -.97238    
   4  Prefactor     1.0216        .15862        .21172E-03   -.92013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.06162e-12
Minuit parameter uncertainties:
  1  18.172
  2  0.690869
  3  0.193674
  4  0.158691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/423577': 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) = 6316.38110033
delta logL = 0.0661597069948

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.999e+01  1.817e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.205e+00  6.909e-01  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  1.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
630    Prefactor:  1.022e+00  1.587e-01  0.000e+00  1.000e+01 ( 1.000e+00)
631        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
632        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
629   Normalization:  8.780e-01  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.34
Ra Dec: 125.800 40.708
Photon Index (Free Index): 2.20 +/- 0.69
Photon Flux (Free Index): 3.79e-08 +/- 3.67e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.68e-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/423577/cmap_HighResolution_291427201_291686401_4FGL_J0823.1+4042_daily_bin201.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.64e-08', energy_flux2='1.69e-05', photon_flux_error='3.44e-08', dlogl='6.62e-02', energy_flux='1.42e-05', photon_flux2='3.79e-08', job_status='DONE', time_completed='2021-08-29 18:05:45.849003', photon_index_error2='0.69', photon_index2='2.20', ts='4.20', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.68e-05', EG='0.87', time_epoch_completed='1630285545.85', return_code='0', job_id='423577', GAL2='1.02', EG2='0.88', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='3.67e-08', ts2='4.34', photon_index='2.46' WHERE bin_id='201' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:05:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 423577: <4FGL_J0823.1+4042_daily_bin201> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin201> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 17:50:25 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:50:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 17:50:27 2021
Terminated at Sun Aug 29 18:05:46 2021
Results reported at Sun Aug 29 18:05:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin201 125.8 40.7077 291427201 291686401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0823.1+4042 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   803.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

