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


Performing analysis on: 4FGL_J1704.2+1234_daily_bin1762
RA = 256.06, Dec = 12.5752
tmin = 696038401, tmax = 696297601
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='114856', job_status='RUN', time_executed='2023-01-25 01:16:44.787748', time_epoch_executed='1674638204.79' WHERE source_name='4FGL J1704.2+1234' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/114856

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/114856/ft1_4FGL_J1704.2+1234_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/114856/ft2_4FGL_J1704.2+1234_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/114856/ft1_4FGL_J1704.2+1234_daily_bin1762.fits outfile=/scratch/kocevski/114856/ft1_filteredMKT_4FGL_J1704.2+1234_daily_bin1762.fits ra=256.06 dec=12.5752 rad=12.0 tmin=696038401.0 tmax=696297601.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.70
user 3.46
sys 0.21

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

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

Number of photons that the gtmktime cut: 941

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/114856/ft1_filtered_4FGL_J1704.2+1234_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/114856/ft2_4FGL_J1704.2+1234_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/114856/ltcube_696038401_696297601_4FGL_J1704.2+1234_daily_bin1762.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/114856/ft2_4FGL_J1704.2+1234_daily_bin1762.fits
.....................!
real 14.36
user 13.83
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/114856/ft1_filtered_4FGL_J1704.2+1234_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/114856/ft2_4FGL_J1704.2+1234_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/114856/ltcube_696038401_696297601_4FGL_J1704.2+1234_daily_bin1762.fits outfile=/scratch/kocevski/114856/expmap_696038401_696297601_4FGL_J1704.2+1234_daily_bin1762.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/114856/ltcube_696038401_696297601_4FGL_J1704.2+1234_daily_bin1762.fits
.....................!
real 192.08
user 186.75
sys 4.63

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/114856/ft1_filtered_4FGL_J1704.2+1234_daily_bin1762.fits scfile=/scratch/kocevski/114856/ft2_4FGL_J1704.2+1234_daily_bin1762.fits outfile=/scratch/kocevski/114856/cmap_696038401_696297601_4FGL_J1704.2+1234_daily_bin1762.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/114856/ft1_filtered_4FGL_J1704.2+1234_daily_bin1762.fits scfile=/scratch/kocevski/114856/ft2_4FGL_J1704.2+1234_daily_bin1762.fits outfile=/scratch/kocevski/114856/cmap_HighResolution_696038401_696297601_4FGL_J1704.2+1234_daily_bin1762.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.57
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/114856/ft1_filtered_4FGL_J1704.2+1234_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/114856/ft2_4FGL_J1704.2+1234_daily_bin1762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/114856/Model_4FGL_J1704.2+1234_daily_bin1762.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/114856/ft1_filtered_4FGL_J1704.2+1234_daily_bin1762.fits.....................!
real 85.32
user 83.76
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/114856/ft1_filtered_4FGL_J1704.2+1234_daily_bin1762.fits', '/scratch/kocevski/114856/ft2_4FGL_J1704.2+1234_daily_bin1762.fits', expMap='/scratch/kocevski/114856/expmap_696038401_696297601_4FGL_J1704.2+1234_daily_bin1762.fits', expCube='/scratch/kocevski/114856/ltcube_696038401_696297601_4FGL_J1704.2+1234_daily_bin1762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/114856/Model_4FGL_J1704.2+1234_daily_bin1762.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/114856/ft1_filtered_4FGL_J1704.2+1234_daily_bin1762.fits
Spacecraft file(s): /scratch/kocevski/114856/ft2_4FGL_J1704.2+1234_daily_bin1762.fits
Exposure map: /scratch/kocevski/114856/expmap_696038401_696297601_4FGL_J1704.2+1234_daily_bin1762.fits
Exposure cube: /scratch/kocevski/114856/ltcube_696038401_696297601_4FGL_J1704.2+1234_daily_bin1762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/114856/Model_4FGL_J1704.2+1234_daily_bin1762.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) = 10157.07804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9404       1.0000          .0000       .10000E+07
     2 'Prefactor '    .20178E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .32003E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .32967       1.0000          .0000       .10000E+07
     5 'Prefactor '    .18624E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.6222       1.0000          .0000       .10000E+07
     7 'Prefactor '    6.7933       1.0000          .0000       .10000E+07
     8 'Prefactor '    14.921       1.0000          .0000       .10000E+07
     9 'Prefactor '    .71004E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .91690E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .37220E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    19.840       1.0000          .0000       .10000E+07
    13 'norm      '    .67014E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    119.98       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.0563       1.0000          .0000       .10000E+07
    16 'norm      '    13.939       1.0000          .0000       .10000E+07
    17 'norm      '    .26136E-02   1.0000          .0000       .10000E+07
    18 'norm      '    2.8105       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.7890       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .74256       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=   10157.08     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     1581 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9397        2.0797        .66872E-07   -.10154E-01
   2  Prefactor     .83267E-09    4.1467        .24993E-06** at limit **
   3  Prefactor     .44409E-09    3.1178       -.10934E-06** at limit **
   4  Prefactor     .32874        .60915        .33831E-07   -.15828E-02
   5  Prefactor     .55511E-10    1.4121        .96731E-07** at limit **
   6  Prefactor     2.6174        5.9847        .32154E-07   -.54283E-03
   7  Prefactor     6.7912        2.2584       -.39182E-07    .23440E-01
   8  Prefactor     14.920        1.1101        .65491E-08   -.96310E-02
   9  Prefactor     .11102E-08    2.3350       -.83572E-07** at limit **
  10  Prefactor     .13878E-07    5.5280        .49468E-06** at limit **
  11  norm          .12212E-08    2.7409       -.23106E-06** at limit **
  12  Prefactor     19.861        2.0830        .18057E-07   -.23836E-01
  13  norm          .17708E-07    5.1807        .25230E-06** at limit **
  14  Prefactor     120.01        3.0123        .13536E-07   -.16210    
  15  Prefactor     1.0561        3.1066       -.24528E-08    .52666E-03
  16  norm          13.947        1.1145        .84221E-08    .35564E-02
  17  norm          .55511E-09    22.405        .46606E-07** at limit **
  18  norm          2.8108        1.5497       -.42412E-07   -.92747E-03
  19  Normalizat    1.7890        .29839       -.18024E-06   -.10351E-04
  20  Prefactor     .74255        .95227E-01   -.44385E-06   -.37304E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.93973
  Prefactor  = 8.32667e-10
  Prefactor  = 4.44089e-10
  Prefactor  = 0.328745
  Prefactor  = 5.55112e-11
  Prefactor  = 2.61743
  Prefactor  = 6.79122
  Prefactor  = 14.9195
  Prefactor  = 1.11022e-09
  Prefactor  = 1.38778e-08
  norm       = 1.22125e-09
  Prefactor  = 19.8609
  norm       = 1.77081e-08
  Prefactor  = 120.014
  Prefactor  = 1.05614
  norm       = 13.9467
  norm       = 5.55112e-10
  norm       = 2.81079
  Normalizat = 1.78899
  Prefactor  = 0.742552
 **********
 **   18 **HESSE 
 **********

 FCN=   10157.08     FROM HESSE     STATUS=OK           335 CALLS     1916 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9397        96.141        .74502E-03   -1.5680    
   2  Prefactor     .83267E-09    4.1452        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .44409E-09    3.1119        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .32874        4.0417        .70949E-02   -1.5696    
   5  Prefactor     .55511E-10    1.4109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.6174        6.0389        .62955E-03   -1.5676    
   7  Prefactor     6.7912        34.913        .38472E-03   -1.5656    
   8  Prefactor     14.920        80.256        .25903E-03   -1.5631    
   9  Prefactor     .11102E-08    2.3368        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .13878E-07    5.5791        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .12212E-08    2.6981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.861        18.027        .22458E-03   -1.5619    
  13  norm          .17708E-07    5.2417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     120.01        100.05        .91300E-04   -1.5489    
  15  Prefactor     1.0561        3.3434        .11968E-02   -1.5687    
  16  norm          13.947        11.076        .26802E-03   -1.5633    
  17  norm          .55511E-09    22.436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.8108        1.5564        .60650E-03   -1.5674    
  19  Normalizat    1.7890        .25680        .82790E-01   -.69951    
  20  Prefactor     .74255        .79458E-01    .42965E-01   -1.0188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62513e-06
