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 21 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0039.1+4330_daily_bin1780
RA = 9.7994, Dec = 43.5122
tmin = 700704001, tmax = 700963201
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='49027', job_status='RUN', time_executed='2023-03-20 00:05:26.339468', time_epoch_executed='1679295926.34' WHERE source_name='4FGL J0039.1+4330' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49027

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49027/ft1_4FGL_J0039.1+4330_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49027/ft2_4FGL_J0039.1+4330_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49027/ft1_4FGL_J0039.1+4330_daily_bin1780.fits outfile=/scratch/kocevski/49027/ft1_filteredMKT_4FGL_J0039.1+4330_daily_bin1780.fits ra=9.7994 dec=43.5122 rad=12.0 tmin=700704001.0 tmax=700963201.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 4.21
user 3.90
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/49027/ft2_4FGL_J0039.1+4330_daily_bin1780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/49027/ft2_4FGL_J0039.1+4330_daily_bin1780.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/49027/ft1_filteredMKT_4FGL_J0039.1+4330_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/49027/ft1_filtered_4FGL_J0039.1+4330_daily_bin1780.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.60
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 513

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/49027/ft1_filtered_4FGL_J0039.1+4330_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/49027/ft2_4FGL_J0039.1+4330_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/49027/ltcube_700704001_700963201_4FGL_J0039.1+4330_daily_bin1780.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/49027/ft2_4FGL_J0039.1+4330_daily_bin1780.fits
.....................!
real 16.55
user 16.09
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49027/ft1_filtered_4FGL_J0039.1+4330_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/49027/ft2_4FGL_J0039.1+4330_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/49027/ltcube_700704001_700963201_4FGL_J0039.1+4330_daily_bin1780.fits outfile=/scratch/kocevski/49027/expmap_700704001_700963201_4FGL_J0039.1+4330_daily_bin1780.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/49027/ltcube_700704001_700963201_4FGL_J0039.1+4330_daily_bin1780.fits
.....................!
real 190.59
user 185.07
sys 4.92

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 CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 181 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 J0039.1+4330 @ 9.7994 43.5122

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/49027/ft1_filtered_4FGL_J0039.1+4330_daily_bin1780.fits scfile=/scratch/kocevski/49027/ft2_4FGL_J0039.1+4330_daily_bin1780.fits outfile=/scratch/kocevski/49027/cmap_700704001_700963201_4FGL_J0039.1+4330_daily_bin1780.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=9.7994 yref=43.5122 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.72
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49027/ft1_filtered_4FGL_J0039.1+4330_daily_bin1780.fits scfile=/scratch/kocevski/49027/ft2_4FGL_J0039.1+4330_daily_bin1780.fits outfile=/scratch/kocevski/49027/cmap_HighResolution_700704001_700963201_4FGL_J0039.1+4330_daily_bin1780.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=9.7994 yref=43.5122 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.62
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/49027/ft1_filtered_4FGL_J0039.1+4330_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/49027/ft2_4FGL_J0039.1+4330_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/49027/Model_4FGL_J0039.1+4330_daily_bin1780.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/49027/ft1_filtered_4FGL_J0039.1+4330_daily_bin1780.fits.....................!
real 66.81
user 62.46
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/49027/ft1_filtered_4FGL_J0039.1+4330_daily_bin1780.fits', '/scratch/kocevski/49027/ft2_4FGL_J0039.1+4330_daily_bin1780.fits', expMap='/scratch/kocevski/49027/expmap_700704001_700963201_4FGL_J0039.1+4330_daily_bin1780.fits', expCube='/scratch/kocevski/49027/ltcube_700704001_700963201_4FGL_J0039.1+4330_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/49027/Model_4FGL_J0039.1+4330_daily_bin1780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0039.1+4330'

4FGL J0039.1+4330
   Spectrum: PowerLaw
