aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 62 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 = 7470
number of fields = 31
RA_SUN column already exists. File will not be modified.
DDone.


Performing analysis on: 4FGL_J0319.8+1845_daily_bin1680
RA = 49.9722, Dec = 18.7532
tmin = 674784001, tmax = 675043201
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='580688', job_status='RUN', time_executed='2022-05-24 00:24:56.984734', time_epoch_executed='1653377096.98' WHERE source_name='4FGL J0319.8+1845' and cadence='daily' and bin_id='1680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580688

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580688/ft1_4FGL_J0319.8+1845_daily_bin1680.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580688/ft2_4FGL_J0319.8+1845_daily_bin1680.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580688/ft1_4FGL_J0319.8+1845_daily_bin1680.fits outfile=/scratch/kocevski/580688/ft1_filteredMKT_4FGL_J0319.8+1845_daily_bin1680.fits ra=49.9722 dec=18.7532 rad=12.0 tmin=674784001.0 tmax=675043201.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.55
user 3.31
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/580688/ft2_4FGL_J0319.8+1845_daily_bin1680.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/580688/ft2_4FGL_J0319.8+1845_daily_bin1680.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/580688/ft1_filteredMKT_4FGL_J0319.8+1845_daily_bin1680.fits evtable="EVENTS" outfile="/scratch/kocevski/580688/ft1_filtered_4FGL_J0319.8+1845_daily_bin1680.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.50
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 1207

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580688/ft1_filtered_4FGL_J0319.8+1845_daily_bin1680.fits" evtable="EVENTS" scfile=/scratch/kocevski/580688/ft2_4FGL_J0319.8+1845_daily_bin1680.fits sctable="SC_DATA" outfile=/scratch/kocevski/580688/ltcube_674784001_675043201_4FGL_J0319.8+1845_daily_bin1680.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/580688/ft2_4FGL_J0319.8+1845_daily_bin1680.fits
.....................!
real 14.20
user 13.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580688/ft1_filtered_4FGL_J0319.8+1845_daily_bin1680.fits evtable="EVENTS" scfile=/scratch/kocevski/580688/ft2_4FGL_J0319.8+1845_daily_bin1680.fits sctable="SC_DATA" expcube=/scratch/kocevski/580688/ltcube_674784001_675043201_4FGL_J0319.8+1845_daily_bin1680.fits outfile=/scratch/kocevski/580688/expmap_674784001_675043201_4FGL_J0319.8+1845_daily_bin1680.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/580688/ltcube_674784001_675043201_4FGL_J0319.8+1845_daily_bin1680.fits
.....................!
real 193.94
user 188.08
sys 5.43

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

Setting source of interest to:
4FGL J0319.8+1845 @ 49.9722 18.7532

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/580688/ft1_filtered_4FGL_J0319.8+1845_daily_bin1680.fits scfile=/scratch/kocevski/580688/ft2_4FGL_J0319.8+1845_daily_bin1680.fits outfile=/scratch/kocevski/580688/cmap_674784001_675043201_4FGL_J0319.8+1845_daily_bin1680.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=49.9722 yref=18.7532 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 1.19
user 0.36
sys 0.10

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580688/ft1_filtered_4FGL_J0319.8+1845_daily_bin1680.fits scfile=/scratch/kocevski/580688/ft2_4FGL_J0319.8+1845_daily_bin1680.fits outfile=/scratch/kocevski/580688/cmap_HighResolution_674784001_675043201_4FGL_J0319.8+1845_daily_bin1680.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=49.9722 yref=18.7532 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.58
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/580688/ft1_filtered_4FGL_J0319.8+1845_daily_bin1680.fits evtable="EVENTS" scfile=/scratch/kocevski/580688/ft2_4FGL_J0319.8+1845_daily_bin1680.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/580688/Model_4FGL_J0319.8+1845_daily_bin1680.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/580688/ft1_filtered_4FGL_J0319.8+1845_daily_bin1680.fits.....................!
real 198.66
user 196.99
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/580688/ft1_filtered_4FGL_J0319.8+1845_daily_bin1680.fits', '/scratch/kocevski/580688/ft2_4FGL_J0319.8+1845_daily_bin1680.fits', expMap='/scratch/kocevski/580688/expmap_674784001_675043201_4FGL_J0319.8+1845_daily_bin1680.fits', expCube='/scratch/kocevski/580688/ltcube_674784001_675043201_4FGL_J0319.8+1845_daily_bin1680.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/580688/Model_4FGL_J0319.8+1845_daily_bin1680.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0319.8+1845'

4FGL J0319.8+1845
   Spectrum: PowerLaw