Minuit parameter uncertainties:
  1  27.3126
  2  0.000115965
  3  7.5272e-05
  4  2.30539
  5  1.33959e-05
  6  6.03891
  7  30.7967
  8  69.2079
  9  0.000100687
  10  0.00055624
  11  0.000114677
  12  18.027
  13  0.000609597
  14  100.047
  15  3.3434
  16  11.0759
  17  0.000225604
  18  1.55639
  19  0.25699
  20  0.0794701
Done.

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

Extracting fit parameters...

4FGL J1704.2+1234
   Spectrum: PowerLaw
263    Prefactor:  1.492e+01  6.921e+01  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:  7.426e-01  7.947e-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.789e+00  2.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 256.060 12.575
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/114856/likelihoodResults_696038401_696297601_4FGL_J1704.2+1234_daily_bin1762.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) = 10157.0568968
delta logL = 0.0210399891494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10157.0560609
delta logL = 0.0218758561041

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10157.06     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      277 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.992        82.679        .11083E-04    .10754E-02
   2  Index         2.5231        1.7278        .11334E-01    .23196E-04
   3  Normalizat    1.7826        .29851        .36692E-03    .39730E-03
   4  Prefactor     .74320        .94758E-01    .17032E-03    .52549E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9922
  Index      = 2.52309
  Normalizat = 1.78257
  Prefactor  = 0.743199
 **********
 **   18 **HESSE 
 **********

 FCN=   10157.06     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.992        58.188        .22167E-05   -1.5636    
   2  Index         2.5231        1.4610        .45338E-03   -.51827    
   3  Normalizat    1.7826        .29859        .73384E-04   -.70119    
   4  Prefactor     .74320        .94687E-01    .34063E-04   -1.0186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1564e-10
