/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 3 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 = 7470
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1606.9+5919_daily_bin726
RA = 241.734, Dec = 59.3201
tmin = 427507201, tmax = 427766401
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='24566', job_status='RUN', time_executed='2021-09-13 08:03:00.113519', time_epoch_executed='1631545380.11' WHERE source_name='4FGL J1606.9+5919' and cadence='daily' and bin_id='726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/24566

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/24566/ft1_4FGL_J1606.9+5919_daily_bin726.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/24566/ft2_4FGL_J1606.9+5919_daily_bin726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/24566/ft1_4FGL_J1606.9+5919_daily_bin726.fits outfile=/scratch/kocevski/24566/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin726.fits ra=241.734 dec=59.3201 rad=12.0 tmin=427507201.0 tmax=427766401.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.50
user 5.19
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/24566/ft2_4FGL_J1606.9+5919_daily_bin726.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/24566/ft2_4FGL_J1606.9+5919_daily_bin726.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/24566/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin726.fits evtable="EVENTS" outfile="/scratch/kocevski/24566/ft1_filtered_4FGL_J1606.9+5919_daily_bin726.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.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/24566/ft1_filtered_4FGL_J1606.9+5919_daily_bin726.fits" evtable="EVENTS" scfile=/scratch/kocevski/24566/ft2_4FGL_J1606.9+5919_daily_bin726.fits sctable="SC_DATA" outfile=/scratch/kocevski/24566/ltcube_427507201_427766401_4FGL_J1606.9+5919_daily_bin726.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/24566/ft2_4FGL_J1606.9+5919_daily_bin726.fits
.....................!
real 14.62
user 14.24
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/24566/ft1_filtered_4FGL_J1606.9+5919_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/24566/ft2_4FGL_J1606.9+5919_daily_bin726.fits sctable="SC_DATA" expcube=/scratch/kocevski/24566/ltcube_427507201_427766401_4FGL_J1606.9+5919_daily_bin726.fits outfile=/scratch/kocevski/24566/expmap_427507201_427766401_4FGL_J1606.9+5919_daily_bin726.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/24566/ltcube_427507201_427766401_4FGL_J1606.9+5919_daily_bin726.fits
.....................!
real 194.67
user 188.14
sys 5.90

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

