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


Performing analysis on: 4FGL_J2325.2+3957_daily_bin1726
RA = 351.315, Dec = 39.9542
tmin = 686707201, tmax = 686966401
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='88423', job_status='RUN', time_executed='2022-10-09 00:36:53.997281', time_epoch_executed='1665301014.0' WHERE source_name='4FGL J2325.2+3957' and cadence='daily' and bin_id='1726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88423

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88423/ft1_4FGL_J2325.2+3957_daily_bin1726.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88423/ft2_4FGL_J2325.2+3957_daily_bin1726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88423/ft1_4FGL_J2325.2+3957_daily_bin1726.fits outfile=/scratch/kocevski/88423/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin1726.fits ra=351.315 dec=39.9542 rad=12.0 tmin=686707201.0 tmax=686966401.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.08
user 2.87
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/88423/ft2_4FGL_J2325.2+3957_daily_bin1726.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/88423/ft2_4FGL_J2325.2+3957_daily_bin1726.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/88423/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin1726.fits evtable="EVENTS" outfile="/scratch/kocevski/88423/ft1_filtered_4FGL_J2325.2+3957_daily_bin1726.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.49
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 316

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/88423/ft1_filtered_4FGL_J2325.2+3957_daily_bin1726.fits" evtable="EVENTS" scfile=/scratch/kocevski/88423/ft2_4FGL_J2325.2+3957_daily_bin1726.fits sctable="SC_DATA" outfile=/scratch/kocevski/88423/ltcube_686707201_686966401_4FGL_J2325.2+3957_daily_bin1726.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/88423/ft2_4FGL_J2325.2+3957_daily_bin1726.fits
.....................!
real 12.72
user 12.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88423/ft1_filtered_4FGL_J2325.2+3957_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/88423/ft2_4FGL_J2325.2+3957_daily_bin1726.fits sctable="SC_DATA" expcube=/scratch/kocevski/88423/ltcube_686707201_686966401_4FGL_J2325.2+3957_daily_bin1726.fits outfile=/scratch/kocevski/88423/expmap_686707201_686966401_4FGL_J2325.2+3957_daily_bin1726.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/88423/ltcube_686707201_686966401_4FGL_J2325.2+3957_daily_bin1726.fits
.....................!
real 189.78
user 185.08
sys 4.29

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 FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 163 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 J2325.2+3957 @ 351.315 39.9542

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/88423/ft1_filtered_4FGL_J2325.2+3957_daily_bin1726.fits scfile=/scratch/kocevski/88423/ft2_4FGL_J2325.2+3957_daily_bin1726.fits outfile=/scratch/kocevski/88423/cmap_686707201_686966401_4FGL_J2325.2+3957_daily_bin1726.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=351.315 yref=39.9542 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88423/ft1_filtered_4FGL_J2325.2+3957_daily_bin1726.fits scfile=/scratch/kocevski/88423/ft2_4FGL_J2325.2+3957_daily_bin1726.fits outfile=/scratch/kocevski/88423/cmap_HighResolution_686707201_686966401_4FGL_J2325.2+3957_daily_bin1726.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=351.315 yref=39.9542 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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/88423/ft1_filtered_4FGL_J2325.2+3957_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/88423/ft2_4FGL_J2325.2+3957_daily_bin1726.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/88423/Model_4FGL_J2325.2+3957_daily_bin1726.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/88423/ft1_filtered_4FGL_J2325.2+3957_daily_bin1726.fits......................!
real 53.13
user 51.78
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/88423/ft1_filtered_4FGL_J2325.2+3957_daily_bin1726.fits', '/scratch/kocevski/88423/ft2_4FGL_J2325.2+3957_daily_bin1726.fits', expMap='/scratch/kocevski/88423/expmap_686707201_686966401_4FGL_J2325.2+3957_daily_bin1726.fits', expCube='/scratch/kocevski/88423/ltcube_686707201_686966401_4FGL_J2325.2+3957_daily_bin1726.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/88423/Model_4FGL_J2325.2+3957_daily_bin1726.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2325.2+3957'

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  1.273e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
468        alpha:  1.993e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
469         beta:  1.156e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
470           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/88423/ft1_filtered_4FGL_J2325.2+3957_daily_bin1726.fits
Spacecraft file(s): /scratch/kocevski/88423/ft2_4FGL_J2325.2+3957_daily_bin1726.fits
Exposure map: /scratch/kocevski/88423/expmap_686707201_686966401_4FGL_J2325.2+3957_daily_bin1726.fits
Exposure cube: /scratch/kocevski/88423/ltcube_686707201_686966401_4FGL_J2325.2+3957_daily_bin1726.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/88423/Model_4FGL_J2325.2+3957_daily_bin1726.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) = 3547.28694816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24495E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .61783E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    50.752       1.0000          .0000       .10000E+07
     4 'Prefactor '    24.589       1.0000          .0000       .10000E+07
     5 'norm      '    1.8210       1.0000          .0000       .10000E+07
     6 'Prefactor '    .31623E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    18.980       1.0000          .0000       .10000E+07
     8 'Prefactor '    .41416E-02   1.0000          .0000       .10000E+07
     9 'norm      '    .21194E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .55301E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    11.928       1.0000          .0000       .10000E+07
    12 'norm      '    .30614E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .19784E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    23.499       1.0000          .0000       .10000E+07
    15 'norm      '    3.6591       1.0000          .0000       .10000E+07
    16 'Prefactor '    .11130E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.6772       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.5380       1.0000          .0000       .10000E+07
    19 'Prefactor '    14.415       1.0000          .0000       .10000E+07
    20 'Normalizat'    .74116       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3547.221     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     1628 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51753E-06    23.650       -.28709E-05** at limit **
   2  norm          .23600E-04    43.423        .22280E-04** at limit **
   3  Prefactor     48.954        30.544        .14800E-04    .11608E-01
   4  Prefactor     25.061        8.8921        .51715E-05    .78252E-01
   5  norm          1.8103        6.5250       -.53231E-05   -.15700E-02
   6  Prefactor     .40001E-06    23.053        .25759E-05** at limit **
   7  Prefactor     19.275        16.246       -.23751E-06   -.19033E-02
   8  Prefactor     .33307E-08    25.460        .88377E-06** at limit **
   9  norm           .0000        2.1530       -.25770E-05** at limit **
  10  Prefactor     .22204E-09    21.856       -.45581E-05** at limit **
  11  Prefactor     16.161        64.169        .47699E-04   -.85673E-02
  12  norm           .0000        19.487       -.21102E-05** at limit **
  13  norm          .22038E-07    38.663       -.37065E-05** at limit **
  14  Prefactor     30.733        49.695       -.16677E-04    .28064E-01
  15  norm          3.6981        5.5794       -.18565E-05    .54006E-02
  16  Prefactor     .16062E-05    46.499        .85895E-05** at limit **
  17  Prefactor     .36310E-05    783.81       -.40355E-04** at limit **
  18  Prefactor     .30109E-06    133.99        .24028E-04** at limit **
  19  Prefactor     16.963        35.259        .21984E-05   -.43506E-02
  20  Normalizat    .71603        .53648       -.59072E-04   -.11827E-03
  21  Prefactor     1.1733        .16924        .30674E-05   -.35589E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.1753e-07
  norm       = 2.36002e-05
  Prefactor  = 48.954
  Prefactor  = 25.0612
  norm       = 1.81035
  Prefactor  = 4.00013e-07
  Prefactor  = 19.2749
  Prefactor  = 3.33067e-09
  norm       = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 16.1614
  norm       = 0
  norm       = 2.20379e-08
  Prefactor  = 30.7327
  norm       = 3.69805
  Prefactor  = 1.60622e-06
  Prefactor  = 3.63098e-06
  Prefactor  = 3.01092e-07
  Prefactor  = 16.9631
  Normalizat = 0.716027
  Prefactor  = 1.17332
 **********
 **   18 **HESSE 
 **********

 FCN=   3547.221     FROM HESSE     STATUS=OK           357 CALLS     1985 TOTAL
                     EDM=   .78E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51753E-06    45.596        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .23600E-04    149.66        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     48.954        60.723        .14038E-03   -1.5568    
   4  Prefactor     25.061        39.884        .20171E-03   -1.5608    
   5  norm          1.8103        6.6882        .77350E-03   -1.5681    
   6  Prefactor     .40001E-06    45.649        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.275        16.578        .22962E-03   -1.5620    
   8  Prefactor     .33307E-08    25.479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        2.1382        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22204E-09    21.867        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.161        75.064        .28980E-03   -1.5628    
  12  norm           .0000        18.774        .16418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .22038E-07    38.561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.733        68.598        .20634E-03   -1.5597    
  15  norm          3.6981        5.5956        .52782E-03   -1.5670    
  16  Prefactor     .16062E-05    106.38        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .36310E-05    785.23        .42135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .30109E-06    240.62        .64079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.963        38.417        .26355E-03   -1.5626    
  20  Normalizat    .71603        .52798        .13540       -1.0326    
  21  Prefactor     1.1733        .16082        .35403E-01   -.87156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.79277e-07
