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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin150
RA = 125.8, Dec = 40.7077
tmin = 278208001, tmax = 278467201
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='422233', job_status='RUN', time_executed='2021-08-29 17:46:22.895161', time_epoch_executed='1630284382.9' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/422233

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/422233/ft1_4FGL_J0823.1+4042_daily_bin150.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/422233/ft2_4FGL_J0823.1+4042_daily_bin150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/422233/ft1_4FGL_J0823.1+4042_daily_bin150.fits outfile=/scratch/kocevski/422233/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin150.fits ra=125.8 dec=40.7077 rad=12.0 tmin=278208001.0 tmax=278467201.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 5.69
user 5.09
sys 0.51

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/422233/ft1_filtered_4FGL_J0823.1+4042_daily_bin150.fits" evtable="EVENTS" scfile=/scratch/kocevski/422233/ft2_4FGL_J0823.1+4042_daily_bin150.fits sctable="SC_DATA" outfile=/scratch/kocevski/422233/ltcube_278208001_278467201_4FGL_J0823.1+4042_daily_bin150.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/422233/ft2_4FGL_J0823.1+4042_daily_bin150.fits
.....................!
real 11.96
user 11.24
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/422233/ft1_filtered_4FGL_J0823.1+4042_daily_bin150.fits evtable="EVENTS" scfile=/scratch/kocevski/422233/ft2_4FGL_J0823.1+4042_daily_bin150.fits sctable="SC_DATA" expcube=/scratch/kocevski/422233/ltcube_278208001_278467201_4FGL_J0823.1+4042_daily_bin150.fits outfile=/scratch/kocevski/422233/expmap_278208001_278467201_4FGL_J0823.1+4042_daily_bin150.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/422233/ltcube_278208001_278467201_4FGL_J0823.1+4042_daily_bin150.fits
.....................!
real 190.27
user 185.34
sys 4.58

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/422233/ft1_filtered_4FGL_J0823.1+4042_daily_bin150.fits scfile=/scratch/kocevski/422233/ft2_4FGL_J0823.1+4042_daily_bin150.fits outfile=/scratch/kocevski/422233/cmap_278208001_278467201_4FGL_J0823.1+4042_daily_bin150.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.84
user 0.36
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/422233/ft1_filtered_4FGL_J0823.1+4042_daily_bin150.fits scfile=/scratch/kocevski/422233/ft2_4FGL_J0823.1+4042_daily_bin150.fits outfile=/scratch/kocevski/422233/cmap_HighResolution_278208001_278467201_4FGL_J0823.1+4042_daily_bin150.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.85
user 0.36
sys 0.42

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/422233/ft1_filtered_4FGL_J0823.1+4042_daily_bin150.fits', '/scratch/kocevski/422233/ft2_4FGL_J0823.1+4042_daily_bin150.fits', expMap='/scratch/kocevski/422233/expmap_278208001_278467201_4FGL_J0823.1+4042_daily_bin150.fits', expCube='/scratch/kocevski/422233/ltcube_278208001_278467201_4FGL_J0823.1+4042_daily_bin150.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/422233/Model_4FGL_J0823.1+4042_daily_bin150.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/422233/ft1_filtered_4FGL_J0823.1+4042_daily_bin150.fits
Spacecraft file(s): /scratch/kocevski/422233/ft2_4FGL_J0823.1+4042_daily_bin150.fits
Exposure map: /scratch/kocevski/422233/expmap_278208001_278467201_4FGL_J0823.1+4042_daily_bin150.fits
Exposure cube: /scratch/kocevski/422233/ltcube_278208001_278467201_4FGL_J0823.1+4042_daily_bin150.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/422233/Model_4FGL_J0823.1+4042_daily_bin150.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) = 6130.18118562

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1277       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7026       1.0000         .10000E-03   10000.    
     4 'norm      '    .12750E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.2962       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.195       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3625       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3524       1.0000         .10000E-03   10000.    
    11 'Prefactor '    48.811       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12452E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14225E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.1273       1.0000         .10000E-03   10000.    
    17 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    44.822       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5123       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.0214       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.6770       1.0000         .10000E-03   10000.    
    26 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.0798       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .83963       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96659       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.

 FCN=   6130.170     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     3712 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1287        8.4295        .77791E-06   -.77996E-03
   2  Prefactor     .10000E-03    5.1708        .25436E-06** at limit **
   3  Prefactor     6.7036        9.1214       -.33888E-06   -.11528E-04
   4  norm          .10000E-03    4.7611        .40479E-06** at limit **
   5  norm          4.2968        2.7246        .13353E-07   -.75718E-03
   6  Prefactor     .10000E-03    10.076       -.22024E-05** at limit **
   7  Prefactor     14.205        34.918        .11256E-04    .24875E-03
   8  Prefactor     5.3497        5.5329       -.15879E-06   -.15352E-03
   9  norm          .10000E-03    .63609        .39798E-07** at limit **
  10  norm          1.3517        .61986       -.15092E-07   -.59884E-04
  11  Prefactor     48.812        28.173        .63812E-06    .37335E-04
  12  Prefactor     .10000E-03    33.393       -.17749E-05** at limit **
  13  Prefactor     .10000E-03    1.8999        .16729E-06** at limit **
  14  Prefactor     .10000E-03    9.3144        .33851E-05** at limit **
  15  Prefactor     .10000E-03    3.3383       -.11624E-06** at limit **
  16  norm          6.1274        5.6513        .89575E-06   -.17221E-02
  17  norm          .10000E-03    2.1792       -.14210E-06** at limit **
  18  Prefactor     .10000E-03    .92543        .30791E-07** at limit **
  19  Prefactor     44.816        75.280       -.51424E-05   -.69581E-04
  20  Prefactor     5.5127        5.0901        .85912E-06   -.20400E-02
  21  Prefactor     .10000E-03    10.487       -.13620E-05** at limit **
  22  Prefactor     .10000E-03    1.2637       -.30418E-07** at limit **
  23  Prefactor     .10000E-03    6.4109       -.70460E-06** at limit **
  24  norm          1.0211        .83962        .35865E-07    .21748E-03
  25  Prefactor     2.6798        5.3586        .16725E-06   -.10609E-03
  26  norm          .10000E-03    6.4945        .41024E-06** at limit **
  27  Prefactor     2.0801        1.8427        .28238E-07   -.67446E-04
  28  Normalizat    .83958        .16955       -.12289E-05   -.20975E-04
  29  Prefactor     .96657        .13548       -.14010E-06   -.34052E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.12865
  Prefactor  = 0.0001
  Prefactor  = 6.70358
  norm       = 0.000100001
  norm       = 4.29678
  Prefactor  = 0.000100003
  Prefactor  = 14.2047
  Prefactor  = 5.34969
  norm       = 0.0001
  norm       = 1.35173
  Prefactor  = 48.8122
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.12736
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.8158
  Prefactor  = 5.51273
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.02105
  Prefactor  = 2.67978
  norm       = 0.0001
  Prefactor  = 2.08006
  Normalizat = 0.839578
  Prefactor  = 0.966569
 **********
 **   18 **HESSE 
 **********

 FCN=   6130.170     FROM HESSE     STATUS=OK           553 CALLS     4265 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1287        8.9001        .88772E-03   -1.5255    
   2  Prefactor     .10000E-03    5.1871        .17383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.7036        9.1164        .15499E-03   -1.5190    
   4  norm          .10000E-03    15.565        .33155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.2968        2.7465        .50084E-03   -1.5293    
   6  Prefactor     .10000E-03    10.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.205        35.742        .10631E-03   -1.4954    
   8  Prefactor     5.3497        5.4597        .16818E-03   -1.5245    
   9  norm          .10000E-03    .64678        .60979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3517        .61661        .38850E-04   -1.5475    
  11  Prefactor     48.812        28.179        .57397E-04   -1.4310    
  12  Prefactor     .10000E-03    34.404        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.1700        .20265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.3585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3492        .13970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.1274        6.3178        .81095E-03   -1.5213    
  17  norm          .10000E-03    2.1830        .11284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .93595        .73476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     44.816        75.218        .59885E-04   -1.4368    
  20  Prefactor     5.5127        6.0647        .85565E-03   -1.5238    
  21  Prefactor     .10000E-03    10.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.0680        .16984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.4221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.0211        1.0558        .41629E-04   -1.5506    
  25  Prefactor     2.6798        6.8683        .16208E-03   -1.5381    
  26  norm          .10000E-03    6.6139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.0801        1.8288        .96760E-04   -1.5420    
  28  Normalizat    .83958        .19412        .26189E-03   -.98617    
  29  Prefactor     .96657        .15503        .20641E-03   -.93852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.02438e-09
