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


Performing analysis on: 4FGL_J1704.2+1234_daily_bin1780
RA = 256.06, Dec = 12.5752
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='70819', job_status='RUN', time_executed='2023-03-20 01:21:46.529944', time_epoch_executed='1679300506.53' WHERE source_name='4FGL J1704.2+1234' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70819

Creating custom pfile directory:
/scratch/kocevski/70819/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/70819/ft1_4FGL_J1704.2+1234_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/70819/ft2_4FGL_J1704.2+1234_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70819/ft1_4FGL_J1704.2+1234_daily_bin1780.fits outfile=/scratch/kocevski/70819/ft1_filteredMKT_4FGL_J1704.2+1234_daily_bin1780.fits ra=256.06 dec=12.5752 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.12
user 3.91
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/70819/ft2_4FGL_J1704.2+1234_daily_bin1780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/70819/ft2_4FGL_J1704.2+1234_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/70819/ft1_filteredMKT_4FGL_J1704.2+1234_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/70819/ft1_filtered_4FGL_J1704.2+1234_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.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 1250

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70819/ft1_filtered_4FGL_J1704.2+1234_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/70819/ft2_4FGL_J1704.2+1234_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/70819/ltcube_700704001_700963201_4FGL_J1704.2+1234_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/70819/ft2_4FGL_J1704.2+1234_daily_bin1780.fits
.....................!
real 12.20
user 11.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70819/ft1_filtered_4FGL_J1704.2+1234_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/70819/ft2_4FGL_J1704.2+1234_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/70819/ltcube_700704001_700963201_4FGL_J1704.2+1234_daily_bin1780.fits outfile=/scratch/kocevski/70819/expmap_700704001_700963201_4FGL_J1704.2+1234_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/70819/ltcube_700704001_700963201_4FGL_J1704.2+1234_daily_bin1780.fits
.....................!
real 190.45
user 185.18
sys 4.96

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 J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 179 point sources and 1 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 J1704.2+1234 @ 256.06 12.5752

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/70819/ft1_filtered_4FGL_J1704.2+1234_daily_bin1780.fits scfile=/scratch/kocevski/70819/ft2_4FGL_J1704.2+1234_daily_bin1780.fits outfile=/scratch/kocevski/70819/cmap_700704001_700963201_4FGL_J1704.2+1234_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=256.06 yref=12.5752 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70819/ft1_filtered_4FGL_J1704.2+1234_daily_bin1780.fits scfile=/scratch/kocevski/70819/ft2_4FGL_J1704.2+1234_daily_bin1780.fits outfile=/scratch/kocevski/70819/cmap_HighResolution_700704001_700963201_4FGL_J1704.2+1234_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=256.06 yref=12.5752 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/70819/ft1_filtered_4FGL_J1704.2+1234_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/70819/ft2_4FGL_J1704.2+1234_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/70819/Model_4FGL_J1704.2+1234_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 EG_v02
adding source FHES J1723.5-0501
adding source GAL_V02
Working on...
/scratch/kocevski/70819/ft1_filtered_4FGL_J1704.2+1234_daily_bin1780.fits.....................!
real 99.87
user 98.49
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/70819/ft1_filtered_4FGL_J1704.2+1234_daily_bin1780.fits', '/scratch/kocevski/70819/ft2_4FGL_J1704.2+1234_daily_bin1780.fits', expMap='/scratch/kocevski/70819/expmap_700704001_700963201_4FGL_J1704.2+1234_daily_bin1780.fits', expCube='/scratch/kocevski/70819/ltcube_700704001_700963201_4FGL_J1704.2+1234_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/70819/Model_4FGL_J1704.2+1234_daily_bin1780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1704.2+1234'

4FGL J1704.2+1234
   Spectrum: PowerLaw