Minuit parameter uncertainties:
  1  0.00971545
  2  0.118863
  3  60.7233
  4  39.8841
  5  6.68824
  6  0.00854661
  7  16.5783
  8  0.000582477
  9  2.92443e-06
  10  0.000130801
  11  69.662
  12  1.37168e-05
  13  0.00184349
  14  68.5996
  15  5.5956
  16  0.0261443
  17  0.106806
  18  0.0170234
  19  38.4176
  20  0.531797
  21  0.160887
Done.

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

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  3.698e+00  5.596e+00  0.000e+00  1.000e+06 ( 1.000e-12)
468        alpha:  1.993e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
469         beta:  1.156e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
470           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.173e+00  1.609e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  7.160e-01  5.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.62
Ra Dec: 351.315 39.954
Photon Flux Upper Limit: 1.95e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/88423/likelihoodResults_686707201_686966401_4FGL_J2325.2+3957_daily_bin1726.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) = 3547.18203912
delta logL = 0.0390072742907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3547.18076378
delta logL = 0.0402826159143

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9428       1.0000          .0000       .10000E+07
     2 'alpha     '    1.7075       1.0000          .0000       5.0000    
     3 'Normalizat'    .72488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1719       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3547.181     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      202 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9408        433.75        .50779E-03    .15787E-02
   2  alpha         1.7061        3.9786        .44130        .61232E-05
   3  Normalizat    .72469        .46220        .13464        .35546E-04
   4  Prefactor     1.1720        .12173        .35330E-01   -.27858E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.94078
  alpha      = 1.70606
  Normalizat = 0.724693
  Prefactor  = 1.17203
 **********
 **   18 **HESSE 
 **********

 FCN=   3547.181     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9408        5.7695        .16795E-04   -1.5668    
   2  alpha         1.7061        .95947        .19727E-01   -.32317    
   3  Normalizat    .72469        .51030        .59761E-03   -1.0293    
   4  Prefactor     1.1720        .16625        .15399E-03   -.87196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63213e-11