297    Prefactor:  1.356e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  6.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/580688/ft1_filtered_4FGL_J0319.8+1845_daily_bin1680.fits
Spacecraft file(s): /scratch/kocevski/580688/ft2_4FGL_J0319.8+1845_daily_bin1680.fits
Exposure map: /scratch/kocevski/580688/expmap_674784001_675043201_4FGL_J0319.8+1845_daily_bin1680.fits
Exposure cube: /scratch/kocevski/580688/ltcube_674784001_675043201_4FGL_J0319.8+1845_daily_bin1680.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/580688/Model_4FGL_J0319.8+1845_daily_bin1680.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) = 13210.0728796

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .69249       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.216       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .61417E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.325       1.0000         .10000E-03   10000.    
     9 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .74423E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7023       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4619       1.0000         .10000E-03   10000.    
    15 'norm      '    1.1587       1.0000         .10000E-03   10000.    
    16 'norm      '    7.8564       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    97.994       1.0000         .10000E-03   10000.    
    19 'Prefactor '    62.578       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97713       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1609       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13210.06     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2210 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0502       -.14220E-07** at limit **
   2  norm          .69271        .52612        .15927E-07   -.11920E-03
   3  Prefactor     .10000E-03    15.144       -.15839E-07** at limit **
   4  norm          .10000E-03    4.3696        .47550E-07** at limit **
   5  Prefactor     19.206        22.037        .34736E-06   -.92503E-04
   6  Prefactor     .10000E-03    12.239        .10340E-06** at limit **
   7  Prefactor     .10031E-03    8.6051        .29491E-05** at limit **
   8  Prefactor     18.325        15.648        .53211E-07   -.21076E-04
   9  norm          .10000E-03    3.4576        .21473E-07** at limit **
  10  norm          .10000E-03    4.3890        .14865E-06** at limit **
  11  Prefactor     .10002E-03    244.02       -.33168E-05** at limit **
  12  Prefactor     2.7016        3.0048        .43775E-07   -.60646E-05
  13  Prefactor     .10000E-03    2.2436       -.14818E-06** at limit **
  14  Prefactor     7.4456        13.459       -.27108E-06   -.41143E-04
  15  norm          1.1548        2.8764        .23048E-05    .41789E-03
  16  norm          7.8585        11.257        .14995E-06    .11490E-05
  17  norm          .10000E-03    6.8337        .55824E-07** at limit **
  18  norm          97.988        81.867       -.85540E-07   -.31889E-04
  19  Prefactor     62.565        45.649        .26604E-06   -.53053E-04
  20  Normalizat    .97721        .25717       -.25053E-05   -.39907E-03
  21  Prefactor     1.1609        .73559E-01   -.23491E-07   -.11216E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.692708
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.2064
  Prefactor  = 0.0001
  Prefactor  = 0.000100307
  Prefactor  = 18.3248
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 2.70158
  Prefactor  = 0.0001
  Prefactor  = 7.44558
  norm       = 1.15482
  norm       = 7.85851
  norm       = 0.0001
  norm       = 97.9881
  Prefactor  = 62.5654
  Normalizat = 0.977208
  Prefactor  = 1.16086  **********
 **   18 **HESSE 
 **********

 FCN=   13210.06     FROM HESSE     STATUS=OK           311 CALLS     2521 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .69271        .50730        .64536E-04   -1.5542    
   3  Prefactor     .10000E-03    15.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.3733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.206        21.807        .91368E-04   -1.4831    
   6  Prefactor     .10000E-03    12.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10031E-03    38.648        .54573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.325        15.645        .93563E-04   -1.4852    
   9  norm          .10000E-03    3.4647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.4271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    246.65        .20945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7016        3.0044        .20456E-03   -1.5379    
  13  Prefactor     .10000E-03    2.2547        .16828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.4456        13.447        .14682E-03   -1.5162    
  15  norm          1.1548        2.9367        .28787E-03   -1.5493    
  16  norm          7.8585        11.266        .14306E-03   -1.5147    
  17  norm          .10000E-03    7.1295        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          97.988        81.777        .40607E-04   -1.3725    
  19  Prefactor     62.565        45.654        .50726E-04   -1.4124    
  20  Normalizat    .97721        .27785        .55143E-03   -.93798    
  21  Prefactor     1.1609        .80723E-01    .15202E-03   -.87545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.23008e-09
Minuit parameter uncertainties:
  1  1.14665e-06
  2  0.507304
  3  1.46212e-05
  4  5.19513e-06
  5  21.8157
  6  2.52681e-05
  7  0.00689136
  8  15.6488
  9  1.34972e-06
  10  1.14857e-05
  11  0.00422989
  12  3.00461
  13  1.27955e-05
  14  13.4527
  15  2.93711
  16  11.2693
  17  5.79837e-06
  18  81.871
  19  45.6798
  20  0.278257
  21  0.0807314Done.

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

Extracting fit parameters...

4FGL J0319.8+1845
   Spectrum: PowerLaw
