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 57 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1704.1+7647_monthly_bin169
RA = 256.037, Dec = 76.7923
tmin = 675043201, tmax = 677635201
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='179947', job_status='RUN', time_executed='2022-06-23 02:34:21.520380', time_epoch_executed='1655976861.52' WHERE source_name='4FGL J1704.1+7647' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/179947

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/179947/ft1_4FGL_J1704.1+7647_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/179947/ft2_4FGL_J1704.1+7647_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/179947/ft1_4FGL_J1704.1+7647_monthly_bin169.fits outfile=/scratch/kocevski/179947/ft1_filteredMKT_4FGL_J1704.1+7647_monthly_bin169.fits ra=256.037 dec=76.7923 rad=12.0 tmin=675043201.0 tmax=677635201.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 28.19
user 27.39
sys 0.73

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/179947/ft2_4FGL_J1704.1+7647_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/179947/ft2_4FGL_J1704.1+7647_monthly_bin169.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/179947/ft1_filteredMKT_4FGL_J1704.1+7647_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/179947/ft1_filtered_4FGL_J1704.1+7647_monthly_bin169.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.90
user 0.69
sys 0.20

Number of photons that the gtmktime cut: 13972

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/179947/ft1_filtered_4FGL_J1704.1+7647_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/179947/ft2_4FGL_J1704.1+7647_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/179947/ltcube_675043201_677635201_4FGL_J1704.1+7647_monthly_bin169.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/179947/ft2_4FGL_J1704.1+7647_monthly_bin169.fits
.....................!
real 171.99
user 171.21
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/179947/ft1_filtered_4FGL_J1704.1+7647_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/179947/ft2_4FGL_J1704.1+7647_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/179947/ltcube_675043201_677635201_4FGL_J1704.1+7647_monthly_bin169.fits outfile=/scratch/kocevski/179947/expmap_675043201_677635201_4FGL_J1704.1+7647_monthly_bin169.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/179947/ltcube_675043201_677635201_4FGL_J1704.1+7647_monthly_bin169.fits
.....................!
real 194.11
user 189.21
sys 4.46

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
Added 201 point sources and 0 extended sources

