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


Performing analysis on: 4FGL_J0704.8+4907_daily_bin1710
RA = 106.207, Dec = 49.1318
tmin = 682560001, tmax = 682819201
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='46494', job_status='RUN', time_executed='2022-09-16 12:41:38.076962', time_epoch_executed='1663357298.08' WHERE source_name='4FGL J0704.8+4907' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/46494

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/46494/ft1_4FGL_J0704.8+4907_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/46494/ft2_4FGL_J0704.8+4907_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/46494/ft1_4FGL_J0704.8+4907_daily_bin1710.fits outfile=/scratch/kocevski/46494/ft1_filteredMKT_4FGL_J0704.8+4907_daily_bin1710.fits ra=106.207 dec=49.1318 rad=12.0 tmin=682560001.0 tmax=682819201.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.69
user 3.42
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/46494/ft2_4FGL_J0704.8+4907_daily_bin1710.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/46494/ft2_4FGL_J0704.8+4907_daily_bin1710.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/46494/ft1_filteredMKT_4FGL_J0704.8+4907_daily_bin1710.fits evtable="EVENTS" outfile="/scratch/kocevski/46494/ft1_filtered_4FGL_J0704.8+4907_daily_bin1710.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.33
sys 0.16

Number of photons that the gtmktime cut: 885

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/46494/ft1_filtered_4FGL_J0704.8+4907_daily_bin1710.fits" evtable="EVENTS" scfile=/scratch/kocevski/46494/ft2_4FGL_J0704.8+4907_daily_bin1710.fits sctable="SC_DATA" outfile=/scratch/kocevski/46494/ltcube_682560001_682819201_4FGL_J0704.8+4907_daily_bin1710.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/46494/ft2_4FGL_J0704.8+4907_daily_bin1710.fits
.....................!
real 15.03
user 14.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/46494/ft1_filtered_4FGL_J0704.8+4907_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/46494/ft2_4FGL_J0704.8+4907_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/46494/ltcube_682560001_682819201_4FGL_J0704.8+4907_daily_bin1710.fits outfile=/scratch/kocevski/46494/expmap_682560001_682819201_4FGL_J0704.8+4907_daily_bin1710.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/46494/ltcube_682560001_682819201_4FGL_J0704.8+4907_daily_bin1710.fits
.....................!
real 192.65
user 185.32
sys 5.91

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 HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Added 191 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 J0704.8+4907 @ 106.207 49.1318

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/46494/ft1_filtered_4FGL_J0704.8+4907_daily_bin1710.fits scfile=/scratch/kocevski/46494/ft2_4FGL_J0704.8+4907_daily_bin1710.fits outfile=/scratch/kocevski/46494/cmap_682560001_682819201_4FGL_J0704.8+4907_daily_bin1710.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=106.207 yref=49.1318 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/46494/ft1_filtered_4FGL_J0704.8+4907_daily_bin1710.fits scfile=/scratch/kocevski/46494/ft2_4FGL_J0704.8+4907_daily_bin1710.fits outfile=/scratch/kocevski/46494/cmap_HighResolution_682560001_682819201_4FGL_J0704.8+4907_daily_bin1710.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=106.207 yref=49.1318 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/46494/ft1_filtered_4FGL_J0704.8+4907_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/46494/ft2_4FGL_J0704.8+4907_daily_bin1710.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/46494/Model_4FGL_J0704.8+4907_daily_bin1710.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 GAL_V02
adding source HB 9
Working on...
/scratch/kocevski/46494/ft1_filtered_4FGL_J0704.8+4907_daily_bin1710.fits.....................!
real 125.55
user 123.81
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/46494/ft1_filtered_4FGL_J0704.8+4907_daily_bin1710.fits', '/scratch/kocevski/46494/ft2_4FGL_J0704.8+4907_daily_bin1710.fits', expMap='/scratch/kocevski/46494/expmap_682560001_682819201_4FGL_J0704.8+4907_daily_bin1710.fits', expCube='/scratch/kocevski/46494/ltcube_682560001_682819201_4FGL_J0704.8+4907_daily_bin1710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/46494/Model_4FGL_J0704.8+4907_daily_bin1710.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0704.8+4907'

