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 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 = 17252
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0319.8+4130_weekly_bin715
RA = 49.9575, Dec = 41.5121
tmin = 671414401, tmax = 672019201
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='933825', job_status='RUN', time_executed='2022-04-19 02:23:26.991350', time_epoch_executed='1650360206.99' WHERE source_name='4FGL J0319.8+4130' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933825

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933825/ft1_4FGL_J0319.8+4130_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933825/ft2_4FGL_J0319.8+4130_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933825/ft1_4FGL_J0319.8+4130_weekly_bin715.fits outfile=/scratch/kocevski/933825/ft1_filteredMKT_4FGL_J0319.8+4130_weekly_bin715.fits ra=49.9575 dec=41.5121 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.64
user 7.29
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/933825/ft2_4FGL_J0319.8+4130_weekly_bin715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/933825/ft2_4FGL_J0319.8+4130_weekly_bin715.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/933825/ft1_filteredMKT_4FGL_J0319.8+4130_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/933825/ft1_filtered_4FGL_J0319.8+4130_weekly_bin715.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.57
user 0.38
sys 0.17

Number of photons that the gtmktime cut: 4495

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933825/ft1_filtered_4FGL_J0319.8+4130_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/933825/ft2_4FGL_J0319.8+4130_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/933825/ltcube_671414401_672019201_4FGL_J0319.8+4130_weekly_bin715.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/933825/ft2_4FGL_J0319.8+4130_weekly_bin715.fits
.....................!
real 28.94
user 28.37
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933825/ft1_filtered_4FGL_J0319.8+4130_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/933825/ft2_4FGL_J0319.8+4130_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/933825/ltcube_671414401_672019201_4FGL_J0319.8+4130_weekly_bin715.fits outfile=/scratch/kocevski/933825/expmap_671414401_672019201_4FGL_J0319.8+4130_weekly_bin715.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/933825/ltcube_671414401_672019201_4FGL_J0319.8+4130_weekly_bin715.fits
.....................!
real 191.85
user 186.28
sys 5.21

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
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 166 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0319.8+4130 @ 49.9575 41.5121

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/933825/ft1_filtered_4FGL_J0319.8+4130_weekly_bin715.fits scfile=/scratch/kocevski/933825/ft2_4FGL_J0319.8+4130_weekly_bin715.fits outfile=/scratch/kocevski/933825/cmap_671414401_672019201_4FGL_J0319.8+4130_weekly_bin715.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.9575 yref=41.5121 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.59
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933825/ft1_filtered_4FGL_J0319.8+4130_weekly_bin715.fits scfile=/scratch/kocevski/933825/ft2_4FGL_J0319.8+4130_weekly_bin715.fits outfile=/scratch/kocevski/933825/cmap_HighResolution_671414401_672019201_4FGL_J0319.8+4130_weekly_bin715.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.9575 yref=41.5121 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.61
user 0.44
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/933825/ft1_filtered_4FGL_J0319.8+4130_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/933825/ft2_4FGL_J0319.8+4130_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/933825/Model_4FGL_J0319.8+4130_weekly_bin715.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 G150.3+4.5
adding source GAL_V02
adding source HB 9
Working on...
/scratch/kocevski/933825/ft1_filtered_4FGL_J0319.8+4130_weekly_bin715.fits.....................!
real 797.58
user 794.81
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/933825/ft1_filtered_4FGL_J0319.8+4130_weekly_bin715.fits', '/scratch/kocevski/933825/ft2_4FGL_J0319.8+4130_weekly_bin715.fits', expMap='/scratch/kocevski/933825/expmap_671414401_672019201_4FGL_J0319.8+4130_weekly_bin715.fits', expCube='/scratch/kocevski/933825/ltcube_671414401_672019201_4FGL_J0319.8+4130_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/933825/Model_4FGL_J0319.8+4130_weekly_bin715.xml', optimizer='MINUIT')

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

4FGL J0319.8+4130
   Spectrum: LogParabola
