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


Performing analysis on: 4FGL_J1604.6+5714_daily_bin940
RA = 241.158, Dec = 57.2381
tmin = 482976001, tmax = 483235201
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='10397', job_status='RUN', time_executed='2021-09-13 07:11:10.495733', time_epoch_executed='1631542270.5' WHERE source_name='4FGL J1604.6+5714' and cadence='daily' and bin_id='940'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10397

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10397/ft1_4FGL_J1604.6+5714_daily_bin940.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10397/ft2_4FGL_J1604.6+5714_daily_bin940.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10397/ft1_4FGL_J1604.6+5714_daily_bin940.fits outfile=/scratch/kocevski/10397/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin940.fits ra=241.158 dec=57.2381 rad=12.0 tmin=482976001.0 tmax=483235201.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 4.22
user 3.96
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/10397/ft2_4FGL_J1604.6+5714_daily_bin940.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10397/ft2_4FGL_J1604.6+5714_daily_bin940.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/10397/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin940.fits evtable="EVENTS" outfile="/scratch/kocevski/10397/ft1_filtered_4FGL_J1604.6+5714_daily_bin940.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.61
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10397/ft1_filtered_4FGL_J1604.6+5714_daily_bin940.fits" evtable="EVENTS" scfile=/scratch/kocevski/10397/ft2_4FGL_J1604.6+5714_daily_bin940.fits sctable="SC_DATA" outfile=/scratch/kocevski/10397/ltcube_482976001_483235201_4FGL_J1604.6+5714_daily_bin940.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/10397/ft2_4FGL_J1604.6+5714_daily_bin940.fits
.....................!
real 13.20
user 12.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10397/ft1_filtered_4FGL_J1604.6+5714_daily_bin940.fits evtable="EVENTS" scfile=/scratch/kocevski/10397/ft2_4FGL_J1604.6+5714_daily_bin940.fits sctable="SC_DATA" expcube=/scratch/kocevski/10397/ltcube_482976001_483235201_4FGL_J1604.6+5714_daily_bin940.fits outfile=/scratch/kocevski/10397/expmap_482976001_483235201_4FGL_J1604.6+5714_daily_bin940.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/10397/ltcube_482976001_483235201_4FGL_J1604.6+5714_daily_bin940.fits
.....................!
real 190.42
user 185.63
sys 4.24

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 J1604.6+5714 @ 241.158 57.2381

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/10397/ft1_filtered_4FGL_J1604.6+5714_daily_bin940.fits scfile=/scratch/kocevski/10397/ft2_4FGL_J1604.6+5714_daily_bin940.fits outfile=/scratch/kocevski/10397/cmap_482976001_483235201_4FGL_J1604.6+5714_daily_bin940.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.158 yref=57.2381 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10397/ft1_filtered_4FGL_J1604.6+5714_daily_bin940.fits scfile=/scratch/kocevski/10397/ft2_4FGL_J1604.6+5714_daily_bin940.fits outfile=/scratch/kocevski/10397/cmap_HighResolution_482976001_483235201_4FGL_J1604.6+5714_daily_bin940.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.158 yref=57.2381 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/10397/ft1_filtered_4FGL_J1604.6+5714_daily_bin940.fits evtable="EVENTS" scfile=/scratch/kocevski/10397/ft2_4FGL_J1604.6+5714_daily_bin940.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10397/Model_4FGL_J1604.6+5714_daily_bin940.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/10397/ft1_filtered_4FGL_J1604.6+5714_daily_bin940.fits.....................!
real 51.73
user 50.31
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/10397/ft1_filtered_4FGL_J1604.6+5714_daily_bin940.fits', '/scratch/kocevski/10397/ft2_4FGL_J1604.6+5714_daily_bin940.fits', expMap='/scratch/kocevski/10397/expmap_482976001_483235201_4FGL_J1604.6+5714_daily_bin940.fits', expCube='/scratch/kocevski/10397/ltcube_482976001_483235201_4FGL_J1604.6+5714_daily_bin940.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/10397/Model_4FGL_J1604.6+5714_daily_bin940.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1604.6+5714'

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  8.996e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
321        alpha:  2.348e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
322         beta:  7.626e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  5.868e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/10397/ft1_filtered_4FGL_J1604.6+5714_daily_bin940.fits
Spacecraft file(s): /scratch/kocevski/10397/ft2_4FGL_J1604.6+5714_daily_bin940.fits
Exposure map: /scratch/kocevski/10397/expmap_482976001_483235201_4FGL_J1604.6+5714_daily_bin940.fits
Exposure cube: /scratch/kocevski/10397/ltcube_482976001_483235201_4FGL_J1604.6+5714_daily_bin940.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/10397/Model_4FGL_J1604.6+5714_daily_bin940.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) = 5918.75095131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.6353       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9220       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.659       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.694       1.0000         .10000E-03   10000.    
     8 'norm      '    4.3728       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .77572E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    32.750       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7440       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11322E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1979       1.0000         .10000E-03   10000.    
    17 'norm      '    11.043       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .96827E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8367       1.0000         .10000E-03   10000.    
    20 'norm      '    9.2284       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3763       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.015       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .22835E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11656E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .20100       1.0000         .10000E-03   10000.    
    27 'Prefactor '    85.310       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0839       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .93605       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5918.732     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3777 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.769        .36978E-07** at limit **
   2  Prefactor     .10000E-03    22.786        .37418E-06** at limit **
   3  norm          2.6355        1.8560        .47003E-07    .12723E-04
   4  Prefactor     6.9227        7.6434        .22673E-06    .23882E-04
   5  Prefactor     .10000E-03    4.0861       -.34395E-07** at limit **
   6  Prefactor     14.664        19.692        .41174E-06    .81962E-05
   7  Prefactor     11.684        29.281        .17667E-06    .18840E-05
   8  norm          4.3726        2.6702        .61323E-07    .30647E-04
   9  Prefactor     .10000E-03    30.037       -.27944E-07** at limit **
  10  Prefactor     .10023E-03    5.9864       -.88187E-06** at limit **
  11  norm          32.756        11.769        .17607E-06    .34521E-03
  12  Prefactor     4.8549        49.584        .84897E-06    .32439E-04
  13  Prefactor     .10000E-03    21.816       -.21177E-06** at limit **
  14  Prefactor     .10000E-03    3.7647       -.19787E-06** at limit **
  15  Prefactor     .10000E-03    11.691       -.46089E-07** at limit **
  16  Prefactor     2.1982        6.6013        .14846E-05    .15605E-03
  17  norm          11.040        23.394       -.55173E-06   -.11421E-04
  18  Prefactor     .93212E-01    2.8585       -.50496E-06    .25284E-03
  19  Prefactor     1.8361        6.9662        .19315E-05    .13240E-03
  20  norm          9.2263        8.6799       -.78587E-08   -.22292E-03
  21  Prefactor     1.3770        3.4886        .97486E-06    .30770E-03
  22  Prefactor     16.016        10.928       -.14404E-06   -.24249E-04
  23  Prefactor     .10000E-03    12.978        .18075E-06** at limit **
  24  Prefactor     .10189E-03    6.1914        .15255E-05** at limit **
  25  Prefactor     .10000E-03    7.5160        .28322E-05** at limit **
  26  Prefactor     .19168        6.7843       -.11281E-05    .38636E-03
  27  Prefactor     85.373        69.352       -.87903E-06    .59381E-05
  28  Normalizat    1.0838        .19162       -.91826E-06   -.12760E-03
  29  Prefactor     .93606        .18477       -.34205E-06   -.15048E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.63552
  Prefactor  = 6.92272
  Prefactor  = 0.0001
  Prefactor  = 14.6642
  Prefactor  = 11.6842
  norm       = 4.37263
  Prefactor  = 0.0001
  Prefactor  = 0.000100229
  norm       = 32.7562
  Prefactor  = 4.85492
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.19825
  norm       = 11.0405
  Prefactor  = 0.0932119
  Prefactor  = 1.83613
  norm       = 9.2263
  Prefactor  = 1.37696
  Prefactor  = 16.0158
  Prefactor  = 0.0001
  Prefactor  = 0.000101887
  Prefactor  = 0.000100001
  Prefactor  = 0.191684
  Prefactor  = 85.373
  Normalizat = 1.08377
  Prefactor  = 0.936057
 **********
 **   18 **HESSE 
 **********

 FCN=   5918.732     FROM HESSE     STATUS=OK           575 CALLS     4352 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.6355        1.8585        .85263E-04   -1.5383    
   4  Prefactor     6.9227        7.6480        .15249E-03   -1.5182    
   5  Prefactor     .10000E-03    4.1105        .15175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.664        19.664        .10461E-03   -1.4942    
   7  Prefactor     11.684        29.231        .11715E-03   -1.5024    
   8  norm          4.3726        2.6709        .95162E-04   -1.5290    
   9  Prefactor     .10000E-03    30.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10023E-03    77.388        .32828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          32.756        11.136        .70020E-04   -1.4563    
  12  Prefactor     4.8549        49.213        .18474E-03   -1.5267    
  13  Prefactor     .10000E-03    21.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.8493        .28822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.1982        6.5658        .27755E-03   -1.5411    
  17  norm          11.040        23.330        .12056E-03   -1.5043    
  18  Prefactor     .93212E-01    48.108        .23823E-02   -1.5647    
  19  Prefactor     1.8361        6.9535        .30785E-03   -1.5437    
  20  norm          9.2263        8.6773        .13193E-03   -1.5100    
  21  Prefactor     1.3770        3.4619        .21218E-03   -1.5473    
  22  Prefactor     16.016        10.915        .10008E-03   -1.4907    
  23  Prefactor     .10000E-03    13.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10189E-03    9.8798        .54755E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.6139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .19168        85.272        .35222E-02   -1.5620    
  27  Prefactor     85.373        69.576        .21747E-03   -1.3857    
  28  Normalizat    1.0838        .22298        .23965E-03   -.90275    
  29  Prefactor     .93606        .21640        .25661E-03   -.94892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19499e-08