Minuit parameter uncertainties:
  1  8.9024
  2  8.32758e-06
  3  9.11827
  4  0.000221996
  5  2.74662
  6  0.000363399
  7  35.7962
  8  5.46025
  9  6.07888e-07
  10  0.616614
  11  28.1866
  12  0.000103084
  13  3.09166e-05
  14  0.000174107
  15  4.64654e-06
  16  6.31844
  17  1.37816e-06
  18  3.60254e-06
  19  75.3778
  20  6.0654
  21  7.24376e-05
  22  1.50053e-05
  23  2.72816e-05
  24  1.05586
  25  6.8703
  26  2.24197e-05
  27  1.82886
  28  0.194276
  29  0.155104
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.031e-04  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:  9.666e-01  1.551e-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.396e-01  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 125.800 40.708
Photon Flux Upper Limit: 8.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/422233/likelihoodResults_278208001_278467201_4FGL_J0823.1+4042_daily_bin150.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) = 6130.16968891
delta logL = -0.00013870748171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6130.1695272
delta logL = 2.3006250558e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19790E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5985       1.0000          .0000       10.000    
     3 'Normalizat'    .83964       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96652       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=   6129.182     FROM MIGRAD    STATUS=CONVERGED    124 CALLS      284 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16197        1.7480        .53653E-02    .21855E-02
   2  Index         4.8523        2.1810        .11840        .15736E-03
   3  Normalizat    .76627        .38061E-01    .44125E-01    .39301E-04
   4  Prefactor     1.0001        .32139E-01    .45847E-01    .33516E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.161966
  Index      = 4.8523
  Normalizat = 0.766273
  Prefactor  = 1.00012
 **********
 **   18 **HESSE 
 **********

 FCN=   6129.182     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      319 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16197        4.9728        .24408E-03   -1.5627    
   2  Index         4.8523        4.1931        .41676E-02   -.29545E-01
   3  Normalizat    .76627        .14600        .27240E-03   -1.0133    
   4  Prefactor     1.0001        .12140        .20309E-03   -.92725    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.73958e-08
