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


Performing analysis on: 4FGL_J2349.2+4535_daily_bin1754
RA = 357.305, Dec = 45.5979
tmin = 693964801, tmax = 694224001
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='660040', job_status='RUN', time_executed='2023-01-01 02:06:18.506932', time_epoch_executed='1672567578.51' WHERE source_name='4FGL J2349.2+4535' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/660040

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/660040/ft1_4FGL_J2349.2+4535_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/660040/ft2_4FGL_J2349.2+4535_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/660040/ft1_4FGL_J2349.2+4535_daily_bin1754.fits outfile=/scratch/kocevski/660040/ft1_filteredMKT_4FGL_J2349.2+4535_daily_bin1754.fits ra=357.305 dec=45.5979 rad=12.0 tmin=693964801.0 tmax=694224001.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.98
user 3.71
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/660040/ft2_4FGL_J2349.2+4535_daily_bin1754.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/660040/ft2_4FGL_J2349.2+4535_daily_bin1754.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/660040/ft1_filteredMKT_4FGL_J2349.2+4535_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/660040/ft1_filtered_4FGL_J2349.2+4535_daily_bin1754.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.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 1430

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/660040/ft1_filtered_4FGL_J2349.2+4535_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/660040/ft2_4FGL_J2349.2+4535_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/660040/ltcube_693964801_694224001_4FGL_J2349.2+4535_daily_bin1754.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/660040/ft2_4FGL_J2349.2+4535_daily_bin1754.fits
.....................!
real 13.00
user 12.43
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/660040/ft1_filtered_4FGL_J2349.2+4535_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/660040/ft2_4FGL_J2349.2+4535_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/660040/ltcube_693964801_694224001_4FGL_J2349.2+4535_daily_bin1754.fits outfile=/scratch/kocevski/660040/expmap_693964801_694224001_4FGL_J2349.2+4535_daily_bin1754.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/660040/ltcube_693964801_694224001_4FGL_J2349.2+4535_daily_bin1754.fits
.....................!
real 194.11
user 185.67
sys 6.08

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 180 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 J2349.2+4535 @ 357.305 45.5979

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/660040/ft1_filtered_4FGL_J2349.2+4535_daily_bin1754.fits scfile=/scratch/kocevski/660040/ft2_4FGL_J2349.2+4535_daily_bin1754.fits outfile=/scratch/kocevski/660040/cmap_693964801_694224001_4FGL_J2349.2+4535_daily_bin1754.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=357.305 yref=45.5979 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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/660040/ft1_filtered_4FGL_J2349.2+4535_daily_bin1754.fits scfile=/scratch/kocevski/660040/ft2_4FGL_J2349.2+4535_daily_bin1754.fits outfile=/scratch/kocevski/660040/cmap_HighResolution_693964801_694224001_4FGL_J2349.2+4535_daily_bin1754.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=357.305 yref=45.5979 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.55
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/660040/ft1_filtered_4FGL_J2349.2+4535_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/660040/ft2_4FGL_J2349.2+4535_daily_bin1754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/660040/Model_4FGL_J2349.2+4535_daily_bin1754.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/660040/ft1_filtered_4FGL_J2349.2+4535_daily_bin1754.fits.....................!
real 179.35
user 175.69
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/660040/ft1_filtered_4FGL_J2349.2+4535_daily_bin1754.fits', '/scratch/kocevski/660040/ft2_4FGL_J2349.2+4535_daily_bin1754.fits', expMap='/scratch/kocevski/660040/expmap_693964801_694224001_4FGL_J2349.2+4535_daily_bin1754.fits', expCube='/scratch/kocevski/660040/ltcube_693964801_694224001_4FGL_J2349.2+4535_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/660040/Model_4FGL_J2349.2+4535_daily_bin1754.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2349.2+4535'

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  5.568e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
568        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
569        Scale:  2.096e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/660040/ft1_filtered_4FGL_J2349.2+4535_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/660040/ft2_4FGL_J2349.2+4535_daily_bin1754.fits
Exposure map: /scratch/kocevski/660040/expmap_693964801_694224001_4FGL_J2349.2+4535_daily_bin1754.fits
Exposure cube: /scratch/kocevski/660040/ltcube_693964801_694224001_4FGL_J2349.2+4535_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/660040/Model_4FGL_J2349.2+4535_daily_bin1754.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) = 14868.6113684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16269E-02   1.0000          .0000       .10000E+07
     2 'norm      '    19.826       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.7024       1.0000          .0000       .10000E+07
     4 'norm      '    .22828E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .49610E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    20.479       1.0000          .0000       .10000E+07
     7 'Prefactor '    .49219E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .34227E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.7719       1.0000          .0000       .10000E+07
    10 'Prefactor '    .17977E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .27146E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .12951E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .23031       1.0000          .0000       .10000E+07
    14 'norm      '    4.6226       1.0000          .0000       .10000E+07
    15 'Prefactor '    32.238       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10662E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    6.3904       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1746       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94413       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14868.57     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     1189 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48961E-07    8.0360       -.82745E-06** at limit **
   2  norm          19.706        2.1574        .26761E-07   -.35811E-01
   3  Prefactor     3.7013        6.4865       -.31565E-07    .21875E-02
   4  norm           .0000        6.6339        .48012E-06** at limit **
   5  Prefactor      .0000        2.7016        .18295E-06** at limit **
   6  Prefactor     20.479        13.941        .60289E-06    .11847E-01
   7  Prefactor     .15293E-06    48.623        .51311E-06** at limit **
   8  Prefactor     .53291E-07    8.6352       -.75932E-06** at limit **
   9  Prefactor     4.7564        7.7486        .28125E-07   -.11287E-03
  10  Prefactor     .61062E-09    11.303       -.88414E-06** at limit **
  11  Prefactor      .0000        24.411        .18922E-05** at limit **
  12  norm           .0000        3.1754        .33367E-06** at limit **
  13  norm          .22997        1.1547       -.63352E-06** at limit **
  14  norm          4.6785        4.6909       -.61290E-06    .39448E-03
  15  Prefactor     33.503        6.6178       -.17933E-06    .73452E-01
  16  Prefactor     .92371E-07    29.681        .11089E-05** at limit **
  17  Prefactor     6.3865        6.0494        .20685E-07    .26416E-02
  18  Normalizat    1.1743        .19689        .14960E-04   -.59744E-04
  19  Prefactor     .94413        .59634E-01   -.52502E-05   -.17163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.89608e-08
  norm       = 19.7063
  Prefactor  = 3.70133
  norm       = 0
  Prefactor  = 0
  Prefactor  = 20.4795
  Prefactor  = 1.52933e-07
  Prefactor  = 5.32907e-08
  Prefactor  = 4.7564
  Prefactor  = 6.10623e-10
  Prefactor  = 0
  norm       = 0
  norm       = 0.22997
  norm       = 4.67848
  Prefactor  = 33.5027
  Prefactor  = 9.23706e-08
  Prefactor  = 6.3865
  Normalizat = 1.17432
  Prefactor  = 0.94413
 **********
 **   18 **HESSE 
 **********

 FCN=   14868.57     FROM HESSE     STATUS=OK           316 CALLS     1505 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48961E-07    16.743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          19.706        17.449        .22466E-03   -1.5619    
   3  Prefactor     3.7013        6.8867        .52460E-03   -1.5669    
   4  norm           .0000        .84319        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        2.6477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.479        13.997        .22105E-03   -1.5617    
   7  Prefactor     .15293E-06    49.457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .53291E-07    16.413        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.7564        7.7681        .46034E-03   -1.5664    
  10  Prefactor     .61062E-09    11.359        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        3.3117        .11916E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        3.1725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .22997        1.2291        .11260E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.6785        4.6888        .46789E-03   -1.5665    
  15  Prefactor     33.503        29.393        .17615E-03   -1.5592    
  16  Prefactor     .92371E-07    30.608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.3865        6.2872        .39681E-03   -1.5657    
  18  Normalizat    1.1743        .18341        .95436E-01   -.87400    
  19  Prefactor     .94413        .54482E-01    .32647E-01   -.94616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4602e-07