297    Prefactor:  7.446e+00  1.345e+01  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  6.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.161e+00  8.073e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.772e-01  2.783e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.41
Ra Dec: 49.972 18.753
Photon Flux Upper Limit: 6.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/580717/likelihoodResults_674784001_675043201_4FGL_J0319.8+1845_daily_bin1680.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) = 13209.6100352
delta logL = 0.449658135489

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13209.5873106
delta logL = 0.472382689661

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8358       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5193       1.0000          .0000       10.000    
     3 'Normalizat'    .92291       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1668       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13209.59     FROM MIGRAD    STATUS=FAILED        90 CALLS      301 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8365        122.27        .17746E-03    .25405E-02
   2  Index         2.5193        6.2597        .60886E-02    .74006E-03
   3  Normalizat    .92290        .35679        .56593E-03    .41671E-03
   4  Prefactor     1.1668        .86722E-01    .15166E-03    .15742E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13209.59     FROM SIMPLEX   STATUS=UNCHANGED     96 CALLS      397 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8365        122.27        .99081E-04    .25405E-02
   2  Index         2.5193        6.2597        .57380E-03    .74006E-03
   3  Normalizat    .92290        .35679        .11587E-03    .41671E-03
   4  Prefactor     1.1668        .86722E-01    .33586E-04    .15742E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13209.59     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      437 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8366        6.8374        .70983E-05    .14735E-04
   2  Index         2.5193        .83219        .24355E-03    .57883E-05
   3  Normalizat    .92290        .27643        .22637E-04   -.24508E-04
   4  Prefactor     1.1668        .80495E-01    .30332E-04   -.47976E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.83658
  Index      = 2.51931
  Normalizat = 0.922905
  Prefactor  = 1.16681
 **********
 **   18 **HESSE 
 **********

 FCN=   13209.59     FROM HESSE     STATUS=OK            23 CALLS      460 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8366        6.6644        .14197E-05   -1.5371    
   2  Index         2.5193        .81133        .97418E-05   -.51915    
   3  Normalizat    .92290        .27614        .45275E-05   -.95660    
   4  Prefactor     1.1668        .80455E-01    .60663E-05   -.87359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00919e-12
Minuit parameter uncertainties:
  1  6.66612
  2  0.816128
  3  0.276563
  4  0.0804633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580717': 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) = 13209.5873106
delta logL = 0.472382726113

Extracting fit parameters...

4FGL J0319.8+1845
   Spectrum: PowerLaw
297    Prefactor:  2.837e+00  6.666e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  2.519e+00  8.161e-01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  6.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.167e+00  8.046e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.229e-01  2.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 49.972 18.753
Photon Index (Free Index): 2.52 +/- 0.82
Photon Flux (Free Index): 6.17e-08 +/- 7.38e-08
Energy Flux (Free Index): 1.75e-05 +/- 1.74e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/580717/cmap_HighResolution_674784001_675043201_4FGL_J0319.8+1845_daily_bin1680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-03', comment='SUCCESS', energy_flux2='1.75e-05', dlogl='4.72e-01', photon_flux2='6.17e-08', job_status='DONE', time_completed='2022-05-24 00:42:11.337519', photon_index_error2='0.82', photon_index2='2.52', ts='0.41', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='6.46e-08', energy_flux_error2='1.74e-05', EG='0.98', time_epoch_completed='1653378131.34', return_code='0', job_id='580717', GAL2='1.17', EG2='0.92', return_code2='0', photon_flux_error2='7.38e-08', ts2='1.39', photon_index='1.66' WHERE bin_id='1680' AND source_name='4FGL J0319.8+1845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May 24 00:42:11 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 580688: <4FGL_J0319.8+1845_daily_bin1680> in cluster <slac> Done

Job <4FGL_J0319.8+1845_daily_bin1680> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue May 24 00:05:27 2022
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 00:23:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 00:23:02 2022
Terminated at Tue May 24 00:42:10 2022
Results reported at Tue May 24 00:42:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0319.8+1845_daily_bin1680 49.9722 18.7532 674784001 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0319.8+1845 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1033.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1147 sec.
    Turnaround time :                            2203 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0157>
Subject: Job 580717: <4FGL_J0319.8+1845_daily_bin1680> in cluster <slac> Done

Job <4FGL_J0319.8+1845_daily_bin1680> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue May 24 00:05:29 2022
Job was executed on host(s) <bullet0157>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 00:23:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 00:23:54 2022
Terminated at Tue May 24 00:42:11 2022
Results reported at Tue May 24 00:42:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0319.8+1845_daily_bin1680 49.9722 18.7532 674784001 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0319.8+1845 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1028.41 sec.
    Max Memory :                                 1114 MB
    Average Memory :                             361.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   18691 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1097 sec.
    Turnaround time :                            2202 sec.

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