Minuit parameter uncertainties:
  1  5.7695
  2  0.987814
  3  0.513703
  4  0.166326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88423': 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) = 3547.18076262
delta logL = 0.0402837752422

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  3.941e+00  5.770e+00  0.000e+00  1.000e+06 ( 1.000e-12)
468        alpha:  1.706e+00  9.878e-01  0.000e+00  5.000e+00 ( 1.000e+00)
469         beta:  1.156e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
470           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.172e+00  1.663e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  7.247e-01  5.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.62
Ra Dec: 351.315 39.954

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/88423/cmap_HighResolution_686707201_686966401_4FGL_J2325.2+3957_daily_bin1726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-04', job_status='DONE', photon_flux_upper_limit='1.95e-07', time_completed='2022-10-09 00:44:35.893311', job_id='88423', GAL2='1.17', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1665301475.89', return_code2='0', ts='0.62', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='4.03e-02', ts2='0.70', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1726' AND source_name='4FGL J2325.2+3957' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct  9 00:44:35 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 88423: <4FGL_J2325.2+3957_daily_bin1726> in cluster <slac> Done

Job <4FGL_J2325.2+3957_daily_bin1726> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Oct  9 00:36:00 2022
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct  9 00:36:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct  9 00:36:13 2022
Terminated at Sun Oct  9 00:44:36 2022
Results reported at Sun Oct  9 00:44:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.2+3957_daily_bin1726 351.315 39.9542 686707201 686966401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2325.2+3957 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   464.08 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             324.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   503 sec.
    Turnaround time :                            516 sec.

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