Minuit parameter uncertainties:
  1  0.00181086
  2  17.4494
  3  6.88673
  4  2.25877e-06
  5  2.63813e-06
  6  13.9971
  7  0.00550047
  8  0.00187082
  9  7.7681
  10  0.000165905
  11  6.46823e-06
  12  7.84669e-06
  13  1.06331
  14  4.68876
  15  29.3936
  16  0.00336305
  17  6.28723
  18  0.183511
  19  0.0544848
Done.

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

Extracting fit parameters...

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  3.350e+01  2.939e+01  0.000e+00  1.000e+06 ( 1.000e-14)
568        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
569        Scale:  2.096e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.441e-01  5.448e-02  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
600   Normalization:  1.174e+00  1.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.79
Ra Dec: 357.305 45.598
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.14e-08 +/- 1.88e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 8.82e-06

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) = 14866.9312275
delta logL = 1.63850061243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14866.8847577
delta logL = 1.68497043284

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14866.88     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      222 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.415        21.370        .21615E-03    .25369E-02
   2  Index         .89897        .45476        .41977       -.99920E-04
   3  Normalizat    1.1908        .17407        .94857E-01    .36547E-04
   4  Prefactor     .94291        .54166E-01    .32667E-01   -.14397E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.4149
  Index      = 0.898966
  Normalizat = 1.19083
  Prefactor  = 0.942915
 **********
 **   18 **HESSE 
 **********

 FCN=   14866.88     FROM HESSE     STATUS=OK            29 CALLS      251 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.415        35.684        .86462E-05   -1.5615    
   2  Index         .89897        .73711        .18962E-02   -.96177    
   3  Normalizat    1.1908        .19008        .42021E-03   -.86887    
   4  Prefactor     .94291        .59348E-01    .14435E-03   -.94657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01808e-10