4FGL J0704.8+4907
   Spectrum: LogParabola
265         norm:  1.520e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
266        alpha:  2.321e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
267         beta:  1.530e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
268           Eb:  7.828e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/46494/ft1_filtered_4FGL_J0704.8+4907_daily_bin1710.fits
Spacecraft file(s): /scratch/kocevski/46494/ft2_4FGL_J0704.8+4907_daily_bin1710.fits
Exposure map: /scratch/kocevski/46494/expmap_682560001_682819201_4FGL_J0704.8+4907_daily_bin1710.fits
Exposure cube: /scratch/kocevski/46494/ltcube_682560001_682819201_4FGL_J0704.8+4907_daily_bin1710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/46494/Model_4FGL_J0704.8+4907_daily_bin1710.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) = 9369.59367648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4419       1.0000          .0000       .10000E+07
     2 'norm      '    .72720E-08   1.0000          .0000       .10000E+07
     3 'norm      '    .66965       1.0000          .0000       .10000E+07
     4 'Prefactor '    10.096       1.0000          .0000       .10000E+07
     5 'Prefactor '    .41649E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .43587E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .32292E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .94258E-07   1.0000          .0000       .10000E+07
     9 'norm      '    .61486E-04   1.0000          .0000       .10000E+07
    10 'norm      '    3.1594       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16246E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.3877       1.0000          .0000       .10000E+07
    13 'Prefactor '    42.504       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.6291       1.0000          .0000       .10000E+07
    15 'norm      '    .48272E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .49558E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    13.482       1.0000          .0000       .10000E+07
    18 'norm      '    .24497E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .14101E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .25480E-07   1.0000          .0000       .10000E+07
    21 'norm      '    2.2872       1.0000          .0000       .10000E+07
    22 'Prefactor '    .62880E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    16.447       1.0000          .0000       .10000E+07
    24 'norm      '    .66114E-07   1.0000          .0000       .10000E+07
    25 'norm      '     .0000       1.0000          .0000       .10000E+07
    26 'Normalizat'    .95556       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .99924       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9369.463     FROM MIGRAD    STATUS=CONVERGED    197 CALLS     1926 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4345        1.0313        .34396E-10   -.31469E-03
   2  norm          .55511E-10    1.4105       -.44143E-07** at limit **
   3  norm          .66278        3.8159       -.44055E-07   -.76224E-03
   4  Prefactor     10.113        7.7388        .25945E-07    .18720E-01
   5  Prefactor     .20539E-08    2.5822        .24436E-07** at limit **
   6  Prefactor     .17264E-07    9.6275       -.88002E-08** at limit **
   7  Prefactor     .61495E-06    27.803        .77200E-08** at limit **
   8  norm          .70943E-07    4.2702        .18256E-07** at limit **
   9  norm          .72164E-09    2.5046       -.16207E-07** at limit **
  10  norm          3.1342        3.4978        .28908E-07    .39043E-03
  11  Prefactor     .14766E-07    4.0618        .38648E-07** at limit **
  12  Prefactor     2.4017        5.0795       -.16093E-07   -.14767E-02
  13  Prefactor     43.111        9.2668       -.46470E-08    .11134    
  14  Prefactor     4.6183        8.5090        .19547E-07   -.45062E-01
  15  norm          .73275E-08    9.5732        .48641E-09** at limit **
  16  Prefactor     .58220E-06    24.541       -.24473E-07** at limit **
  17  Prefactor     13.374        3.1314       -.28652E-08    .60791E-02
  18  norm           .0000        .73869        .14960E-07** at limit **
  19  Prefactor     .43299E-08    5.7195       -.40396E-07** at limit **
  20  Prefactor     .84377E-08    4.5662       -.72262E-07** at limit **
  21  norm          2.2906        1.6740       -.91283E-08   -.17203E-02
  22  Prefactor     .14433E-08    2.5547        .85325E-09** at limit **
  23  Prefactor     13.332        37.654       -.74267E-07    .22272E-02
  24  norm           .0000        .84699        .50096E-08** at limit **
  25  norm           .0000        .42605       -.38681E-07** at limit **
  26  Normalizat    .95747        .19661        .19800E-05   -.16874E-03
  27  Prefactor     .99864        .97517E-01   -.18506E-05   -.61616E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.43448
  norm       = 5.55112e-11
  norm       = 0.662782
  Prefactor  = 10.1125
  Prefactor  = 2.05391e-09
  Prefactor  = 1.7264e-08
  Prefactor  = 6.14953e-07
  norm       = 7.09433e-08
  norm       = 7.21645e-10
  norm       = 3.13424
  Prefactor  = 1.4766e-08
  Prefactor  = 2.40172
  Prefactor  = 43.1115
  Prefactor  = 4.61833
  norm       = 7.32747e-09
  Prefactor  = 5.82201e-07
  Prefactor  = 13.3741
  norm       = 0
  Prefactor  = 4.32987e-09
  Prefactor  = 8.43769e-09
  norm       = 2.29058
  Prefactor  = 1.44329e-09
  Prefactor  = 13.3322
  norm       = 0
  norm       = 0
  Normalizat = 0.957475
  Prefactor  = 0.998636
 **********
 **   18 **HESSE 
 **********

 FCN=   9369.463     FROM HESSE     STATUS=OK           538 CALLS     2464 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4345        24.056        .36741E-03   -1.5653    
   2  norm          .55511E-10    1.4038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .66278        3.7825        .63207E-03   -1.5692    
   4  Prefactor     10.113        7.7760        .31511E-03   -1.5644    
   5  Prefactor     .20539E-08    2.5938        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .17264E-07    10.723        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .61495E-06    30.330        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .70943E-07    4.5065        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .72164E-09    2.5051        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.1342        3.5375        .56997E-03   -1.5673    
  11  Prefactor     .14766E-07    4.1291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4017        5.1643        .66257E-03   -1.5677    
  13  Prefactor     43.111        19.034        .15340E-03   -1.5577    
  14  Prefactor     4.6183        14.065        .46756E-03   -1.5665    
  15  norm          .73275E-08    12.093        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .58220E-06    26.955        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.374        26.345        .27254E-03   -1.5635    
  18  norm           .0000        .71053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .43299E-08    5.7452        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .84377E-08    4.6090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2906        1.6793        .67851E-03   -1.5678    
  22  Prefactor     .14433E-08    2.5667        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.332        37.609        .24669E-03   -1.5635    
  24  norm           .0000        .84987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm           .0000        .42619        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .95747        .17474        .75371E-01   -.94469    
  27  Prefactor     .99864        .85140E-01    .46258E-01   -.92775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86962e-06
