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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin661
RA = 196.008, Dec = 37.071
tmin = 410659201, tmax = 410918401
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='189591', job_status='RUN', time_executed='2021-09-06 19:49:09.375131', time_epoch_executed='1630982949.38' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='661'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189591

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189591/ft1_4FGL_J1304.0+3704_daily_bin661.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189591/ft2_4FGL_J1304.0+3704_daily_bin661.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189591/ft1_4FGL_J1304.0+3704_daily_bin661.fits outfile=/scratch/kocevski/189591/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin661.fits ra=196.008 dec=37.071 rad=12.0 tmin=410659201.0 tmax=410918401.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 7.01
user 6.71
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/189591/ft2_4FGL_J1304.0+3704_daily_bin661.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189591/ft2_4FGL_J1304.0+3704_daily_bin661.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/189591/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin661.fits evtable="EVENTS" outfile="/scratch/kocevski/189591/ft1_filtered_4FGL_J1304.0+3704_daily_bin661.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.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189591/ft1_filtered_4FGL_J1304.0+3704_daily_bin661.fits" evtable="EVENTS" scfile=/scratch/kocevski/189591/ft2_4FGL_J1304.0+3704_daily_bin661.fits sctable="SC_DATA" outfile=/scratch/kocevski/189591/ltcube_410659201_410918401_4FGL_J1304.0+3704_daily_bin661.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/189591/ft2_4FGL_J1304.0+3704_daily_bin661.fits
.....................!
real 17.08
user 16.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189591/ft1_filtered_4FGL_J1304.0+3704_daily_bin661.fits evtable="EVENTS" scfile=/scratch/kocevski/189591/ft2_4FGL_J1304.0+3704_daily_bin661.fits sctable="SC_DATA" expcube=/scratch/kocevski/189591/ltcube_410659201_410918401_4FGL_J1304.0+3704_daily_bin661.fits outfile=/scratch/kocevski/189591/expmap_410659201_410918401_4FGL_J1304.0+3704_daily_bin661.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/189591/ltcube_410659201_410918401_4FGL_J1304.0+3704_daily_bin661.fits
.....................!
real 191.36
user 186.55
sys 4.40

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