Minuit parameter uncertainties:
  1  2.75087e-05
  2  0.000101121
  3  1.8585
  4  7.64908
  5  3.23409e-06
  6  19.6725
  7  29.267
  8  2.67101
  9  1.87035e-05
  10  0.00843011
  11  11.1366
  12  30.9472
  13  7.30787e-05
  14  9.71131e-05
  15  2.58192e-06
  16  6.568
  17  23.3497
  18  4.23634
  19  6.95652
  20  8.67851
  21  3.46241
  22  10.9167
  23  1.32891e-05
  24  0.00863734
  25  0.000167669
  26  8.09538
  27  69.6421
  28  0.223178
  29  0.216599
Done.

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

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  3.276e+01  1.114e+01  1.000e-04  1.000e+04 ( 1.000e-12)
321        alpha:  2.348e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
322         beta:  7.626e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  5.868e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  9.361e-01  2.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  1.084e+00  2.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.40
Ra Dec: 241.158 57.238
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 1.38e-07 +/- 4.68e-08
Energy Flux (Fixed Index): 4.51e-05 +/- 1.53e-05

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) = 5918.09665651
delta logL = 0.635082681906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5918.09069767
delta logL = 0.64104151499

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    34.093       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9425       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90501       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5918.091     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      204 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          34.093        12.599        .17158E-02    .19024E-02
   2  alpha         1.9425        .33609        .23513       -.13152E-04
   3  Normalizat    1.1318        .17919        .53253E-01    .70048E-05
   4  Prefactor     .90501        .17802        .45069E-01    .12765E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 34.0926
  alpha      = 1.9425
  Normalizat = 1.13182
  Prefactor  = 0.905014
 **********
 **   18 **HESSE 
 **********

 FCN=   5918.091     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          34.093        12.247        .34315E-03   -1.4540    
   2  alpha         1.9425        .34827        .97188E-02   -.22489    
   3  Normalizat    1.1318        .21305        .23546E-03   -.88737    
   4  Prefactor     .90501        .21101        .26045E-03   -.95966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58838e-09