Minuit parameter uncertainties:
  1  24.0558
  2  1.98458e-05
  3  3.16667
  4  7.77599
  5  0.000146423
  6  0.000860566
  7  0.0086377
  8  0.00113077
  9  8.65759e-05
  10  3.5375
  11  0.000493916
  12  5.16428
  13  19.034
  14  14.0655
  15  0.000595902
  16  0.00792293
  17  26.345
  18  2.51018e-06
  19  0.000316092
  20  0.00039469
  21  1.67932
  22  0.000120918
  23  37.6097
  24  3.0253e-06
  25  4.80122e-06
  26  0.17484
  27  0.0851513
Done.

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

Extracting fit parameters...

4FGL J0704.8+4907
   Spectrum: LogParabola
265         norm:  3.134e+00  3.537e+00  0.000e+00  1.000e+06 ( 1.000e-12)
266        alpha:  2.321e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
267         beta:  1.530e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
268           Eb:  7.828e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.986e-01  8.515e-02  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  9.575e-01  1.748e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 106.207 49.132
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 2.03e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 7.32e-06 +/- 8.26e-06

TS (Fixed Index): 1.81
Ra Dec: 106.207 49.132
Photon Flux Upper Limit: 8.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/46494/likelihoodResults_682560001_682819201_4FGL_J0704.8+4907_daily_bin1710.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) = 9369.46293983
delta logL = 0.000334688393195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9369.46287288
delta logL = 0.000401634511945

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9369.463     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      193 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1101        3.8088        .57257E-03    .20558E-02
   2  alpha         2.3522        1.1274        .41244E-01    .15186E-03
   3  Normalizat    .95681        .16703        .75394E-01    .26581E-04
   4  Prefactor     .99880        .83905E-01    .46252E-01   -.71762E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 3.11015
  alpha      = 2.35222
  Normalizat = 0.956809
  Prefactor  = 0.998799
 **********
 **   18 **HESSE 
 **********

 FCN=   9369.463     FROM HESSE     STATUS=OK            31 CALLS      224 TOTAL
                     EDM=   .53E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1101        3.5258        .18034E-04   -1.5673    
   2  alpha         2.3522        1.0527        .82489E-02   -.59146E-01
   3  Normalizat    .95681        .19152        .33364E-03   -.94492    
   4  Prefactor     .99880        .96381E-01    .16476E-03   -.92770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26982e-14