Setting source of interest to:
4FGL J1304.0+3704 @ 196.008 37.071

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/189591/ft1_filtered_4FGL_J1304.0+3704_daily_bin661.fits scfile=/scratch/kocevski/189591/ft2_4FGL_J1304.0+3704_daily_bin661.fits outfile=/scratch/kocevski/189591/cmap_410659201_410918401_4FGL_J1304.0+3704_daily_bin661.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=196.008 yref=37.071 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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189591/ft1_filtered_4FGL_J1304.0+3704_daily_bin661.fits scfile=/scratch/kocevski/189591/ft2_4FGL_J1304.0+3704_daily_bin661.fits outfile=/scratch/kocevski/189591/cmap_HighResolution_410659201_410918401_4FGL_J1304.0+3704_daily_bin661.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=196.008 yref=37.071 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.55
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/189591/ft1_filtered_4FGL_J1304.0+3704_daily_bin661.fits evtable="EVENTS" scfile=/scratch/kocevski/189591/ft2_4FGL_J1304.0+3704_daily_bin661.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/189591/Model_4FGL_J1304.0+3704_daily_bin661.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/189591/ft1_filtered_4FGL_J1304.0+3704_daily_bin661.fits.....................!
real 40.41
user 39.13
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/189591/ft1_filtered_4FGL_J1304.0+3704_daily_bin661.fits', '/scratch/kocevski/189591/ft2_4FGL_J1304.0+3704_daily_bin661.fits', expMap='/scratch/kocevski/189591/expmap_410659201_410918401_4FGL_J1304.0+3704_daily_bin661.fits', expCube='/scratch/kocevski/189591/ltcube_410659201_410918401_4FGL_J1304.0+3704_daily_bin661.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/189591/Model_4FGL_J1304.0+3704_daily_bin661.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1304.0+3704'

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  2.111e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/189591/ft1_filtered_4FGL_J1304.0+3704_daily_bin661.fits
Spacecraft file(s): /scratch/kocevski/189591/ft2_4FGL_J1304.0+3704_daily_bin661.fits
Exposure map: /scratch/kocevski/189591/expmap_410659201_410918401_4FGL_J1304.0+3704_daily_bin661.fits
Exposure cube: /scratch/kocevski/189591/ltcube_410659201_410918401_4FGL_J1304.0+3704_daily_bin661.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/189591/Model_4FGL_J1304.0+3704_daily_bin661.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) = 4212.29361199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4013       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0124       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.110       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.587       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    97.257       1.0000         .10000E-03   10000.    
    11 'Prefactor '    68.092       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.6509       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0223       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1777       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8705       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    58.022       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    86.780       1.0000         .10000E-03   10000.    
    26 'norm      '    17.030       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97808       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .72207       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4211.888     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3971 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4014        3.4483        .28588E-07   -.98671E-05
   2  Prefactor     .10000E-03    3.4294       -.14726E-06** at limit **
   3  Prefactor     2.0124        2.2970       -.50945E-07    .54158E-05
   4  Prefactor     17.111        13.027       -.48794E-07    .18460E-04
   5  Prefactor     .10000E-03    26.621        .15561E-05** at limit **
   6  Prefactor     41.587        29.238       -.27543E-07    .48633E-04
   7  Prefactor     .10000E-03    32.288       -.12545E-05** at limit **
   8  Prefactor     .10000E-03    6.8001       -.28439E-06** at limit **
   9  norm          .10000E-03    4.0266       -.28977E-07** at limit **
  10  Prefactor     97.262        115.11       -.11246E-05   -.11242E-04
  11  Prefactor     68.098        39.399        .71097E-06    .52818E-04
  12  Prefactor     .10000E-03    52.562       -.26942E-05** at limit **
  13  norm          .10000E-03    6.8818       -.70255E-07** at limit **
  14  norm          .10000E-03    59.796        .16957E-05** at limit **
  15  norm          7.6508        8.2761       -.44569E-05    .76884E-04
  16  norm          2.0228        14.205        .17004E-04   -.69491E-04
  17  norm          .10000E-03    2.2143       -.39504E-08** at limit **
  18  Prefactor     4.1780        5.1090        .27237E-06    .20836E-03
  19  Prefactor     4.8700        12.910        .21990E-05    .15832E-04
  20  Prefactor     .10000E-03    30.548        .26316E-07** at limit **
  21  Prefactor     .10000E-03    19.349       -.29481E-06** at limit **
  22  Prefactor     .10000E-03    4.2259       -.26100E-06** at limit **
  23  Prefactor     58.035        72.421       -.16176E-05   -.67141E-07
  24  Prefactor     .10000E-03    5.0268       -.18413E-07** at limit **
  25  Prefactor     86.909        105.05       -.15350E-04   -.91298E-05
  26  norm          17.030        3.7107        .10152E-06    .66583E-04
  27  Prefactor     .10000E-03    1.8998       -.46189E-06** at limit **
  28  norm          .10000E-03    9.4448        .46947E-06** at limit **
  29  Normalizat    .97773        .21323       -.20741E-05   -.37782E-04
  30  Prefactor     .72241        .24134        .58627E-05    .18599E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.40135
  Prefactor  = 0.0001
  Prefactor  = 2.01242
  Prefactor  = 17.1111
  Prefactor  = 0.0001
  Prefactor  = 41.5871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 97.2623
  Prefactor  = 68.0979
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.65081
  norm       = 2.02283
  norm       = 0.0001
  Prefactor  = 4.17799
  Prefactor  = 4.86999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.0349
  Prefactor  = 0.0001
  Prefactor  = 86.9089
  norm       = 17.0299
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.977733
  Prefactor  = 0.722409
 **********
 **   18 **HESSE 
 **********

 FCN=   4211.888     FROM HESSE     STATUS=OK           580 CALLS     4551 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4014        3.4746        .11380E-03   -1.5339    
   2  Prefactor     .10000E-03    3.4341        .11738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.0124        2.3111        .98489E-04   -1.5424    
   4  Prefactor     17.111        13.030        .96827E-04   -1.4880    
   5  Prefactor     .10000E-03    26.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     41.587        29.215        .62161E-04   -1.4417    
   7  Prefactor     .10000E-03    32.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.8407        .16515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.0651        .12691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     97.262        114.96        .40759E-04   -1.3732    
  11  Prefactor     68.098        39.328        .48642E-04   -1.4056    
  12  Prefactor     .10000E-03    53.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.9451        .16580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    60.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.6508        8.4229        .58908E-03   -1.5155    
  16  norm          2.0228        15.001        .14550E-02   -1.5424    
  17  norm          .10000E-03    2.2148        .94315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.1780        5.0643        .13999E-03   -1.5299    
  19  Prefactor     4.8700        12.811        .91134E-03   -1.5267    
  20  Prefactor     .10000E-03    30.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.2311        .13030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     58.035        72.451        .52668E-04   -1.4183    
  24  Prefactor     .10000E-03    5.0279        .14212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     86.909        105.47        .21564E-03   -1.3841    
  26  norm          17.030        3.7109        .55393E-04   -1.4882    
  27  Prefactor     .10000E-03    3.0926        .17383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    9.4773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .97773        .25467        .23443E-03   -.93780    
  30  Prefactor     .72241        .28690        .32100E-03   -1.0266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.85069e-10