Minuit parameter uncertainties:
  1  54.9914
  2  1.49009
  3  0.298893
  4  0.0947075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/114856': 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) = 10157.0560437
delta logL = 0.0218931142699

Extracting fit parameters...

4FGL J1704.2+1234
   Spectrum: PowerLaw
263    Prefactor:  1.299e+01  5.499e+01  0.000e+00  1.000e+06 ( 1.000e-14)
264        Index:  2.523e+00  1.490e+00  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:  7.432e-01  9.471e-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.783e+00  2.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/114856/cmap_HighResolution_696038401_696297601_4FGL_J1704.2+1234_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.08e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2023-01-25 01:29:02.113688', job_id='114856', GAL2='0.74', fit_tolerance='1e-08', EG2='1.78', EG='1.79', time_epoch_completed='1674638942.11', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='2.19e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1762' AND source_name='4FGL J1704.2+1234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 01:29:02 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 114856: <4FGL_J1704.2+1234_daily_bin1762> in cluster <slac> Done

Job <4FGL_J1704.2+1234_daily_bin1762> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Jan 25 01:15:22 2023
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 01:16:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 01:16:15 2023
Terminated at Wed Jan 25 01:29:02 2023
Results reported at Wed Jan 25 01:29:02 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1704.2+1234_daily_bin1762 256.06 12.5752 696038401 696297601 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 :                                   738.53 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            820 sec.

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

