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


Performing analysis on: 4FGL_J0608.1-1521_daily_bin1055
RA = 92.0302, Dec = -15.3639
tmin = 512784001, tmax = 513043201
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='38983', job_status='RUN', time_executed='2021-08-24 08:57:09.188195', time_epoch_executed='1629820629.19' WHERE source_name='4FGL J0608.1-1521' and cadence='daily' and bin_id='1055'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38983

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38983/ft1_4FGL_J0608.1-1521_daily_bin1055.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38983/ft2_4FGL_J0608.1-1521_daily_bin1055.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38983/ft1_4FGL_J0608.1-1521_daily_bin1055.fits outfile=/scratch/kocevski/38983/ft1_filteredMKT_4FGL_J0608.1-1521_daily_bin1055.fits ra=92.0302 dec=-15.3639 rad=12.0 tmin=512784001.0 tmax=513043201.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.19
user 4.15
sys 0.44

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/38983/ft2_4FGL_J0608.1-1521_daily_bin1055.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/38983/ft2_4FGL_J0608.1-1521_daily_bin1055.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/38983/ft1_filteredMKT_4FGL_J0608.1-1521_daily_bin1055.fits evtable="EVENTS" outfile="/scratch/kocevski/38983/ft1_filtered_4FGL_J0608.1-1521_daily_bin1055.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 1.05
user 0.31
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/38983/ft1_filtered_4FGL_J0608.1-1521_daily_bin1055.fits" evtable="EVENTS" scfile=/scratch/kocevski/38983/ft2_4FGL_J0608.1-1521_daily_bin1055.fits sctable="SC_DATA" outfile=/scratch/kocevski/38983/ltcube_512784001_513043201_4FGL_J0608.1-1521_daily_bin1055.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/38983/ft2_4FGL_J0608.1-1521_daily_bin1055.fits
.....................!
real 13.01
user 11.66
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38983/ft1_filtered_4FGL_J0608.1-1521_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/38983/ft2_4FGL_J0608.1-1521_daily_bin1055.fits sctable="SC_DATA" expcube=/scratch/kocevski/38983/ltcube_512784001_513043201_4FGL_J0608.1-1521_daily_bin1055.fits outfile=/scratch/kocevski/38983/expmap_512784001_513043201_4FGL_J0608.1-1521_daily_bin1055.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/38983/ltcube_512784001_513043201_4FGL_J0608.1-1521_daily_bin1055.fits
.....................!
real 191.63
user 184.73
sys 4.91

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Added 147 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.1-1521 @ 92.0302 -15.3639

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/38983/ft1_filtered_4FGL_J0608.1-1521_daily_bin1055.fits scfile=/scratch/kocevski/38983/ft2_4FGL_J0608.1-1521_daily_bin1055.fits outfile=/scratch/kocevski/38983/cmap_512784001_513043201_4FGL_J0608.1-1521_daily_bin1055.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.0302 yref=-15.3639 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.80
user 0.37
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38983/ft1_filtered_4FGL_J0608.1-1521_daily_bin1055.fits scfile=/scratch/kocevski/38983/ft2_4FGL_J0608.1-1521_daily_bin1055.fits outfile=/scratch/kocevski/38983/cmap_HighResolution_512784001_513043201_4FGL_J0608.1-1521_daily_bin1055.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.0302 yref=-15.3639 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.95
user 0.37
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/38983/ft1_filtered_4FGL_J0608.1-1521_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/38983/ft2_4FGL_J0608.1-1521_daily_bin1055.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/38983/Model_4FGL_J0608.1-1521_daily_bin1055.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
adding source Rosette
Working on...
/scratch/kocevski/38983/ft1_filtered_4FGL_J0608.1-1521_daily_bin1055.fits.....................!
real 151.66
user 147.12
sys 1.54

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/38983/ft1_filtered_4FGL_J0608.1-1521_daily_bin1055.fits', '/scratch/kocevski/38983/ft2_4FGL_J0608.1-1521_daily_bin1055.fits', expMap='/scratch/kocevski/38983/expmap_512784001_513043201_4FGL_J0608.1-1521_daily_bin1055.fits', expCube='/scratch/kocevski/38983/ltcube_512784001_513043201_4FGL_J0608.1-1521_daily_bin1055.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/38983/Model_4FGL_J0608.1-1521_daily_bin1055.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0608.1-1521'

4FGL J0608.1-1521
   Spectrum: PowerLaw
