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


Performing analysis on: 4FGL_J0319.8+4130_weekly_bin717
RA = 49.9575, Dec = 41.5121
tmin = 672624001, tmax = 673228801
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='368758', job_status='RUN', time_executed='2022-05-03 01:09:32.780999', time_epoch_executed='1651565372.78' WHERE source_name='4FGL J0319.8+4130' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/368758

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/368758/ft1_4FGL_J0319.8+4130_weekly_bin717.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/368758/ft2_4FGL_J0319.8+4130_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/368758/ft1_4FGL_J0319.8+4130_weekly_bin717.fits outfile=/scratch/kocevski/368758/ft1_filteredMKT_4FGL_J0319.8+4130_weekly_bin717.fits ra=49.9575 dec=41.5121 rad=12.0 tmin=672624001.0 tmax=673228801.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.24
user 4.97
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/368758/ft2_4FGL_J0319.8+4130_weekly_bin717.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/368758/ft1_filteredMKT_4FGL_J0319.8+4130_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/368758/ft1_filtered_4FGL_J0319.8+4130_weekly_bin717.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.48
user 0.32
sys 0.15

Number of photons that the gtmktime cut: 769

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/368758/ft1_filtered_4FGL_J0319.8+4130_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/368758/ft2_4FGL_J0319.8+4130_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/368758/ltcube_672624001_673228801_4FGL_J0319.8+4130_weekly_bin717.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/368758/ft2_4FGL_J0319.8+4130_weekly_bin717.fits
.....................!
real 28.03
user 27.63
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/368758/ft1_filtered_4FGL_J0319.8+4130_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/368758/ft2_4FGL_J0319.8+4130_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/368758/ltcube_672624001_673228801_4FGL_J0319.8+4130_weekly_bin717.fits outfile=/scratch/kocevski/368758/expmap_672624001_673228801_4FGL_J0319.8+4130_weekly_bin717.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/368758/ltcube_672624001_673228801_4FGL_J0319.8+4130_weekly_bin717.fits
.....................!
real 156.70
user 152.19
sys 4.00

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/368758/ft1_filtered_4FGL_J0319.8+4130_weekly_bin717.fits scfile=/scratch/kocevski/368758/ft2_4FGL_J0319.8+4130_weekly_bin717.fits outfile=/scratch/kocevski/368758/cmap_672624001_673228801_4FGL_J0319.8+4130_weekly_bin717.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.51
user 0.34
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/368758/ft1_filtered_4FGL_J0319.8+4130_weekly_bin717.fits scfile=/scratch/kocevski/368758/ft2_4FGL_J0319.8+4130_weekly_bin717.fits outfile=/scratch/kocevski/368758/cmap_HighResolution_672624001_673228801_4FGL_J0319.8+4130_weekly_bin717.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.52
user 0.35
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/368758/ft1_filtered_4FGL_J0319.8+4130_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/368758/ft2_4FGL_J0319.8+4130_weekly_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/368758/Model_4FGL_J0319.8+4130_weekly_bin717.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/368758/ft1_filtered_4FGL_J0319.8+4130_weekly_bin717.fits.....................!
real 130.05
user 128.75
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/368758/ft1_filtered_4FGL_J0319.8+4130_weekly_bin717.fits', '/scratch/kocevski/368758/ft2_4FGL_J0319.8+4130_weekly_bin717.fits', expMap='/scratch/kocevski/368758/expmap_672624001_673228801_4FGL_J0319.8+4130_weekly_bin717.fits', expCube='/scratch/kocevski/368758/ltcube_672624001_673228801_4FGL_J0319.8+4130_weekly_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/368758/Model_4FGL_J0319.8+4130_weekly_bin717.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/368758/ft1_filtered_4FGL_J0319.8+4130_weekly_bin717.fits
Spacecraft file(s): /scratch/kocevski/368758/ft2_4FGL_J0319.8+4130_weekly_bin717.fits
Exposure map: /scratch/kocevski/368758/expmap_672624001_673228801_4FGL_J0319.8+4130_weekly_bin717.fits
Exposure cube: /scratch/kocevski/368758/ltcube_672624001_673228801_4FGL_J0319.8+4130_weekly_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/368758/Model_4FGL_J0319.8+4130_weekly_bin717.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) = 7725.50778059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41754       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.4805       1.0000         .10000E-03   10000.    
     3 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18350E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5384       1.0000         .10000E-03   10000.    
     7 'norm      '    23.254       1.0000         .10000E-03   10000.    
     8 'norm      '    .12210E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .95945E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.2328       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0062       1.0000         .10000E-03   10000.    
    13 'norm      '    2.9363       1.0000         .10000E-03   10000.    
    14 'Prefactor '    191.38       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.066       1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10817E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    14.875       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7313       1.0000         .10000E-03   10000.    
    20 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87427       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91078       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=   7725.454     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2426 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41738        .47878       -.24225E-07   -.13898E-03
   2  Prefactor     9.4695        17.283        .67193E-06    .64634E-04
   3  norm          .10000E-03    43.327       -.28551E-05** at limit **
   4  Prefactor     .10000E-03    59.262        .56311E-05** at limit **
   5  Prefactor     .10010E-03    6812.2        .18772E-03** at limit **
   6  Prefactor     3.5352        6.5843        .25382E-05   -.64925E-04
   7  norm          23.249        17.190       -.15926E-06   -.14616E-04
   8  norm          .10000E-03    276.25        .21663E-04** at limit **
   9  Prefactor     .10000E-03    342.65        .34464E-05** at limit **
  10  Prefactor     .10000E-03    142.25       -.14286E-04** at limit **
  11  norm          6.2336        2.3501       -.51490E-07   -.14098E-03
  12  Prefactor     3.0069        5.6184        .29258E-05   -.15586E-03
  13  norm          2.9330        5.9536       -.89779E-06   -.39270E-04
  14  Prefactor     191.41        147.00       -.25895E-05   -.12668E-04
  15  Prefactor     34.062        42.700        .35621E-06    .52602E-04
  16  norm          .10000E-03    47.139       -.13324E-05** at limit **
  17  Prefactor     .10024E-03    1.8274       -.55296E-06** at limit **
  18  norm          14.870        11.988        .96413E-06    .41227E-04
  19  Prefactor     3.7254        8.8510        .26005E-05   -.40155E-04
  20  norm          .10000E-03    3.0438       -.12202E-06** at limit **
  21  Normalizat    .87501        .51381        .30686E-06    .54961E-04
  22  Prefactor     .91075        .68669E-01   -.52801E-06    .31747E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.417377
  Prefactor  = 9.46954
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100098
  Prefactor  = 3.53519
  norm       = 23.2491
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 6.23364
  Prefactor  = 3.00686
  norm       = 2.93297
  Prefactor  = 191.409
  Prefactor  = 34.0617
  norm       = 0.0001
  Prefactor  = 0.000100238
  norm       = 14.8697
  Prefactor  = 3.72536
  norm       = 0.0001
  Normalizat = 0.87501
  Prefactor  = 0.910754
 **********
 **   18 **HESSE 
 **********

 FCN=   7725.454     FROM HESSE     STATUS=OK           356 CALLS     2782 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41738        .46029        .62977E-03   -1.5579    
   2  Prefactor     9.4695        17.166        .13015E-03   -1.5092    
   3  norm          .10000E-03    43.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    59.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10010E-03    6812.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5352        6.5603        .10744E-02   -1.5332    
   7  norm          23.249        17.156        .83065E-04   -1.4743    
   8  norm          .10000E-03    276.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    354.24        .41579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    142.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.2336        2.3329        .78105E-04   -1.5209    
  12  Prefactor     3.0069        5.6081        .11705E-02   -1.5361    
  13  norm          2.9330        5.8378        .23704E-03   -1.5365    
  14  Prefactor     191.41        146.55        .14598E-03   -1.2932    
  15  Prefactor     34.062        42.597        .68657E-04   -1.4540    
  16  norm          .10000E-03    47.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10024E-03    3.2141        .39863E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.870        12.023        .10385E-03   -1.4937    
  19  Prefactor     3.7254        8.8399        .10452E-02   -1.5322    
  20  norm          .10000E-03    3.1404        .29915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .87501        .49404        .87096E-03   -.97344    
  22  Prefactor     .91075        .68691E-01    .12261E-03   -.95766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36285e-10