290         norm:  4.545e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  2.046e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  6.489e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  9.526e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/933825/ft1_filtered_4FGL_J0319.8+4130_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/933825/ft2_4FGL_J0319.8+4130_weekly_bin715.fits
Exposure map: /scratch/kocevski/933825/expmap_671414401_672019201_4FGL_J0319.8+4130_weekly_bin715.fits
Exposure cube: /scratch/kocevski/933825/ltcube_671414401_672019201_4FGL_J0319.8+4130_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/933825/Model_4FGL_J0319.8+4130_weekly_bin715.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) = 44003.4968234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .43227       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7109       1.0000         .10000E-03   10000.    
     3 'norm      '    17.794       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .49451       1.0000         .10000E-03   10000.    
     7 'norm      '    5.3131       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4614       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.610       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9965       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10968E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .43772       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.8337       1.0000         .10000E-03   10000.    
    16 'norm      '    25.379       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .45803       1.0000         .10000E-03   10000.    
    18 'norm      '    10.820       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2406       1.0000         .10000E-03   10000.    
    20 'norm      '    .70938       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3659       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96274       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   44003.50     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     3173 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .43229        .16637       -.20776E-08   -.19970E-03
   2  Prefactor     3.7120        2.3602        .38762E-06   -.38923E-02
   3  norm          17.794        4.9862       -.22550E-07    .86501E-05
   4  Prefactor     .10000E-03    7.5352       -.28255E-07** at limit **
   5  Prefactor     .10000E-03    14.510       -.31047E-07** at limit **
   6  Prefactor     .49473        1.0086        .15463E-06   -.12816E-02
   7  norm          5.3130        2.3812        .99841E-07   -.30317E-02
   8  norm          .10000E-03    2.8940       -.13211E-07** at limit **
   9  Prefactor     9.4622        6.8357       -.86747E-07    .54350E-04
  10  Prefactor     19.610        19.699        .20565E-06    .13867E-04
  11  norm          1.9965        .40028        .10610E-07    .50261E-03
  12  Prefactor     .10000E-03    .16903        .43005E-07** at limit **
  13  norm          .43761        .79038        .53996E-07   -.81913E-03
  14  Prefactor     .10000E-03    45.582        .12316E-05** at limit **
  15  Prefactor     7.8471        18.835        .90184E-05    .47848E-03
  16  norm          25.393        33.815        .16334E-04    .39236E-03
  17  Prefactor     .45699        .99533       -.15271E-05    .23957E-02
  18  norm          10.820        6.2199       -.30959E-06    .45576E-03
  19  Prefactor     5.2408        3.7575        .10023E-06    .15243E-03
  20  norm          .70246        1.1995        .85984E-07   -.26686E-03
  21  Normalizat    1.3658        .14791        .27889E-07    .42191E-03
  22  Prefactor     .96276        .29087E-01   -.35362E-06    .32968E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.432286
  Prefactor  = 3.712
  norm       = 17.7938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.494732
  norm       = 5.31304
  norm       = 0.0001
  Prefactor  = 9.46223
  Prefactor  = 19.6103
  norm       = 1.99648
  Prefactor  = 0.0001
  norm       = 0.437614
  Prefactor  = 0.0001
  Prefactor  = 7.84712
  norm       = 25.3933
  Prefactor  = 0.456989
  norm       = 10.8203
  Prefactor  = 5.24077
  norm       = 0.702456
  Normalizat = 1.36577
  Prefactor  = 0.962763
 **********
 **   18 **HESSE 
 **********

 FCN=   44003.50     FROM HESSE     STATUS=OK           358 CALLS     3531 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .43229        .16491        .51324E-04   -1.5576    
   2  Prefactor     3.7120        4.3138        .10482E-02   -1.5323    
   3  norm          17.794        5.2640        .94947E-04   -1.4864    
   4  Prefactor     .10000E-03    7.5427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .49473        1.0039        .29604E-03   -1.5567    
   7  norm          5.3130        2.5256        .87181E-03   -1.5247    
   8  norm          .10000E-03    2.8964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.4622        6.8527        .13029E-03   -1.5093    
  10  Prefactor     19.610        19.748        .90446E-04   -1.4822    
  11  norm          1.9965        .40111        .53480E-04   -1.5425    
  12  Prefactor     .10000E-03    2.7749        .16124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .43761        1.0920        .23495E-02   -1.5576    
  14  Prefactor     .10000E-03    45.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.8471        19.034        .14326E-03   -1.5148    
  16  norm          25.393        34.479        .79517E-04   -1.4700    
  17  Prefactor     .45699        3.1184        .25921E-02   -1.5573    
  18  norm          10.820        6.2264        .12180E-03   -1.5050    
  19  Prefactor     5.2408        3.7565        .17559E-03   -1.5250    
  20  norm          .70246        2.3425        .28754E-02   -1.5540    
  21  Normalizat    1.3658        .15739        .58115E-03   -.81624    
  22  Prefactor     .96276        .31010E-01    .13421E-03   -.93981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39606e-07