Minuit parameter uncertainties:
  1  1.79452
  2  4.97483
  3  0.146073
  4  0.121432
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/422233': 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) = 6129.18194438
delta logL = 0.98760582586

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.620e-01  1.795e+00  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  4.852e+00  4.975e+00  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.000e+00  1.214e-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:  7.663e-01  1.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 125.800 40.708
Photon Index (Free Index): 4.85 +/- 4.97
Photon Flux (Free Index): 6.55e-08 +/- 4.99e-08
Energy Flux (Free Index): 8.82e-06 +/- 8.23e-06

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/422233/cmap_HighResolution_278208001_278467201_4FGL_J0823.1+4042_daily_bin150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.40e-03', comment='SUCCESS', energy_flux2='8.82e-06', dlogl='9.88e-01', photon_flux2='6.55e-08', job_status='DONE', time_completed='2021-08-29 18:01:12.924963', photon_index_error2='4.97', photon_index2='4.85', ts='-0.00', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='8.26e-08', energy_flux_error2='8.23e-06', EG='0.84', time_epoch_completed='1630285272.93', return_code='0', job_id='422233', GAL2='1.00', EG2='0.77', return_code2='102', photon_flux_error2='4.99e-08', ts2='2.10', photon_index='2.46' WHERE bin_id='150' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:01:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 422233: <4FGL_J0823.1+4042_daily_bin150> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin150> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 17:45:46 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:45:48 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:45:48 2021
Terminated at Sun Aug 29 18:01:13 2021
Results reported at Sun Aug 29 18:01:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin150 125.8 40.7077 278208001 278467201 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 :                                   890.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            927 sec.

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