Minuit parameter uncertainties:
  1  0.460289
  2  17.1747
  3  0.000130116
  4  0.000139319
  5  0.0403871
  6  6.56163
  7  17.16
  8  0.00116867
  9  0.000801445
  10  0.000586675
  11  2.33297
  12  5.60904
  13  5.83897
  14  146.828
  15  42.6352
  16  1.60402e-05
  17  0.00174888
  18  12.0247
  19  8.84303
  20  3.05566e-06
  21  0.49662
  22  0.0686974
Done.

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

Extracting fit parameters...

4FGL J0319.8+4130
   Spectrum: LogParabola
290         norm:  6.234e+00  2.333e+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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.108e-01  6.870e-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:  8.750e-01  4.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.26
Ra Dec: 49.958 41.512
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 5.11e-07 +/- 1.91e-07
Energy Flux (Fixed Index): 2.85e-04 +/- 1.07e-04

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) = 7725.31936195
delta logL = 0.134776234358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7725.30928738
delta logL = 0.144850798109

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2131       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8449       1.0000          .0000       5.0000    
     3 'Normalizat'    .93856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90665       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.

 FCN=   7725.309     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2099        4.6877        .40263E-02    .36821E-03
   2  alpha         1.8447        .61394        .29105        .45084E-04
   3  Normalizat    .93965        .47411        .18963        .17214E-03
   4  Prefactor     .90659        .65279E-01    .27809E-01   -.21289E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.20992
  alpha      = 1.84466
  Normalizat = 0.939648
  Prefactor  = 0.906587
 **********
 **   18 **HESSE 
 **********

 FCN=   7725.309     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2099        2.5046        .83064E-04   -1.5210    
   2  alpha         1.8447        .38232        .10903E-01   -.26524    
   3  Normalizat    .93965        .46122        .84422E-03   -.95081    
   4  Prefactor     .90659        .64543E-01    .12290E-03   -.95911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73028e-10
