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


Performing analysis on: 4FGL_J0608.0+6721_daily_bin1392
RA = 92.0057, Dec = 67.3512
tmin = 600134401, tmax = 600393601
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='21826', job_status='RUN', time_executed='2021-08-24 08:03:47.631972', time_epoch_executed='1629817427.63' WHERE source_name='4FGL J0608.0+6721' and cadence='daily' and bin_id='1392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/21826

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/21826/ft1_4FGL_J0608.0+6721_daily_bin1392.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/21826/ft2_4FGL_J0608.0+6721_daily_bin1392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/21826/ft1_4FGL_J0608.0+6721_daily_bin1392.fits outfile=/scratch/kocevski/21826/ft1_filteredMKT_4FGL_J0608.0+6721_daily_bin1392.fits ra=92.0057 dec=67.3512 rad=12.0 tmin=600134401.0 tmax=600393601.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.75
user 3.54
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/21826/ft2_4FGL_J0608.0+6721_daily_bin1392.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/21826/ft2_4FGL_J0608.0+6721_daily_bin1392.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/21826/ft1_filteredMKT_4FGL_J0608.0+6721_daily_bin1392.fits evtable="EVENTS" outfile="/scratch/kocevski/21826/ft1_filtered_4FGL_J0608.0+6721_daily_bin1392.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.42
user 0.26
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/21826/ft1_filtered_4FGL_J0608.0+6721_daily_bin1392.fits" evtable="EVENTS" scfile=/scratch/kocevski/21826/ft2_4FGL_J0608.0+6721_daily_bin1392.fits sctable="SC_DATA" outfile=/scratch/kocevski/21826/ltcube_600134401_600393601_4FGL_J0608.0+6721_daily_bin1392.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/21826/ft2_4FGL_J0608.0+6721_daily_bin1392.fits
.....................!
real 9.08
user 8.78
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/21826/ft1_filtered_4FGL_J0608.0+6721_daily_bin1392.fits evtable="EVENTS" scfile=/scratch/kocevski/21826/ft2_4FGL_J0608.0+6721_daily_bin1392.fits sctable="SC_DATA" expcube=/scratch/kocevski/21826/ltcube_600134401_600393601_4FGL_J0608.0+6721_daily_bin1392.fits outfile=/scratch/kocevski/21826/expmap_600134401_600393601_4FGL_J0608.0+6721_daily_bin1392.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/21826/ltcube_600134401_600393601_4FGL_J0608.0+6721_daily_bin1392.fits
.....................!
real 145.51
user 141.42
sys 3.85

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 G150.3+4.5 in ROI with RadialDisk spatial model.
Added 198 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 J0608.0+6721 @ 92.0057 67.3512

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/21826/ft1_filtered_4FGL_J0608.0+6721_daily_bin1392.fits scfile=/scratch/kocevski/21826/ft2_4FGL_J0608.0+6721_daily_bin1392.fits outfile=/scratch/kocevski/21826/cmap_600134401_600393601_4FGL_J0608.0+6721_daily_bin1392.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=92.0057 yref=67.3512 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.44
user 0.29
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/21826/ft1_filtered_4FGL_J0608.0+6721_daily_bin1392.fits scfile=/scratch/kocevski/21826/ft2_4FGL_J0608.0+6721_daily_bin1392.fits outfile=/scratch/kocevski/21826/cmap_HighResolution_600134401_600393601_4FGL_J0608.0+6721_daily_bin1392.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=92.0057 yref=67.3512 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.46
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/21826/ft1_filtered_4FGL_J0608.0+6721_daily_bin1392.fits evtable="EVENTS" scfile=/scratch/kocevski/21826/ft2_4FGL_J0608.0+6721_daily_bin1392.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/21826/Model_4FGL_J0608.0+6721_daily_bin1392.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 G150.3+4.5
adding source GAL_V02
Working on...
/scratch/kocevski/21826/ft1_filtered_4FGL_J0608.0+6721_daily_bin1392.fits....................!
real 106.20
user 104.96
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/21826/ft1_filtered_4FGL_J0608.0+6721_daily_bin1392.fits', '/scratch/kocevski/21826/ft2_4FGL_J0608.0+6721_daily_bin1392.fits', expMap='/scratch/kocevski/21826/expmap_600134401_600393601_4FGL_J0608.0+6721_daily_bin1392.fits', expCube='/scratch/kocevski/21826/ltcube_600134401_600393601_4FGL_J0608.0+6721_daily_bin1392.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/21826/Model_4FGL_J0608.0+6721_daily_bin1392.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0608.0+6721'

