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


Performing analysis on: 4FGL_J1704.2+1234_daily_bin1761
RA = 256.06, Dec = 12.5752
tmin = 695779201, tmax = 696038401
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='927755', job_status='RUN', time_executed='2023-01-22 01:18:07.592679', time_epoch_executed='1674379087.59' WHERE source_name='4FGL J1704.2+1234' and cadence='daily' and bin_id='1761'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927755

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927755/ft1_4FGL_J1704.2+1234_daily_bin1761.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927755/ft2_4FGL_J1704.2+1234_daily_bin1761.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927755/ft1_4FGL_J1704.2+1234_daily_bin1761.fits outfile=/scratch/kocevski/927755/ft1_filteredMKT_4FGL_J1704.2+1234_daily_bin1761.fits ra=256.06 dec=12.5752 rad=12.0 tmin=695779201.0 tmax=696038401.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 5.15
user 4.78
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/927755/ft2_4FGL_J1704.2+1234_daily_bin1761.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/927755/ft1_filteredMKT_4FGL_J1704.2+1234_daily_bin1761.fits evtable="EVENTS" outfile="/scratch/kocevski/927755/ft1_filtered_4FGL_J1704.2+1234_daily_bin1761.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.32
sys 0.17

Number of photons that the gtmktime cut: 855

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/927755/ft1_filtered_4FGL_J1704.2+1234_daily_bin1761.fits" evtable="EVENTS" scfile=/scratch/kocevski/927755/ft2_4FGL_J1704.2+1234_daily_bin1761.fits sctable="SC_DATA" outfile=/scratch/kocevski/927755/ltcube_695779201_696038401_4FGL_J1704.2+1234_daily_bin1761.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/927755/ft2_4FGL_J1704.2+1234_daily_bin1761.fits
.....................!
real 14.71
user 14.23
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927755/ft1_filtered_4FGL_J1704.2+1234_daily_bin1761.fits evtable="EVENTS" scfile=/scratch/kocevski/927755/ft2_4FGL_J1704.2+1234_daily_bin1761.fits sctable="SC_DATA" expcube=/scratch/kocevski/927755/ltcube_695779201_696038401_4FGL_J1704.2+1234_daily_bin1761.fits outfile=/scratch/kocevski/927755/expmap_695779201_696038401_4FGL_J1704.2+1234_daily_bin1761.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/927755/ltcube_695779201_696038401_4FGL_J1704.2+1234_daily_bin1761.fits
.....................!
real 193.49
user 186.75
sys 5.72

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/927755/ft1_filtered_4FGL_J1704.2+1234_daily_bin1761.fits scfile=/scratch/kocevski/927755/ft2_4FGL_J1704.2+1234_daily_bin1761.fits outfile=/scratch/kocevski/927755/cmap_695779201_696038401_4FGL_J1704.2+1234_daily_bin1761.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/927755/ft1_filtered_4FGL_J1704.2+1234_daily_bin1761.fits scfile=/scratch/kocevski/927755/ft2_4FGL_J1704.2+1234_daily_bin1761.fits outfile=/scratch/kocevski/927755/cmap_HighResolution_695779201_696038401_4FGL_J1704.2+1234_daily_bin1761.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.236       1.0000          .0000       .10000E+07
     2 'Prefactor '    .15599E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .80916E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .42177E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    5.4404       1.0000          .0000       .10000E+07
     6 'Prefactor '    .47848E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3455       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.2168       1.0000          .0000       .10000E+07
     9 'Prefactor '    5.5295       1.0000          .0000       .10000E+07
    10 'Prefactor '    .56503E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .48295E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    .15325E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .73536E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .38006       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.8664       1.0000          .0000       .10000E+07
    16 'norm      '    .42980E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .65747E-06   1.0000          .0000       .10000E+07
    18 'norm      '    .93402       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0777       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99262       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=   9523.033     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     1473 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.348        40.705        .26737E-06   -.17801E-01
   2  Prefactor     .12212E-08    2.9928       -.71512E-07** at limit **
   3  Prefactor      .0000        2.0860        .34986E-09** at limit **
   4  Prefactor     .73830E-08    3.3299       -.23902E-06** at limit **
   5  Prefactor     5.5073        4.6183       -.30103E-07   -.63195E-03
   6  Prefactor     .42744E-08    3.3064        .24612E-06** at limit **
   7  Prefactor     2.1487        4.7418        .93449E-07    .29447E-01
   8  Prefactor     .86377E-05    36.918        .14988E-06** at limit **
   9  Prefactor     5.5783        3.5002        .54362E-07   -.53309E-01
  10  Prefactor     .77716E-09    3.6025        .94122E-07** at limit **
  11  norm           .0000        1.1861        .75666E-07** at limit **
  12  Prefactor     .26201E-07    2.3119       -.73414E-07** at limit **
  13  norm          .20983E-07    5.1179        .63799E-07** at limit **
  14  Prefactor     .33529E-07    86.917       -.43108E-06** at limit **
  15  Prefactor     3.8764        3.5885        .28029E-07    .11058E-02
  16  norm           .0000        2.5059        .79065E-07** at limit **
  17  norm          .53457E-06    29.275        .80298E-07** at limit **
  18  norm          .93461        .91172        .13060E-07    .82980E-03
  19  Normalizat    1.0759        .31263       -.85093E-07   -.10601E-04
  20  Prefactor     .99295        .99812E-01   -.46824E-06   -.65991E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.3484
  Prefactor  = 1.22125e-09
  Prefactor  = 0
  Prefactor  = 7.38298e-09
  Prefactor  = 5.50732
  Prefactor  = 4.27436e-09
  Prefactor  = 2.14874
  Prefactor  = 8.6377e-06
  Prefactor  = 5.57829
  Prefactor  = 7.77156e-10
  norm       = 0
  Prefactor  = 2.62013e-08
  norm       = 2.09832e-08
  Prefactor  = 3.35287e-08
  Prefactor  = 3.8764
  norm       = 0
  norm       = 5.34572e-07
  norm       = 0.934614
  Normalizat = 1.07592
  Prefactor  = 0.992948
 **********
 **   18 **HESSE 
 **********

 FCN=   9523.033     FROM HESSE     STATUS=OK           327 CALLS     1800 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.348        41.023        .13456E-03   -1.5558    
   2  Prefactor     .12212E-08    5.2515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        2.0852        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .73830E-08    3.3883        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.5073        4.6259        .43057E-03   -1.5661    
   6  Prefactor     .42744E-08    3.3353        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.1487        69.277        .66912E-03   -1.5679    
   8  Prefactor     .86377E-05    215.22        .10232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5783        10.782        .42703E-03   -1.5661    
  10  Prefactor     .77716E-09    3.6111        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.1853        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .26201E-07    5.2892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .20983E-07    5.4622        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .33529E-07    86.979        .91835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8764        3.6068        .51295E-03   -1.5669    
  16  norm           .0000        2.5075        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .53457E-06    35.058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .93461        .91079        .43436E-03   -1.5689    
  19  Normalizat    1.0759        .27588        .10304       -.90529    
  20  Prefactor     .99295        .85839E-01    .34662E-01   -.92965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86194e-07