Minuit parameter uncertainties:
  1  2.50469
  2  0.38394
  3  0.463185
  4  0.0645488
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/368758': 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) = 7725.30928353
delta logL = 0.144854654466

Extracting fit parameters...

4FGL J0319.8+4130
   Spectrum: LogParabola
290         norm:  6.210e+00  2.505e+00  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  1.845e+00  3.839e-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.066e-01  6.455e-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:  9.396e-01  4.632e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.36
Ra Dec: 49.958 41.512
Photon Index (Free Index): 1.84 +/- 0.38
Photon Flux (Free Index): 4.03e-07 +/- 2.52e-07
Energy Flux (Free Index): 3.38e-04 +/- 1.85e-04

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/368758/cmap_HighResolution_672624001_673228801_4FGL_J0319.8+4130_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.11e-07', energy_flux2='3.38e-04', photon_flux_error='1.91e-07', dlogl='1.45e-01', energy_flux='2.85e-04', photon_flux2='4.03e-07', job_status='DONE', time_completed='2022-05-03 01:20:32.495072', photon_index_error2='0.38', photon_index2='1.84', ts='30.26', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.85e-04', EG='0.88', time_epoch_completed='1651566032.5', return_code='0', job_id='368758', GAL2='0.91', EG2='0.94', return_code2='0', energy_flux_error='1.07e-04', photon_flux_error2='2.52e-07', ts2='30.36', photon_index='2.05' WHERE bin_id='717' AND source_name='4FGL J0319.8+4130' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:20:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 368758: <4FGL_J0319.8+4130_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0319.8+4130_weekly_bin717> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue May  3 01:05:19 2022
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:06:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 01:06:15 2022
Terminated at Tue May  3 01:20:33 2022
Results reported at Tue May  3 01:20:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0319.8+4130_weekly_bin717 49.9575 41.5121 672624001 673228801 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 :                                   661.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            914 sec.

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