263    Prefactor:  7.833e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
264        Index:  2.218e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  2.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/70819/ft1_filtered_4FGL_J1704.2+1234_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/70819/ft2_4FGL_J1704.2+1234_daily_bin1780.fits
Exposure map: /scratch/kocevski/70819/expmap_700704001_700963201_4FGL_J1704.2+1234_daily_bin1780.fits
Exposure cube: /scratch/kocevski/70819/ltcube_700704001_700963201_4FGL_J1704.2+1234_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/70819/Model_4FGL_J1704.2+1234_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) = 13322.5520245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27524E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    5.2770       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.3591       1.0000          .0000       .10000E+07
     4 'Prefactor '    .43339       1.0000          .0000       .10000E+07
     5 'Prefactor '    .37122E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .15414E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .18786E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .41966E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.2417       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20232E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .99907       1.0000          .0000       .10000E+07
    12 'Prefactor '    7.8429       1.0000          .0000       .10000E+07
    13 'norm      '    .21518E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    36.849       1.0000          .0000       .10000E+07
    15 'Prefactor '    2.7835       1.0000          .0000       .10000E+07
    16 'norm      '    .23305E-02   1.0000          .0000       .10000E+07
    17 'norm      '    74.359       1.0000          .0000       .10000E+07
    18 'norm      '    .27200E-08   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2153       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0460       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13322.55     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     1582 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99920E-09    10.688        .68760E-07** at limit **
   2  Prefactor     5.2511        9.1795        .16722E-08    .54233E-04
   3  Prefactor     2.3024        6.1770        .13720E-08   -.61440E-04
   4  Prefactor     .45861        6.9702        .59866E-07    .11851E-04
   5  Prefactor     .55511E-10    19.470        .83775E-07** at limit **
   6  Prefactor      .0000        7.8352        .30566E-07** at limit **
   7  Prefactor     .20539E-08    50.862       -.49386E-06** at limit **
   8  Prefactor      .0000        22.986        .45143E-07** at limit **
   9  Prefactor     1.2547        6.5374       -.89815E-07    .13752E-04
  10  Prefactor      .0000        2.2180        .65679E-07** at limit **
  11  norm          .99943        1.5916        .41256E-07   -.19433E-03
  12  Prefactor     7.8402        8.0071       -.41538E-07   -.56089E-04
  13  norm           .0000        4.6496       -.39598E-07** at limit **
  14  Prefactor     36.507        41.226       -.73914E-07    .38001E-01
  15  Prefactor     2.7830        2.1653       -.18782E-07   -.14407E-03
  16  norm          .15543E-08    11.432        .10304E-06** at limit **
  17  norm          74.712        32.661        .41491E-07    .68552E-01
  18  norm           .0000        .25672       -.68985E-08** at limit **
  19  Normalizat    1.2155        .26190        .15903E-05   -.11276E-05
  20  Prefactor     1.0460        .88420E-01   -.25414E-06   -.73829E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.99201e-10
  Prefactor  = 5.25111
  Prefactor  = 2.30242
  Prefactor  = 0.458613
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 2.05391e-09
  Prefactor  = 0
  Prefactor  = 1.25474
  Prefactor  = 0
  norm       = 0.99943
  Prefactor  = 7.84016
  norm       = 0
  Prefactor  = 36.5071
  Prefactor  = 2.78299
  norm       = 1.55431e-09
  norm       = 74.7115
  norm       = 0
  Normalizat = 1.21551
  Prefactor  = 1.04596
 **********
 **   18 **HESSE 
 **********

 FCN=   13322.55     FROM HESSE     STATUS=OK           331 CALLS     1913 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99920E-09    10.709        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.2511        9.2429        .43730E-03   -1.5662    
   3  Prefactor     2.3024        6.2362        .66699E-03   -1.5678    
   4  Prefactor     .45861        6.7890        .85716E-03   -1.5694    
   5  Prefactor     .55511E-10    18.993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        7.7986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .20539E-08    50.743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        22.891        .15876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2547        6.4964        .10056E-02   -1.5686    
  10  Prefactor      .0000        2.2198        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .99943        1.6005        .43732E-03   -1.5688    
  12  Prefactor     7.8402        8.0283        .35781E-03   -1.5652    
  13  norm           .0000        4.6598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.507        56.710        .16475E-03   -1.5587    
  15  Prefactor     2.7830        2.1787        .60964E-03   -1.5675    
  16  norm          .15543E-08    11.377        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          74.712        47.819        .11597E-03   -1.5535    
  18  norm           .0000        .25455        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2155        .22371        .97787E-01   -.86125    
  20  Prefactor     1.0460        .74557E-01    .40151E-01   -.91213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51394e-06