100    Prefactor:  3.232e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
101        Index:  2.059e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
102        Scale:  2.613e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/49027/ft1_filtered_4FGL_J0039.1+4330_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/49027/ft2_4FGL_J0039.1+4330_daily_bin1780.fits
Exposure map: /scratch/kocevski/49027/expmap_700704001_700963201_4FGL_J0039.1+4330_daily_bin1780.fits
Exposure cube: /scratch/kocevski/49027/ltcube_700704001_700963201_4FGL_J0039.1+4330_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/49027/Model_4FGL_J0039.1+4330_daily_bin1780.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) = 5332.31427314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.312       1.0000          .0000       .10000E+07
     2 'norm      '    .36033E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .13758E-02   1.0000          .0000       .10000E+07
     4 'norm      '    1.5937       1.0000          .0000       .10000E+07
     5 'Prefactor '    .12871E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.2375       1.0000          .0000       .10000E+07
     7 'Prefactor '    18.703       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10515E-01   1.0000          .0000       .10000E+07
     9 'norm      '    2.5690       1.0000          .0000       .10000E+07
    10 'Prefactor '    .94635E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .38973E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10388       1.0000          .0000       .10000E+07
    13 'norm      '    76.414       1.0000          .0000       .10000E+07
    14 'Prefactor '    17.965       1.0000          .0000       .10000E+07
    15 'norm      '    .13722E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    33.343       1.0000          .0000       .10000E+07
    17 'norm      '    .16875E-07   1.0000          .0000       .10000E+07
    18 'norm      '    .78782       1.0000          .0000       .10000E+07
    19 'norm      '    .89061E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    25.059       1.0000          .0000       .10000E+07
    21 'Prefactor '    .23536E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .12240E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.5068       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74783       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5332.307     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     2019 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.257        8.0573        .99230E-07   -.16804E-01
   2  norm          .22204E-09    11.415        .91029E-07** at limit **
   3  Prefactor     .55511E-10    4.5748        .77526E-07** at limit **
   4  norm          1.5873        3.4170       -.13262E-06   -.20409E-02
   5  Prefactor      .0000        6.9549       -.10577E-06** at limit **
   6  Prefactor     5.2234        30.384        .55671E-06   -.27544E-01
   7  Prefactor     17.549        17.720        .89025E-07    .11662    
   8  Prefactor     .53291E-08    15.998        .14599E-06** at limit **
   9  norm          2.5675        2.5968       -.91508E-07   -.45857E-02
  10  Prefactor      .0000        2.1367       -.82512E-07** at limit **
  11  Prefactor      .0000        8.5331       -.11846E-06** at limit **
  12  Prefactor     .89534E-04    14.613        .24256E-06** at limit **
  13  norm          77.076        11.974        .41265E-07    .12285    
  14  Prefactor     17.905        20.108       -.14070E-06   -.93233E-01
  15  norm           .0000        2.4141        .16444E-07** at limit **
  16  Prefactor     32.920        7.4089        .22050E-07    .66940E-01
  17  norm           .0000        .82470       -.35742E-07** at limit **
  18  norm          .78690        .76964        .39135E-07    .69914E-02
  19  norm          .14841E-04    99.831        .40226E-07** at limit **
  20  Prefactor     22.987        77.834       -.57669E-06    .22527E-01
  21  Prefactor     .16870E-06    48.199        .50917E-06** at limit **
  22  Prefactor     .14433E-08    14.584       -.31851E-07** at limit **
  23  Normalizat    1.5103        .27450       -.11265E-05    .15380E-04
  24  Prefactor     .74733        .10935        .86253E-06    .79163E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2575
  norm       = 2.22045e-10
  Prefactor  = 5.55112e-11
  norm       = 1.58727
  Prefactor  = 0
  Prefactor  = 5.22342
  Prefactor  = 17.549
  Prefactor  = 5.32907e-09
  norm       = 2.56754
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 8.95342e-05
  norm       = 77.0758
  Prefactor  = 17.9048
  norm       = 0
  Prefactor  = 32.9198
  norm       = 0
  norm       = 0.786903
  norm       = 1.48414e-05
  Prefactor  = 22.9871
  Prefactor  = 1.68698e-07
  Prefactor  = 1.44329e-09
  Normalizat = 1.51027
  Prefactor  = 0.747331
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.307     FROM HESSE     STATUS=OK           449 CALLS     2468 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.257        28.109        .27428E-03   -1.5635    
   2  norm          .22204E-09    11.409        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    4.5789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.5873        3.4411        .83997E-03   -1.5683    
   5  Prefactor      .0000        6.8941        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2234        31.547        .43898E-03   -1.5662    
   7  Prefactor     17.549        42.200        .23131E-03   -1.5624    
   8  Prefactor     .53291E-08    16.009        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5675        2.6040        .63659E-03   -1.5676    
  10  Prefactor      .0000        2.1447        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        8.5292        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .89534E-04    6.5940        .11596E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          77.076        58.095        .11440E-03   -1.5532    
  14  Prefactor     17.905        21.706        .23602E-03   -1.5623    
  15  norm           .0000        2.4046        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.920        41.410        .17320E-03   -1.5593    
  17  norm           .0000        .82253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .78690        .77807        .53847E-03   -1.5690    
  19  norm          .14841E-04    110.52        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.987        81.053        .19981E-03   -1.5612    
  21  Prefactor     .16870E-06    48.285        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .14433E-08    14.508        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5103        .25240        .69167E-01   -.77490    
  24  Prefactor     .74733        .97554E-01    .43034E-01   -1.0170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92863e-06