Minuit parameter uncertainties:
  1  0.16491
  2  4.31415
  3  5.26417
  4  3.4488e-08
  5  3.1173e-06
  6  1.00398
  7  2.5257
  8  6.94533e-07
  9  6.85327
  10  19.7548
  11  0.401114
  12  9.03321e-07
  13  1.09204
  14  5.31289e-05
  15  19.0485
  16  34.5057
  17  2.38746
  18  6.22673
  19  3.75667
  20  2.34283
  21  0.157445
  22  0.0310107
Done.

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

Extracting fit parameters...

4FGL J0319.8+4130
   Spectrum: LogParabola
290         norm:  1.996e+00  4.011e-01  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  2.046e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  6.489e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  9.526e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.628e-01  3.101e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.366e+00  1.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 88.27
Ra Dec: 49.958 41.512
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.64e-07 +/- 3.29e-08
Energy Flux (Fixed Index): 9.12e-05 +/- 1.83e-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) = 44003.1176575
delta logL = 0.377495337583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 44003.1151712
delta logL = 0.379981643389

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8809       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2029       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96495       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+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=   44003.12     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      269 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8809        .39190        .49900E-04    .41192E-04
   2  alpha         2.2029        .18409        .10477E-01    .50532E-04
   3  Normalizat    1.3392        .14748        .58575E-03    .47823E-05
   4  Prefactor     .96495        .28640E-01    .13406E-03   -.20353E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.88086
  alpha      = 2.2029
  Normalizat = 1.33916
  Prefactor  = 0.964949
 **********
 **   18 **HESSE 
 **********

 FCN=   44003.12     FROM HESSE     STATUS=OK            27 CALLS      296 TOTAL
                     EDM=   .12E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8809        .38381        .99800E-05   -1.5434    
   2  alpha         2.2029        .18009        .41908E-03   -.11912    
   3  Normalizat    1.3392        .14740        .11715E-03   -.82405    
   4  Prefactor     .96495        .28639E-01    .26812E-04   -.93907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23593e-14
Minuit parameter uncertainties:
  1  0.383811
  2  0.180251
  3  0.147449
  4  0.0286392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933825': 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) = 44003.1151712
delta logL = 0.379981647515

Extracting fit parameters...

4FGL J0319.8+4130
   Spectrum: LogParabola
290         norm:  1.881e+00  3.838e-01  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  2.203e+00  1.803e-01  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  6.489e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  9.526e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.649e-01  2.864e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.339e+00  1.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 89.51
Ra Dec: 49.958 41.512
Photon Index (Free Index): 2.20 +/- 0.18
Photon Flux (Free Index): 1.89e-07 +/- 4.47e-08
Energy Flux (Free Index): 8.15e-05 +/- 1.75e-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/933825/cmap_HighResolution_671414401_672019201_4FGL_J0319.8+4130_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.64e-07', energy_flux2='8.15e-05', photon_flux_error='3.29e-08', dlogl='3.80e-01', energy_flux='9.12e-05', photon_flux2='1.89e-07', job_status='DONE', time_completed='2022-04-19 03:18:23.271191', photon_index_error2='0.18', photon_index2='2.20', ts='88.27', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.37', time_epoch_completed='1650363503.27', return_code='0', job_id='933825', GAL2='0.96', EG2='1.34', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='4.47e-08', ts2='89.51', photon_index='2.05' WHERE bin_id='715' AND source_name='4FGL J0319.8+4130' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:18:23 PDT 2022



------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 930128: <4FGL_J0319.8+4130_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0319.8+4130_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:05:43 2022
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:10:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:10:02 2022
Terminated at Tue Apr 19 03:09:13 2022
Results reported at Tue Apr 19 03:09:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0319.8+4130_weekly_bin715 49.9575 41.5121 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0319.8+4130 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3302.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             388.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3551 sec.
    Turnaround time :                            11010 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0183>
Subject: Job 933825: <4FGL_J0319.8+4130_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0319.8+4130_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:16:36 2022
Job was executed on host(s) <bullet0183>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:21:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:21:43 2022
Terminated at Tue Apr 19 03:18:24 2022
Results reported at Tue Apr 19 03:18:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0319.8+4130_weekly_bin715 49.9575 41.5121 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0319.8+4130 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3288.81 sec.
    Max Memory :                                 629 MB
    Average Memory :                             408.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2940 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   3400 sec.
    Turnaround time :                            10908 sec.

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