Minuit parameter uncertainties:
  1  35.6846
  2  0.745518
  3  0.190193
  4  0.0593524
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/660040': 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) = 14866.8847576
delta logL = 1.6849704718

Extracting fit parameters...

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  2.141e+01  3.568e+01  0.000e+00  1.000e+06 ( 1.000e-14)
568        Index:  8.990e-01  7.455e-01  0.000e+00  1.000e+01 (-1.000e+00)
569        Scale:  2.096e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.429e-01  5.935e-02  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
600   Normalization:  1.191e+00  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.15
Ra Dec: 357.305 45.598
Photon Index (Free Index): 0.90 +/- 0.75
Photon Flux (Free Index): 3.30e-09 +/- 4.08e-09
Energy Flux (Free Index): 6.03e-05 +/- 7.97e-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/660040/cmap_HighResolution_693964801_694224001_4FGL_J2349.2+4535_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.14e-08', energy_flux2='6.03e-05', photon_flux_error='1.88e-08', dlogl='1.68e+00', energy_flux='1.01e-05', photon_flux2='3.30e-09', job_status='DONE', time_completed='2023-01-01 02:20:23.894032', photon_index_error2='0.75', photon_index2='0.90', ts='7.79', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='7.97e-05', EG='1.17', time_epoch_completed='1672568423.89', return_code='0', job_id='660040', GAL2='0.94', EG2='1.19', return_code2='0', energy_flux_error='8.82e-06', photon_flux_error2='4.08e-09', ts2='11.15', photon_index='2.18' WHERE bin_id='1754' AND source_name='4FGL J2349.2+4535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 02:20:23 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 660040: <4FGL_J2349.2+4535_daily_bin1754> in cluster <slac> Done

Job <4FGL_J2349.2+4535_daily_bin1754> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jan  1 02:05:18 2023
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 02:05:51 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 02:05:51 2023
Terminated at Sun Jan  1 02:20:24 2023
Results reported at Sun Jan  1 02:20:24 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.2+4535_daily_bin1754 357.305 45.5979 693964801 694224001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2349.2+4535 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   835.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             361.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            906 sec.

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