Setting source of interest to:
4FGL J1606.9+5919 @ 241.734 59.3201

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/24566/ft1_filtered_4FGL_J1606.9+5919_daily_bin726.fits scfile=/scratch/kocevski/24566/ft2_4FGL_J1606.9+5919_daily_bin726.fits outfile=/scratch/kocevski/24566/cmap_427507201_427766401_4FGL_J1606.9+5919_daily_bin726.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=241.734 yref=59.3201 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/24566/ft1_filtered_4FGL_J1606.9+5919_daily_bin726.fits scfile=/scratch/kocevski/24566/ft2_4FGL_J1606.9+5919_daily_bin726.fits outfile=/scratch/kocevski/24566/cmap_HighResolution_427507201_427766401_4FGL_J1606.9+5919_daily_bin726.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=241.734 yref=59.3201 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/24566/ft1_filtered_4FGL_J1606.9+5919_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/24566/ft2_4FGL_J1606.9+5919_daily_bin726.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/24566/Model_4FGL_J1606.9+5919_daily_bin726.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/24566/ft1_filtered_4FGL_J1606.9+5919_daily_bin726.fits.....................!
real 41.54
user 40.22
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/24566/ft1_filtered_4FGL_J1606.9+5919_daily_bin726.fits', '/scratch/kocevski/24566/ft2_4FGL_J1606.9+5919_daily_bin726.fits', expMap='/scratch/kocevski/24566/expmap_427507201_427766401_4FGL_J1606.9+5919_daily_bin726.fits', expCube='/scratch/kocevski/24566/ltcube_427507201_427766401_4FGL_J1606.9+5919_daily_bin726.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/24566/Model_4FGL_J1606.9+5919_daily_bin726.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1606.9+5919'

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  2.197e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
330        Index:  2.114e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
331        Scale:  2.350e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/24566/ft1_filtered_4FGL_J1606.9+5919_daily_bin726.fits
Spacecraft file(s): /scratch/kocevski/24566/ft2_4FGL_J1606.9+5919_daily_bin726.fits
Exposure map: /scratch/kocevski/24566/expmap_427507201_427766401_4FGL_J1606.9+5919_daily_bin726.fits
Exposure cube: /scratch/kocevski/24566/ltcube_427507201_427766401_4FGL_J1606.9+5919_daily_bin726.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/24566/Model_4FGL_J1606.9+5919_daily_bin726.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) = 4344.03792236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.112       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22608E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .44074       1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.423       1.0000         .10000E-03   10000.    
     6 'norm      '    6.4085       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .41637E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4708       1.0000         .10000E-03   10000.    
     9 'norm      '    .71615E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30788E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25181E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23570E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    22.625       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9882       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14853E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .18609E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2583       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14912E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .64853E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .67474       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16753E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.397       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2560       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.5507       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .36273E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3859       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .44483       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4343.983     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     2833 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.189       -.15251E-06** at limit **
   2  Prefactor     12.049        13.468       -.36233E-06    .30877E-04
   3  Prefactor     .10000E-03    12.638       -.74434E-06** at limit **
   4  Prefactor     .61640        12.632       -.23446E-06    .32398E-04
   5  Prefactor     36.756        28.705        .18955E-06    .71009E-04
   6  norm          6.4308        3.2583       -.63351E-08    .34751E-04
   7  Prefactor     .10000E-03    20.770       -.90795E-07** at limit **
   8  Prefactor     5.3744        8.8030        .13884E-05    .28386E-04
   9  norm          .10000E-03    13.188       -.14976E-05** at limit **
  10  Prefactor     .10000E-03    15.022        .68971E-06** at limit **
  11  Prefactor     .10000E-03    21.204       -.59198E-07** at limit **
  12  Prefactor     .10000E-03    2.9735        .51047E-07** at limit **
  13  norm          22.588        20.832       -.14980E-07    .22589E-05
  14  Prefactor     2.9991        8.6599       -.32252E-06    .40335E-04
  15  Prefactor     .10000E-03    36.242       -.49545E-06** at limit **
  16  norm          .10000E-03    10.231        .85450E-08** at limit **
  17  Prefactor     2.2918        4.5912       -.32730E-06    .53649E-04
  18  Prefactor     .10000E-03    83.951        .14149E-05** at limit **
  19  Prefactor     .10000E-03    19.290       -.34074E-06** at limit **
  20  norm          .67051        .75233       -.91271E-07    .73416E-04
  21  Prefactor     .10000E-03    2.8265       -.66977E-07** at limit **
  22  Prefactor     18.914        18.414       -.38069E-06   -.60278E-04
  23  Prefactor     1.2565        9.2775       -.18619E-05    .46296E-04
  24  Prefactor     6.5997        15.559        .25967E-06    .50211E-04
  25  Prefactor     .10000E-03    55.423        .35824E-06** at limit **
  26  Normalizat    1.3859        .20378        .10106E-05    .93245E-04
  27  Prefactor     .44459        .18364       -.89049E-06    .11291E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.0492
  Prefactor  = 0.0001
  Prefactor  = 0.616402
  Prefactor  = 36.7558
  norm       = 6.43077
  Prefactor  = 0.0001
  Prefactor  = 5.37435
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.5876
  Prefactor  = 2.99907
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.29178
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.67051
  Prefactor  = 0.0001
  Prefactor  = 18.9138
  Prefactor  = 1.25647
  Prefactor  = 6.59971
  Prefactor  = 0.0001
  Normalizat = 1.38589
  Prefactor  = 0.44459
 **********
 **   18 **HESSE 
 **********

 FCN=   4343.983     FROM HESSE     STATUS=OK           496 CALLS     3329 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.049        13.404        .11511E-03   -1.5014    
   3  Prefactor     .10000E-03    12.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .61640        57.527        .42561E-02   -1.5551    
   5  Prefactor     36.756        29.344        .32758E-03   -1.4495    
   6  norm          6.4308        3.2607        .81985E-04   -1.5201    
   7  Prefactor     .10000E-03    20.778        .21245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.3744        9.0563        .17179E-03   -1.5244    
   9  norm          .10000E-03    57.733        .37741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.170        .21379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.210        .21462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.9894        .11096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          22.588        20.806        .84210E-04   -1.4757    
  14  Prefactor     2.9991        8.6668        .23484E-03   -1.5362    
  15  Prefactor     .10000E-03    36.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.2918        4.5168        .18927E-03   -1.5405    
  18  Prefactor     .10000E-03    87.426        .45135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.471        .21022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .67051        .71648        .56078E-03   -1.5544    
  21  Prefactor     .10000E-03    2.8332        .10816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     18.914        18.520        .93378E-04   -1.4838    
  23  Prefactor     1.2565        9.5075        .36791E-03   -1.5484    
  24  Prefactor     6.5997        15.416        .15680E-03   -1.5194    
  25  Prefactor     .10000E-03    55.709        .21308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3859        .22348        .19352E-03   -.81038    
  27  Prefactor     .44459        .20040        .30509E-03   -1.1459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93142e-10