Minuit parameter uncertainties:
  1  28.1095
  2  9.7475e-05
  3  3.33978e-05
  4  3.44107
  5  1.02754e-05
  6  25.6738
  7  42.2008
  8  0.000584336
  9  2.604
  10  1.4005e-05
  11  1.71936e-05
  12  0.0485959
  13  58.0954
  14  21.7061
  15  7.43776e-06
  16  41.4105
  17  3.87184e-06
  18  0.778067
  19  0.0810017
  20  81.0569
  21  0.00570768
  22  0.000287885
  23  0.25261
  24  0.0975765
Done.

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

Extracting fit parameters...

4FGL J0039.1+4330
   Spectrum: PowerLaw
100    Prefactor:  5.329e-09  5.843e-04  0.000e+00  1.000e+06 ( 1.000e-14)
101        Index:  2.059e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
102        Scale:  2.613e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  7.473e-01  9.758e-02  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.510e+00  2.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 9.799 43.512
Photon Flux Upper Limit: 6.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49027/likelihoodResults_700704001_700963201_4FGL_J0039.1+4330_daily_bin1780.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) = 5332.33637342
delta logL = -0.0298052430526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5332.30656836
delta logL = -1.79659764399e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42695E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .83798       1.0000          .0000       10.000    
     3 'Normalizat'    1.5102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74737       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5332.307     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      234 TOTAL
                     EDM=   .79E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88818E-09    .82679E-01    .42118E-03** at limit **
   2  Index         2.2983        5.5377        .44209        .28287E-09
   3  Normalizat    1.5103        .58773E-03    .69167E-01   -.17353E-03
   4  Prefactor     .74733        .23954E-03    .43028E-01   -.32014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.88178e-10
  Index      = 2.29833
  Normalizat = 1.51027
  Prefactor  = 0.74733
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.307     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88818E-09    .28556        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2983        6.1470        .50000       -.57083    
   3  Normalizat    1.5103        .10909E-02    .30598E-03   -.77490    
   4  Prefactor     .74733        .44487E-03    .16926E-03   -1.0170    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.54598e-12
Minuit parameter uncertainties:
  1  3.14356e-05
  2  2727.18
  3  0.00109088
  4  0.000444865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49027': 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) = 5332.30656818
delta logL = 9.73159330897e-11

Extracting fit parameters...

4FGL J0039.1+4330
   Spectrum: PowerLaw
100    Prefactor:  8.882e-10  3.144e-05  0.000e+00  1.000e+06 ( 1.000e-14)
101        Index:  2.298e+00  2.727e+03  0.000e+00  1.000e+01 (-1.000e+00)
102        Scale:  2.613e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  7.473e-01  4.449e-04  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.510e+00  1.091e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 9.799 43.512

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/49027/cmap_HighResolution_700704001_700963201_4FGL_J0039.1+4330_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', job_status='DONE', photon_flux_upper_limit='6.65e-08', time_completed='2023-03-20 00:15:38.085193', job_id='49027', GAL2='0.75', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1679296538.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='9.73e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1780' AND source_name='4FGL J0039.1+4330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 00:15:38 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 49027: <4FGL_J0039.1+4330_daily_bin1780> in cluster <slac> Done

Job <4FGL_J0039.1+4330_daily_bin1780> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Mar 20 00:04:51 2023
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:04:52 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:04:52 2023
Terminated at Mon Mar 20 00:15:38 2023
Results reported at Mon Mar 20 00:15:38 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0039.1+4330_daily_bin1780 9.7994 43.5122 700704001 700963201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0039.1+4330 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   604.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            647 sec.

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