254    Prefactor:  4.661e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  2.583e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
256        Scale:  6.117e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/38983/ft1_filtered_4FGL_J0608.1-1521_daily_bin1055.fits
Spacecraft file(s): /scratch/kocevski/38983/ft2_4FGL_J0608.1-1521_daily_bin1055.fits
Exposure map: /scratch/kocevski/38983/expmap_512784001_513043201_4FGL_J0608.1-1521_daily_bin1055.fits
Exposure cube: /scratch/kocevski/38983/ltcube_512784001_513043201_4FGL_J0608.1-1521_daily_bin1055.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/38983/Model_4FGL_J0608.1-1521_daily_bin1055.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) = 8548.72365399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6472       1.0000         .10000E-03   10000.    
     2 'norm      '    19.200       1.0000         .10000E-03   10000.    
     3 'norm      '    9.6960       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17203       1.0000         .10000E-03   10000.    
     5 'norm      '    11.970       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    105.43       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11571E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.388       1.0000         .10000E-03   10000.    
    11 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.524       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.284       1.0000         .10000E-03   10000.    
    14 'norm      '    4.0538       1.0000         .10000E-03   10000.    
    15 'norm      '    7.2758       1.0000         .10000E-03   10000.    
    16 'norm      '    17.843       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0557       1.0000         .10000E-03   10000.    
    18 'norm      '    10.338       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9352       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .81117       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99973       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8548.706     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2208 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6464        3.9576       -.37538E-06   -.40991E-03
   2  norm          19.193        29.557       -.46250E-06   -.41299E-04
   3  norm          9.6956        9.6232       -.23338E-06   -.14749E-04
   4  Prefactor     .15840        74.723        .45045E-04   -.87935E-05
   5  norm          11.968        11.798       -.50571E-06   -.18219E-03
   6  Prefactor     .10000E-03    5.2723       -.69504E-06** at limit **
   7  Prefactor     105.23        113.57       -.12865E-05   -.84539E-04
   8  Prefactor     .10000E-03    10.545       -.13688E-05** at limit **
   9  Prefactor     .10000E-03    83.569       -.40222E-05** at limit **
  10  Prefactor     21.375        37.494       -.15344E-05   -.10612E-03
  11  norm          .10000E-03    4.3838       -.10615E-05** at limit **
  12  Prefactor     16.523        26.001        .59684E-06    .87962E-04
  13  Prefactor     12.287        8.8288        .16319E-06    .27541E-03
  14  norm          4.0540        5.8703       -.18775E-06   -.13511E-03
  15  norm          7.2759        3.0015       -.14377E-07   -.24014E-04
  16  norm          17.843        14.933        .22567E-08   -.29338E-04
  17  Prefactor     4.0574        8.4198       -.39272E-06   -.72742E-04
  18  norm          10.334        11.618        .55207E-06   -.24900E-03
  19  Prefactor     1.9353        5.9565       -.25975E-05    .20646E-03
  20  Normalizat    .81085        .28036        .58339E-05    .78625E-04
  21  Prefactor     .99978        .66398E-01    .11301E-06    .88410E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.64636
  norm       = 19.1928
  norm       = 9.69558
  Prefactor  = 0.158404
  norm       = 11.9684
  Prefactor  = 0.0001
  Prefactor  = 105.23
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 21.3747
  norm       = 0.0001
  Prefactor  = 16.5227
  Prefactor  = 12.2866
  norm       = 4.05401
  norm       = 7.27592
  norm       = 17.8431
  Prefactor  = 4.0574
  norm       = 10.3342
  Prefactor  = 1.93533
  Normalizat = 0.810846
  Prefactor  = 0.999781
 **********
 **   18 **HESSE 
 **********

 FCN=   8548.706     FROM HESSE     STATUS=OK           325 CALLS     2533 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6464        3.9641        .18265E-03   -1.5326    
   2  norm          19.193        29.558        .91407E-04   -1.4831    
   3  norm          9.6956        9.6281        .12869E-03   -1.5085    
   4  Prefactor     .15840        73.519        .35308E-02   -1.5628    
   5  norm          11.968        11.822        .11578E-03   -1.5016    
   6  Prefactor     .10000E-03    5.3101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     105.23        113.89        .19582E-03   -1.3653    
   8  Prefactor     .10000E-03    10.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    83.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.375        37.598        .86609E-04   -1.4783    
  11  norm          .10000E-03    4.4158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.523        25.937        .98529E-04   -1.4895    
  13  Prefactor     12.287        8.8257        .11429E-03   -1.5007    
  14  norm          4.0540        5.8533        .20026E-03   -1.5305    
  15  norm          7.2759        2.9991        .95893E-04   -1.5168    
  16  norm          17.843        14.844        .94817E-04   -1.4863    
  17  Prefactor     4.0574        8.3451        .20022E-03   -1.5305    
  18  norm          10.334        11.699        .12462E-03   -1.5065    
  19  Prefactor     1.9353        5.9925        .14925E-02   -1.5430    
  20  Normalizat    .81085        .28450        .60657E-03   -.99668    
  21  Prefactor     .99978        .68389E-01    .13486E-03   -.92737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80745e-08