Minuit parameter uncertainties:
  1  2.10855e-05
  2  13.4078
  3  5.15491e-05
  4  11.9204
  5  29.3554
  6  3.26075
  7  1.59985e-05
  8  9.05864
  9  0.00102765
  10  6.35811e-05
  11  1.23038e-05
  12  1.07631e-06
  13  20.813
  14  8.67044
  15  5.31969e-05
  16  7.49152e-07
  17  4.51743
  18  0.000781424
  19  2.24095e-06
  20  0.716489
  21  4.42369e-06
  22  18.5257
  23  6.91382
  24  15.4252
  25  0.000264709
  26  0.223638
  27  0.200718
Done.

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

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  1.000e-04  6.358e-05  1.000e-04  1.000e+04 ( 1.000e-14)
330        Index:  2.114e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
331        Scale:  2.350e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  4.446e-01  2.007e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.386e+00  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 241.734 59.320
Photon Flux Upper Limit: 5.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/24566/likelihoodResults_427507201_427766401_4FGL_J1606.9+5919_daily_bin726.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) = 4343.9832104
delta logL = -0.00031309937367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4343.98290133
delta logL = -4.02675050282e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16161E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3429       1.0000          .0000       10.000    
     3 'Normalizat'    1.3859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44459       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+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=   4343.983     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      272 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10233E-03    2.2819        .18142E-01** at limit **
   2  Index         2.2716        5.4980        .50000        .25508E-04
   3  Normalizat    1.3859        .19972E-02    .19352E-03   -.47571E-03
   4  Prefactor     .44459        .18807E-02    .30509E-03   -.28778E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102331
  Index      = 2.27161
  Normalizat = 1.38589
  Prefactor  = 0.444589
 **********
 **   18 **HESSE 
 **********

 FCN=   4343.983     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      301 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10233E-03    52.971        .22520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2716        6.1103        .50000       -.57720    
   3  Normalizat    1.3859        .96552E-02    .38703E-04   -.81038    
   4  Prefactor     .44459        .90921E-02    .12204E-04   -1.1459    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.82501e-09
Minuit parameter uncertainties:
  1  0.0222446
  2  161.522
  3  0.00965519
  4  0.00909213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/24566': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4343.98289817
delta logL = -8.72321834322e-07

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  1.023e-04  2.224e-02  1.000e-04  1.000e+04 ( 1.000e-14)
330        Index:  2.272e+00  1.615e+02  0.000e+00  1.000e+01 (-1.000e+00)
331        Scale:  2.350e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  4.446e-01  9.092e-03  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.386e+00  9.655e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 241.734 59.320

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/24566/cmap_HighResolution_427507201_427766401_4FGL_J1606.9+5919_daily_bin726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e-03', job_status='DONE', photon_flux_upper_limit='5.24e-08', time_completed='2021-09-13 08:14:54.816865', job_id='24566', GAL2='0.44', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1631546094.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.44', dlogl='-8.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='726' AND source_name='4FGL J1606.9+5919' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 08:14:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 24566: <4FGL_J1606.9+5919_daily_bin726> in cluster <slac> Done

Job <4FGL_J1606.9+5919_daily_bin726> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep 13 08:00:44 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 08:02:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 08:02:47 2021
Terminated at Mon Sep 13 08:14:55 2021
Results reported at Mon Sep 13 08:14:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1606.9+5919_daily_bin726 241.734 59.3201 427507201 427766401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1606.9+5919 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   709.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            851 sec.

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