Minuit parameter uncertainties:
  1  0.000207003
  2  9.24293
  3  6.2362
  4  3.52903
  5  6.44177e-05
  6  1.08009e-05
  7  0.000641297
  8  1.00045e-06
  9  5.71007
  10  2.53369e-07
  11  1.60052
  12  8.02826
  13  9.53721e-07
  14  56.7107
  15  2.17866
  16  0.000268238
  17  47.819
  18  1.24405e-07
  19  0.223888
  20  0.0745646
Done.

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

Extracting fit parameters...

4FGL J1704.2+1234
   Spectrum: PowerLaw
263    Prefactor:  0.000e+00  1.000e-06  0.000e+00  1.000e+06 ( 1.000e-14)
264        Index:  2.218e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  2.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  1.046e+00  7.456e-02  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
600   Normalization:  1.216e+00  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 256.060 12.575
Photon Flux Upper Limit: 6.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/70819/likelihoodResults_700704001_700963201_4FGL_J1704.2+1234_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) = 13322.5684476
delta logL = -0.0208674143651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13322.5475815
delta logL = -1.32882269099e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13322.55     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      201 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    28.329       -.10008E-05** at limit **
   2  Index         1.7592        5.6313       -.93285E-05   -.55268E-12
   3  Normalizat    1.2155        .25705        .30797E-05    .78266E-05
   4  Prefactor     1.0460        .87940E-01   -.33720E-06    .51038E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 1.75921
  Normalizat = 1.21551
  Prefactor  = 1.04596
 **********
 **   18 **HESSE 
 **********

 FCN=   13322.55     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      234 TOTAL
                     EDM=   .14E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .10214        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7592        5.7828        .46116       -.70516    
   3  Normalizat    1.2155        .33535E-03    .97787E-01   -.86125    
   4  Prefactor     1.0460        .11414E-03    .40149E-01   -.91213    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.43225e-14
Minuit parameter uncertainties:
  1  3.77282e-06
  2  13808.2
  3  0.000335354
  4  0.000114138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70819': 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) = 13322.5475802
delta logL = -1.81898940355e-12

Extracting fit parameters...

4FGL J1704.2+1234
   Spectrum: PowerLaw
263    Prefactor:  5.551e-11  3.773e-06  0.000e+00  1.000e+06 ( 1.000e-14)
264        Index:  1.759e+00  1.381e+04  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  2.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  1.046e+00  1.141e-04  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
600   Normalization:  1.216e+00  3.354e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 256.060 12.575

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/70819/cmap_HighResolution_700704001_700963201_4FGL_J1704.2+1234_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-03', job_status='DONE', photon_flux_upper_limit='6.01e-08', time_completed='2023-03-20 01:35:45.000306', job_id='70819', GAL2='1.05', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1679301345.0', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-1.82e-12', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1780' AND source_name='4FGL J1704.2+1234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:35:45 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 70819: <4FGL_J1704.2+1234_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1704.2+1234_daily_bin1780> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Mar 20 01:20:14 2023
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 01:20:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 01:20:15 2023
Terminated at Mon Mar 20 01:35:45 2023
Results reported at Mon Mar 20 01:35:45 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1704.2+1234_daily_bin1780 256.06 12.5752 700704001 700963201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1704.2+1234 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   841.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             360.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            931 sec.

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