Minuit parameter uncertainties:
  1  12.2474
  2  0.349471
  3  0.213211
  4  0.211201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10397': 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) = 5918.09069766
delta logL = 0.641041525355

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  3.409e+01  1.225e+01  1.000e-04  1.000e+04 ( 1.000e-12)
321        alpha:  1.942e+00  3.495e-01  0.000e+00  5.000e+00 ( 1.000e+00)
322         beta:  7.626e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  5.868e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  9.050e-01  2.112e-01  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  1.132e+00  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.64
Ra Dec: 241.158 57.238
Photon Index (Free Index): 1.94 +/- 0.35
Photon Flux (Free Index): 1.00e-07 +/- 4.77e-08
Energy Flux (Free Index): 5.85e-05 +/- 2.77e-05

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/10397/cmap_HighResolution_482976001_483235201_4FGL_J1604.6+5714_daily_bin940.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.38e-07', energy_flux2='5.85e-05', photon_flux_error='4.68e-08', dlogl='6.41e-01', energy_flux='4.51e-05', photon_flux2='1.00e-07', job_status='DONE', time_completed='2021-09-13 07:24:54.401776', photon_index_error2='0.35', photon_index2='1.94', ts='26.40', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.77e-05', EG='1.08', time_epoch_completed='1631543094.4', return_code='0', job_id='10397', GAL2='0.91', EG2='1.13', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='4.77e-08', ts2='27.64', photon_index='2.35' WHERE bin_id='940' AND source_name='4FGL J1604.6+5714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 07:24:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 10397: <4FGL_J1604.6+5714_daily_bin940> in cluster <slac> Done

Job <4FGL_J1604.6+5714_daily_bin940> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 13 07:10:24 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 07:11:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 07:11:01 2021
Terminated at Mon Sep 13 07:24:55 2021
Results reported at Mon Sep 13 07:24:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1604.6+5714_daily_bin940 241.158 57.2381 482976001 483235201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1604.6+5714 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   820.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            871 sec.

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