Minuit parameter uncertainties:
  1  3.96442
  2  29.581
  3  9.62964
  4  6.83146
  5  11.8247
  6  0.000101312
  7  114.124
  8  3.39387e-05
  9  0.000460095
  10  37.6394
  11  4.85792e-05
  12  25.9548
  13  8.82668
  14  5.85413
  15  2.99919
  16  14.847
  17  8.34746
  18  11.7016
  19  5.99435
  20  0.285028
  21  0.0683951
Done.

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

Extracting fit parameters...

4FGL J0608.1-1521
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  1.013e-04  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  2.583e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
256        Scale:  6.117e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  9.998e-01  6.840e-02  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  8.108e-01  2.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 92.030 -15.364
Photon Flux Upper Limit: 1.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/38983/likelihoodResults_512784001_513043201_4FGL_J0608.1-1521_daily_bin1055.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) = 8548.70728666
delta logL = -0.000897689229532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8548.70638894
delta logL = 3.23852873407e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5919       1.0000          .0000       10.000    
     3 'Normalizat'    .81085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99978       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5070E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8548.706     FROM MIGRAD    STATUS=FAILED        91 CALLS      254 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10118E-03    148.61        .18142E-02** at limit **
   2  Index         2.6731        5.6292        .50000       -.12736E-04
   3  Normalizat    .81085        .43499E-01    .60654E-03   -.10609E-04
   4  Prefactor     .99978        .10757E-01    .13486E-03   -.22930E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8548.706     FROM SIMPLEX   STATUS=UNCHANGED    135 CALLS      389 TOTAL
                     EDM=   .69E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10118E-03    148.61        .34774E-03** at limit **
   2  Index         2.6731        5.6292        .81592E-04   -.12736E-04
   3  Normalizat    .81085        .43499E-01    .14592E-05   -.10609E-04
   4  Prefactor     .99978        .10757E-01    .40274E-06   -.22930E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8548.706     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      439 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.828        .36285E-02** at limit **
   2  Index         2.9975        5.3434        .50000        .10900E-06
   3  Normalizat    .81085        .21975E-01    .24262E-04    .64477E-04
   4  Prefactor     .99978        .54341E-02    .53943E-05    .24194E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.99748
  Normalizat = 0.810848
  Prefactor  = 0.99978
 **********
 **   18 **HESSE 
 **********

 FCN=   8548.706     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      468 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    208.64        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9975        8.2619        .50000       -.41207    
   3  Normalizat    .81085        .50750E-01    .48523E-05   -.99668    
   4  Prefactor     .99978        .12547E-01    .10789E-05   -.92737    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.83548e-10
Minuit parameter uncertainties:
  1  6.02593e-05
  2  794.91
  3  0.0507533
  4  0.0125473
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38983': 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) = 8548.7063882
delta logL = 7.67984602135e-07

Extracting fit parameters...

4FGL J0608.1-1521
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  6.026e-05  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  2.997e+00  7.949e+02  0.000e+00  1.000e+01 (-1.000e+00)
256        Scale:  6.117e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  9.998e-01  1.255e-02  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  8.108e-01  5.075e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 92.030 -15.364

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/38983/cmap_HighResolution_512784001_513043201_4FGL_J0608.1-1521_daily_bin1055.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-08-24 09:10:34.658784', job_id='38983', GAL2='1.00', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1629821434.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='7.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1055' AND source_name='4FGL J0608.1-1521' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 09:10:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 38983: <4FGL_J0608.1-1521_daily_bin1055> in cluster <slac> Done

Job <4FGL_J0608.1-1521_daily_bin1055> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 24 08:55:47 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 08:55:48 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:55:48 2021
Terminated at Tue Aug 24 09:10:35 2021
Results reported at Tue Aug 24 09:10:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0608.1-1521_daily_bin1055 92.0302 -15.3639 512784001 513043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0608.1-1521 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   765.00 sec.
    Max Memory :                                 1029 MB
    Average Memory :                             329.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            888 sec.

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