Setting source of interest to:
4FGL J1704.1+7647 @ 256.037 76.7923

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/179947/ft1_filtered_4FGL_J1704.1+7647_monthly_bin169.fits scfile=/scratch/kocevski/179947/ft2_4FGL_J1704.1+7647_monthly_bin169.fits outfile=/scratch/kocevski/179947/cmap_675043201_677635201_4FGL_J1704.1+7647_monthly_bin169.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.037 yref=76.7923 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.84
user 0.66
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/179947/ft1_filtered_4FGL_J1704.1+7647_monthly_bin169.fits scfile=/scratch/kocevski/179947/ft2_4FGL_J1704.1+7647_monthly_bin169.fits outfile=/scratch/kocevski/179947/cmap_HighResolution_675043201_677635201_4FGL_J1704.1+7647_monthly_bin169.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.037 yref=76.7923 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.81
user 0.64
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/179947/ft1_filtered_4FGL_J1704.1+7647_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/179947/ft2_4FGL_J1704.1+7647_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/179947/Model_4FGL_J1704.1+7647_monthly_bin169.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
Working on...
/scratch/kocevski/179947/ft1_filtered_4FGL_J1704.1+7647_monthly_bin169.fits.....................!
real 1458.03
user 1453.70
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/179947/ft1_filtered_4FGL_J1704.1+7647_monthly_bin169.fits', '/scratch/kocevski/179947/ft2_4FGL_J1704.1+7647_monthly_bin169.fits', expMap='/scratch/kocevski/179947/expmap_675043201_677635201_4FGL_J1704.1+7647_monthly_bin169.fits', expCube='/scratch/kocevski/179947/ltcube_675043201_677635201_4FGL_J1704.1+7647_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/179947/Model_4FGL_J1704.1+7647_monthly_bin169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1704.1+7647'

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.968e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/179947/ft1_filtered_4FGL_J1704.1+7647_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/179947/ft2_4FGL_J1704.1+7647_monthly_bin169.fits
Exposure map: /scratch/kocevski/179947/expmap_675043201_677635201_4FGL_J1704.1+7647_monthly_bin169.fits
Exposure cube: /scratch/kocevski/179947/ltcube_675043201_677635201_4FGL_J1704.1+7647_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/179947/Model_4FGL_J1704.1+7647_monthly_bin169.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) = 145849.528795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36170E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .94052       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1579       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.179       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.004       1.0000         .10000E-03   10000.    
     8 'norm      '    2.6116       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .51183E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .91401E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14955       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3466       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.5617       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7678       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0958       1.0000         .10000E-03   10000.    
    18 'norm      '    7.5730       1.0000         .10000E-03   10000.    
    19 'norm      '    5.0348       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1172       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.661       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.8357       1.0000         .10000E-03   10000.    
    25 'norm      '    1.9544       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.2987       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .90211       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0597       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   145849.4     FROM MIGRAD    STATUS=CONVERGED    128 CALLS     2539 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13260E-02    126.45       -.65721E-04** at limit **
   2  Prefactor     .94191        2.5100       -.25133E-07   -.20702E-04
   3  Prefactor     .10000E-03    1.2432        .78240E-07** at limit **
   4  Prefactor     .10000E-03    3.7635        .11015E-05** at limit **
   5  Prefactor     1.1582        4.3800       -.67811E-05   -.69728E-03
   6  Prefactor     12.181        1.7527       -.15874E-05   -.32592E-02
   7  Prefactor     13.015        9.6124        .50915E-05    .14669E-02
   8  norm          2.6116        1.9764       -.29615E-06   -.32189E-03
   9  Prefactor     .10000E-03    5.1613       -.11538E-05** at limit **
  10  Prefactor     .46183E-01    77.507        .73751E-05    .18181E-02
  11  norm          .91341E-01    .10137       -.41260E-07   -.14055E-02
  12  Prefactor     .10000E-03    1.2392        .76607E-07** at limit **
  13  Prefactor     .14948        .42827       -.76968E-06   -.23518E-03
  14  Prefactor     1.3470        2.3737       -.19739E-06   -.30166E-03
  15  Prefactor     9.5632        3.3235        .42019E-05    .11129E-01
  16  Prefactor     2.7740        7.9450       -.66829E-05    .69838E-03
  17  norm          3.0958        .56820        .24852E-07    .82479E-03
  18  norm          7.5730        .29927       -.43764E-07    .41856E-03
  19  norm          5.0349        1.0737       -.24689E-07   -.45856E-03
  20  Prefactor     .10000E-03    7.4005        .84069E-06** at limit **
  21  Prefactor     3.1177        1.3312        .25850E-07    .30223E-04
  22  Prefactor     .10000E-03    3.2911       -.18616E-06** at limit **
  23  Prefactor     15.668        12.197       -.89407E-05   -.43293E-02
  24  Prefactor     1.8405        1.1881        .21938E-07    .81399E-05
  25  norm          1.9545        .63292        .27111E-07    .10249E-02
  26  Prefactor     5.2987        2.4017        .23544E-06   -.60116E-04
  27  Normalizat    .90209        .46724E-01   -.35044E-06   -.81642E-03
  28  Prefactor     1.0597        .29793E-01    .25093E-06   -.10188E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00132599
  Prefactor  = 0.941913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.15821
  Prefactor  = 12.1811
  Prefactor  = 13.0149
  norm       = 2.6116
  Prefactor  = 0.0001
  Prefactor  = 0.0461834
  norm       = 0.0913407
  Prefactor  = 0.0001
  Prefactor  = 0.149481
  Prefactor  = 1.34699
  Prefactor  = 9.56318
  Prefactor  = 2.77401
  norm       = 3.09582
  norm       = 7.57295
  norm       = 5.03491
  Prefactor  = 0.0001
  Prefactor  = 3.11767
  Prefactor  = 0.0001
  Prefactor  = 15.6676
  Prefactor  = 1.84054
  norm       = 1.95449
  Prefactor  = 5.29866
  Normalizat = 0.902089
  Prefactor  = 1.05969
 **********
 **   18 **HESSE 
 **********

 FCN=   145849.4     FROM HESSE     STATUS=OK           615 CALLS     3154 TOTAL
                     EDM=   .75E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13260E-02    1.7417        .18516       -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .94191        2.4742        .12954E-01   -1.5514    
   3  Prefactor     .10000E-03    1.2141        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.7315        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1582        4.3592        .10718E-01   -1.5493    
   6  Prefactor     12.181        6.3940        .28696E-02   -1.5010    
   7  Prefactor     13.015        10.351        .27769E-02   -1.4986    
   8  norm          2.6116        1.9787        .63102E-02   -1.5385    
   9  Prefactor     .10000E-03    5.1578        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .46183E-01    1.1524        .14927       -1.5665    
  11  norm          .91341E-01    .11040        .94702E-02   -1.5648    
  12  Prefactor     .10000E-03    .19835        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .14948        .22313        .54103E-01   -1.5631    
  14  Prefactor     1.3470        2.4732        .94322E-02   -1.5476    
  15  Prefactor     9.5632        5.9251        .32399E-02   -1.5089    
  16  Prefactor     2.7740        8.4075        .61159E-02   -1.5375    
  17  norm          3.0958        .56962        .57622E-02   -1.5356    
  18  norm          7.5730        .30292        .36432E-02   -1.5158    
  19  norm          5.0349        1.0790        .44802E-03   -1.5259    
  20  Prefactor     .10000E-03    7.3926        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.1177        1.3789        .57413E-02   -1.5355    
  22  Prefactor     .10000E-03    .47550        .14108       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.668        13.204        .25302E-02   -1.4916    
  24  Prefactor     1.8405        1.1897        .76988E-02   -1.5437    
  25  norm          1.9545        .63581        .74199E-02   -1.5428    
  26  Prefactor     5.2987        2.4003        .43651E-02   -1.5248    
  27  Normalizat    .90209        .42723E-01    .71973E-01   -.96387    
  28  Prefactor     1.0597        .26374E-01    .39372E-01   -.90765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47537e-05