4FGL J0608.0+6721
   Spectrum: PowerLaw
285    Prefactor:  8.452e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.490e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  8.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/21826/ft1_filtered_4FGL_J0608.0+6721_daily_bin1392.fits
Spacecraft file(s): /scratch/kocevski/21826/ft2_4FGL_J0608.0+6721_daily_bin1392.fits
Exposure map: /scratch/kocevski/21826/expmap_600134401_600393601_4FGL_J0608.0+6721_daily_bin1392.fits
Exposure cube: /scratch/kocevski/21826/ltcube_600134401_600393601_4FGL_J0608.0+6721_daily_bin1392.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/21826/Model_4FGL_J0608.0+6721_daily_bin1392.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) = 11356.7285188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.622       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.167       1.0000         .10000E-03   10000.    
     3 'norm      '    6.4470       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4846       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    57.983       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6727       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5380       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.485       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0806       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.323       1.0000         .10000E-03   10000.    
    15 'norm      '    .60065E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.7193       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.164       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0814       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90237       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11356.73     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2343 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.621        8.7297        .38121E-06    .58979E-04
   2  Prefactor     10.164        31.027       -.15209E-05   -.38935E-04
   3  norm          6.4464        9.9067        .71429E-06    .59830E-04
   4  norm          1.4836        41.444        .31251E-06   -.42701E-04
   5  Prefactor     .10000E-03    3.8182        .11186E-07** at limit **
   6  Prefactor     .10000E-03    54.901       -.34190E-05** at limit **
   7  norm          .10001E-03    72.290        .12749E-04** at limit **
   8  Prefactor     57.986        30.360        .53003E-06    .57347E-04
   9  Prefactor     3.6729        10.028        .23807E-05   -.62175E-03
  10  Prefactor     5.5379        8.1214        .47500E-06    .24192E-04
  11  Prefactor     .10000E-03    8.7211       -.68247E-08** at limit **
  12  Prefactor     24.492        24.601        .81000E-06    .48159E-04
  13  Prefactor     6.0801        33.866        .14101E-05   -.13184E-03
  14  Prefactor     25.324        26.137        .49825E-07    .35611E-05
  15  norm          .10000E-03    9.1853        .31208E-06** at limit **
  16  Prefactor     .10000E-03    6.5565       -.24798E-08** at limit **
  17  norm          6.7194        1.0518        .23073E-08   -.10378E-04
  18  Prefactor     .10001E-03    87.558       -.10229E-04** at limit **
  19  Prefactor     .10000E-03    11.442        .56006E-08** at limit **
  20  Prefactor     15.164        26.360        .33269E-06    .91718E-05
  21  Normalizat    1.0813        .17200       -.45709E-06   -.10719E-04
  22  Prefactor     .90239        .62565E-01   -.10565E-06    .35146E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6214
  Prefactor  = 10.1639
  norm       = 6.44645
  norm       = 1.48358
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100014
  Prefactor  = 57.986
  Prefactor  = 3.67286
  Prefactor  = 5.53793
  Prefactor  = 0.0001
  Prefactor  = 24.4917
  Prefactor  = 6.08005
  Prefactor  = 25.3238
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 6.71945
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 15.1643
  Normalizat = 1.08129
  Prefactor  = 0.902395
 **********
 **   18 **HESSE 
 **********

 FCN=   11356.73     FROM HESSE     STATUS=OK           344 CALLS     2687 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.621        8.7470        .11751E-03   -1.5026    
   2  Prefactor     10.164        31.117        .12566E-03   -1.5070    
   3  norm          6.4464        9.9166        .15807E-03   -1.5200    
   4  norm          1.4836        42.253        .35210E-03   -1.5464    
   5  Prefactor     .10000E-03    3.8219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    55.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    75.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     57.986        30.405        .52685E-04   -1.4184    
   9  Prefactor     3.6729        14.113        .10538E-02   -1.5325    
  10  Prefactor     5.5379        8.1162        .17073E-03   -1.5237    
  11  Prefactor     .10000E-03    8.7333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.492        24.648        .80952E-04   -1.4718    
  13  Prefactor     6.0801        35.950        .81410E-03   -1.5215    
  14  Prefactor     25.324        26.171        .79604E-04   -1.4701    
  15  norm          .10000E-03    41.584        .62834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.5629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.7194        1.0543        .15480E-04   -1.5189    
  18  Prefactor     .10001E-03    89.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.164        26.392        .10285E-03   -1.4929    
  21  Normalizat    1.0813        .18575        .37804E-03   -.90355    
  22  Prefactor     .90239        .67741E-01    .15288E-03   -.96057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74383e-09