Minuit parameter uncertainties:
  1  3.52581
  2  1.08668
  3  0.19166
  4  0.0963978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/46494': 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) = 9369.4628529
delta logL = 0.000421620361521

Extracting fit parameters...

4FGL J0704.8+4907
   Spectrum: LogParabola
265         norm:  3.110e+00  3.526e+00  0.000e+00  1.000e+06 ( 1.000e-12)
266        alpha:  2.352e+00  1.087e+00  0.000e+00  5.000e+00 ( 1.000e+00)
267         beta:  1.530e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
268           Eb:  7.828e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.988e-01  9.640e-02  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  9.568e-01  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 106.207 49.132
Photon Index (Free Index): 2.35 +/- 1.09
Photon Flux (Free Index): 2.10e-08 +/- 3.10e-08
Energy Flux (Free Index): 7.31e-06 +/- 7.98e-06

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/46494/cmap_HighResolution_682560001_682819201_4FGL_J0704.8+4907_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.90e-05', comment='SUCCESS', photon_flux='2.03e-08', energy_flux2='7.31e-06', photon_flux_error='2.30e-08', dlogl='4.22e-04', energy_flux='7.32e-06', photon_flux2='2.10e-08', job_status='DONE', time_completed='2022-09-16 12:56:23.071685', photon_index_error2='1.09', photon_index2='2.35', ts='1.81', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='8.06e-08', energy_flux_error2='7.98e-06', EG='0.96', time_epoch_completed='1663358183.07', return_code='0', job_id='46494', GAL2='1.00', EG2='0.96', return_code2='0', energy_flux_error='8.26e-06', photon_flux_error2='3.10e-08', ts2='1.82', photon_index='2.32' WHERE bin_id='1710' AND source_name='4FGL J0704.8+4907' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 12:56:23 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 46494: <4FGL_J0704.8+4907_daily_bin1710> in cluster <slac> Done

Job <4FGL_J0704.8+4907_daily_bin1710> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 12:40:14 2022
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 12:40:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 12:40:26 2022
Terminated at Fri Sep 16 12:56:23 2022
Results reported at Fri Sep 16 12:56:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0704.8+4907_daily_bin1710 106.207 49.1318 682560001 682819201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0704.8+4907 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   883.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            969 sec.

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