Minuit parameter uncertainties:
  1  0.0924213
  2  2.47445
  3  1.29125e-06
  4  6.55739e-06
  5  4.36043
  6  6.39432
  7  10.3527
  8  1.97877
  9  2.28609e-05
  10  0.460915
  11  0.110398
  12  9.45001e-07
  13  0.223132
  14  2.47342
  15  5.92551
  16  8.41109
  17  0.569623
  18  0.302919
  19  1.07897
  20  6.63155e-05
  21  1.37896
  22  5.36432e-06
  23  13.2063
  24  1.18967
  25  0.63581
  26  2.40037
  27  0.0427244
  28  0.0263745
Done.

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

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  1.495e-01  2.231e-01  1.000e-04  1.000e+04 ( 1.000e-12)
380        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.060e+00  2.637e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.021e-01  4.272e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 256.037 76.792
Photon Flux Upper Limit: 1.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/179947/likelihoodResults_675043201_677635201_4FGL_J1704.1+7647_monthly_bin169.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) = 145849.184251
delta logL = 0.195089280576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 145849.137653
delta logL = 0.241687083879

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27109       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9552       1.0000          .0000       10.000    
     3 'Normalizat'    .90284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0592       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   145849.1     FROM MIGRAD    STATUS=FAILED       101 CALLS      278 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27121        .42568        .24042E-02    .10098    
   2  Index         1.9569        .70609        .27664E-01   -.13105E-02
   3  Normalizat    .90282        .44661E-01    .31835E-03   -.26626E-03
   4  Prefactor     1.0592        .28735E-01    .18958E-03    .35387E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   145849.1     FROM SIMPLEX   STATUS=UNCHANGED     69 CALLS      347 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27121        .42568        .30789E-04   -1.5604    
   2  Index         1.9569        .70609        .70483E-03   -.65433    
   3  Normalizat    .90282        .44661E-01    .64410E-04   -.96361    
   4  Prefactor     1.0592        .28735E-01    .41435E-04   -.90781    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   145849.1     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      377 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27121        .43056        .48085E-03    .17250E-03
   2  Index         1.9569        .71917        .55328E-02   -.21698E-05
   3  Normalizat    .90282        .44682E-01    .12734E-04    .11428E-05
   4  Prefactor     1.0592        .28752E-01    .37915E-04    .19190E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.271206
  Index      = 1.95685
  Normalizat = 0.902824
  Prefactor  = 1.0592
 **********
 **   18 **HESSE 
 **********

 FCN=   145849.1     FROM HESSE     STATUS=OK            25 CALLS      402 TOTAL
                     EDM=   .26E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27121        .43156        .19234E-04   -1.5604    
   2  Index         1.9569        .72107        .22131E-03   -.65433    
   3  Normalizat    .90282        .44684E-01    .12734E-04   -.96361    
   4  Prefactor     1.0592        .28754E-01    .75830E-05   -.90781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64092e-14
Minuit parameter uncertainties:
  1  0.431567
  2  0.7251
  3  0.0446855
  4  0.0287546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/179947': 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) = 145849.13765
delta logL = 0.241690029216

Extracting fit parameters...

4FGL J1704.1+7647
   Spectrum: PowerLaw
379    Prefactor:  2.712e-01  4.316e-01  1.000e-04  1.000e+04 ( 1.000e-12)
380        Index:  1.957e+00  7.251e-01  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  7.874e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.059e+00  2.875e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.028e-01  4.469e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
Ra Dec: 256.037 76.792

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/179947/cmap_HighResolution_675043201_677635201_4FGL_J1704.1+7647_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-03', job_status='DONE', photon_flux_upper_limit='1.38e-08', time_completed='2022-06-23 06:08:29.645839', job_id='179947', GAL2='1.06', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1655989709.65', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.42e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='169' AND source_name='4FGL J1704.1+7647' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 06:08:29 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 179947: <4FGL_J1704.1+7647_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1704.1+7647_monthly_bin169> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Jun 23 02:30:29 2022
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:33:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:33:16 2022
Terminated at Thu Jun 23 06:08:31 2022
Results reported at Thu Jun 23 06:08:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1704.1+7647_monthly_bin169 256.037 76.7923 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1704.1+7647 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   12803.00 sec.
    Max Memory :                                 636 MB
    Average Memory :                             521.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12914 sec.
    Turnaround time :                            13082 sec.

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