Minuit parameter uncertainties:
  1  8.74799
  2  31.1667
  3  9.91909
  4  15.8466
  5  3.8852e-07
  6  0.000441654
  7  0.00208905
  8  30.4135
  9  14.126
  10  8.1178
  11  5.88641e-06
  12  24.6586
  13  29.5953
  14  26.183
  15  0.000565391
  16  5.39677e-07
  17  1.05429
  18  0.00182114
  19  3.471e-07
  20  26.4126
  21  0.185859
  22  0.0677471
Done.

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

Extracting fit parameters...

4FGL J0608.0+6721
   Spectrum: PowerLaw
285    Prefactor:  5.799e+01  3.041e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.490e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  8.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
646    Prefactor:  9.024e-01  6.775e-02  0.000e+00  1.000e+01 ( 1.000e+00)
647        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
648        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.081e+00  1.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.60
Ra Dec: 92.006 67.351
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 7.32e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 1.13e-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) = 11356.1479448
delta logL = 0.578419312902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11356.1478277
delta logL = 0.578536372645

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    77.176       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9894       1.0000          .0000       10.000    
     3 'Normalizat'    1.1047       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89804       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6490E+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=   11356.15     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      314 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     77.125        42.037        .22855E-03    .97496E-05
   2  Index         1.9887        .42790        .92368E-02    .75769E-05
   3  Normalizat    1.1048        .17364        .37447E-03    .57258E-04
   4  Prefactor     .89804        .64574E-01    .15322E-03    .37842E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 77.1248
  Index      = 1.98874
  Normalizat = 1.1048
  Prefactor  = 0.898037
 **********
 **   18 **HESSE 
 **********

 FCN=   11356.15     FROM HESSE     STATUS=OK            25 CALLS      339 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     77.125        41.923        .91420E-05   -1.3949    
   2  Index         1.9887        .42665        .36947E-03   -.64632    
   3  Normalizat    1.1048        .17369        .14979E-04   -.89598    
   4  Prefactor     .89804        .64595E-01    .61287E-05   -.96210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.73554e-12
Minuit parameter uncertainties:
  1  41.9389
  2  0.427471
  3  0.173781
  4  0.0646004
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/21826': 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) = 11356.1478257
delta logL = 0.578538376623

Extracting fit parameters...

4FGL J0608.0+6721
   Spectrum: PowerLaw
285    Prefactor:  7.712e+01  4.194e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.989e+00  4.275e-01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  8.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
646    Prefactor:  8.980e-01  6.460e-02  0.000e+00  1.000e+01 ( 1.000e+00)
647        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
648        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.105e+00  1.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.70
Ra Dec: 92.006 67.351
Photon Index (Free Index): 1.99 +/- 0.43
Photon Flux (Free Index): 5.10e-08 +/- 3.56e-08
Energy Flux (Free Index): 3.63e-05 +/- 3.01e-05

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/21826/cmap_HighResolution_600134401_600393601_4FGL_J0608.0+6721_daily_bin1392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.32e-08', energy_flux2='3.63e-05', photon_flux_error='3.84e-08', dlogl='5.79e-01', energy_flux='2.15e-05', photon_flux2='5.10e-08', job_status='DONE', time_completed='2021-08-24 08:16:42.201368', photon_index_error2='0.43', photon_index2='1.99', ts='7.60', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='3.01e-05', EG='1.08', time_epoch_completed='1629818202.2', return_code='0', job_id='21826', GAL2='0.90', EG2='1.10', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='3.56e-08', ts2='8.70', photon_index='2.49' WHERE bin_id='1392' AND source_name='4FGL J0608.0+6721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 08:16:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 21826: <4FGL_J0608.0+6721_daily_bin1392> in cluster <slac> Done

Job <4FGL_J0608.0+6721_daily_bin1392> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Aug 24 08:00:29 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 08:00:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 24 08:00:31 2021
Terminated at Tue Aug 24 08:16:42 2021
Results reported at Tue Aug 24 08:16:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0608.0+6721_daily_bin1392 92.0057 67.3512 600134401 600393601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0608.0+6721 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   728.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