Minuit parameter uncertainties:
  1  3.47486
  2  9.7145e-06
  3  2.31119
  4  13.0321
  5  5.30361e-06
  6  29.2247
  7  5.18852e-05
  8  2.21763e-05
  9  1.21071e-05
  10  115.229
  11  39.3434
  12  0.000204174
  13  3.29997e-05
  14  0.000123129
  15  8.42422
  16  11.0206
  17  3.0023e-07
  18  5.06478
  19  12.8179
  20  3.91706e-05
  21  2.94261e-05
  22  1.13015e-05
  23  72.5612
  24  5.81944e-06
  25  105.703
  26  3.71091
  27  7.90468e-06
  28  5.21755e-05
  29  0.254986
  30  0.28749
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.042e-04  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  7.224e-01  2.875e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  9.777e-01  2.550e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 196.008 37.071
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189591/likelihoodResults_410659201_410918401_4FGL_J1304.0+3704_daily_bin661.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) = 4211.88766398
delta logL = -8.92400266821e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4211.88757427
delta logL = 4.68008693133e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4211.888     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      263 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    .38734        .90712E-01** at limit **
   2  Index         2.7624        8.4985        .50000       -.73031E-05
   3  Normalizat    .97774        .79187E-03    .45887E-01    .29333E-04
   4  Prefactor     .72240        .94992E-03    .72525E-01    .21602E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100129
  Index      = 2.76236
  Normalizat = 0.977738
  Prefactor  = 0.722403
 **********
 **   18 **HESSE 
 **********

 FCN=   4211.888     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      300 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10013E-03    130.04        .48662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7624        5.8308        .50000       -.46400    
   3  Normalizat    .97774        .38774E-02    .23444E-03   -.93780    
   4  Prefactor     .72240        .46443E-02    .32099E-03   -1.0266    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48753e-08
Minuit parameter uncertainties:
  1  0.00819975
  2  86.2075
  3  0.00387737
  4  0.0046443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189591': 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) = 4211.88757404
delta logL = 7.05124875822e-07

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.001e-04  8.200e-03  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.762e+00  8.621e+01  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  7.224e-01  4.644e-03  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  9.777e-01  3.877e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 196.008 37.071

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/189591/cmap_HighResolution_410659201_410918401_4FGL_J1304.0+3704_daily_bin661.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.03e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-06 20:01:10.920166', job_id='189591', GAL2='0.72', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630983670.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='7.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='661' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:01:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 189591: <4FGL_J1304.0+3704_daily_bin661> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin661> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 19:45:42 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:46:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 19:46:27 2021
Terminated at Mon Sep  6 20:01:11 2021
Results reported at Mon Sep  6 20:01:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin661 196.008 37.071 410659201 410918401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1304.0+3704 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   712.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            929 sec.

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