Minuit parameter uncertainties:
  1  41.0232
  2  0.000159003
  3  2.95542e-07
  4  0.000316267
  5  4.62588
  6  0.000238468
  7  24.4018
  8  0.0862359
  9  10.7818
  10  0.000105279
  11  6.47232e-06
  12  0.000744605
  13  0.000677387
  14  0.00341568
  15  3.6068
  16  1.32324e-05
  17  0.00865809
  18  0.910793
  19  0.276252
  20  0.0858507
Done.

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

Extracting fit parameters...

4FGL J1704.2+1234
   Spectrum: PowerLaw
263    Prefactor:  8.638e-06  8.624e-02  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:  9.929e-01  8.585e-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.076e+00  2.763e-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: 9.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/927755/likelihoodResults_695779201_696038401_4FGL_J1704.2+1234_daily_bin1761.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) = 9523.03489818
delta logL = -0.00235884691938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9523.01032859
delta logL = 0.0222107411046

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.920       1.0000          .0000       .10000E+07
     2 'Index     '    1.6623       1.0000          .0000       10.000    
     3 'Normalizat'    1.0780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99128       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.

 FCN=   9523.010     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      267 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.920        1643.5        .25904E-03    .10987E-02
   2  Index         1.6624        1.7500        .50000        .38879E-05
   3  Normalizat    1.0780        .29112E-01    .10296        .32438E-04
   4  Prefactor     .99129        .93366E-02    .34687E-01   -.57499E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9196
  Index      = 1.66243
  Normalizat = 1.07798
  Prefactor  = 0.991286
 **********
 **   18 **HESSE 
 **********

 FCN=   9523.010     FROM HESSE     STATUS=OK            31 CALLS      298 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.920        94.482        .10362E-04   -1.5631    
   2  Index         1.6624        1.3406        .10971E-01   -.73087    
   3  Normalizat    1.0780        .30350        .45629E-03   -.90462    
   4  Prefactor     .99129        .99369E-01    .15327E-03   -.93021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37971e-10
Minuit parameter uncertainties:
  1  75.0921
  2  1.3714
  3  0.303987
  4  0.0993873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927755': 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) = 9523.01032858
delta logL = 0.0222107455556

Extracting fit parameters...

4FGL J1704.2+1234
   Spectrum: PowerLaw
263    Prefactor:  1.492e+01  7.509e+01  0.000e+00  1.000e+06 ( 1.000e-14)
264        Index:  1.662e+00  1.371e+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:  9.913e-01  9.939e-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.078e+00  3.040e-01  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/927755/cmap_HighResolution_695779201_696038401_4FGL_J1704.2+1234_daily_bin1761.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.02e-03', job_status='DONE', photon_flux_upper_limit='9.21e-08', time_completed='2023-01-22 01:29:37.849562', job_id='927755', GAL2='0.99', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1674379777.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.22e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1761' AND source_name='4FGL J1704.2+1234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 22 01:29:37 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 927755: <4FGL_J1704.2+1234_daily_bin1761> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1704.2+1234_daily_bin1761 256.06 12.5752 695779201 696038401 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 :                                   690.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            860 sec.

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

