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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin710
RA = 196.008, Dec = 37.071
tmin = 423360001, tmax = 423619201
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='190721', job_status='RUN', time_executed='2021-09-06 19:54:13.880943', time_epoch_executed='1630983253.88' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/190721

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/190721/ft1_4FGL_J1304.0+3704_daily_bin710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/190721/ft2_4FGL_J1304.0+3704_daily_bin710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/190721/ft1_4FGL_J1304.0+3704_daily_bin710.fits outfile=/scratch/kocevski/190721/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin710.fits ra=196.008 dec=37.071 rad=12.0 tmin=423360001.0 tmax=423619201.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.82
user 5.53
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/190721/ft2_4FGL_J1304.0+3704_daily_bin710.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/190721/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin710.fits evtable="EVENTS" outfile="/scratch/kocevski/190721/ft1_filtered_4FGL_J1304.0+3704_daily_bin710.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.51
user 0.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/190721/ft1_filtered_4FGL_J1304.0+3704_daily_bin710.fits evtable="EVENTS" scfile=/scratch/kocevski/190721/ft2_4FGL_J1304.0+3704_daily_bin710.fits sctable="SC_DATA" expcube=/scratch/kocevski/190721/ltcube_423360001_423619201_4FGL_J1304.0+3704_daily_bin710.fits outfile=/scratch/kocevski/190721/expmap_423360001_423619201_4FGL_J1304.0+3704_daily_bin710.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/190721/ltcube_423360001_423619201_4FGL_J1304.0+3704_daily_bin710.fits
.....................!
real 192.79
user 187.25
sys 4.90

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/190721/ft1_filtered_4FGL_J1304.0+3704_daily_bin710.fits scfile=/scratch/kocevski/190721/ft2_4FGL_J1304.0+3704_daily_bin710.fits outfile=/scratch/kocevski/190721/cmap_423360001_423619201_4FGL_J1304.0+3704_daily_bin710.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.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/190721/ft1_filtered_4FGL_J1304.0+3704_daily_bin710.fits scfile=/scratch/kocevski/190721/ft2_4FGL_J1304.0+3704_daily_bin710.fits outfile=/scratch/kocevski/190721/cmap_HighResolution_423360001_423619201_4FGL_J1304.0+3704_daily_bin710.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.56
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/190721/ft1_filtered_4FGL_J1304.0+3704_daily_bin710.fits', '/scratch/kocevski/190721/ft2_4FGL_J1304.0+3704_daily_bin710.fits', expMap='/scratch/kocevski/190721/expmap_423360001_423619201_4FGL_J1304.0+3704_daily_bin710.fits', expCube='/scratch/kocevski/190721/ltcube_423360001_423619201_4FGL_J1304.0+3704_daily_bin710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/190721/Model_4FGL_J1304.0+3704_daily_bin710.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/190721/ft1_filtered_4FGL_J1304.0+3704_daily_bin710.fits
Spacecraft file(s): /scratch/kocevski/190721/ft2_4FGL_J1304.0+3704_daily_bin710.fits
Exposure map: /scratch/kocevski/190721/expmap_423360001_423619201_4FGL_J1304.0+3704_daily_bin710.fits
Exposure cube: /scratch/kocevski/190721/ltcube_423360001_423619201_4FGL_J1304.0+3704_daily_bin710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/190721/Model_4FGL_J1304.0+3704_daily_bin710.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) = 2635.6788437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1887       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4590       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.2457       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.657       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.727       1.0000         .10000E-03   10000.    
     9 'norm      '    1.1768       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.9412       1.0000         .10000E-03   10000.    
    16 'norm      '    18.011       1.0000         .10000E-03   10000.    
    17 'norm      '    12.163       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .25456E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.5129       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.205       1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.964       1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.538       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.1744       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2773       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .56262       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=   2635.668     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3874 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1888        5.4597       -.12828E-05   -.32390E-04
   2  Prefactor     .10000E-03    4.0666        .11735E-07** at limit **
   3  Prefactor     .10000E-03    1.2627        .19751E-07** at limit **
   4  Prefactor     8.4576        15.146       -.23696E-06    .21017E-05
   5  Prefactor     9.2342        56.802       -.19021E-04   -.75906E-05
   6  Prefactor     23.656        28.405       -.58787E-06    .15468E-05
   7  Prefactor     .10000E-03    118.10       -.14036E-05** at limit **
   8  Prefactor     10.731        12.960       -.64141E-06   -.22492E-05
   9  norm          1.1732        5.6944       -.12154E-05   -.10748E-03
  10  Prefactor     .10000E-03    25.089       -.60161E-05** at limit **
  11  Prefactor     .10000E-03    17.009        .17298E-05** at limit **
  12  Prefactor     .10000E-03    19.223        .32988E-05** at limit **
  13  norm          .10000E-03    3.0760        .67812E-07** at limit **
  14  norm          .10000E-03    9.4835       -.31645E-07** at limit **
  15  norm          3.9400        9.6873        .42422E-05    .19219E-03
  16  norm          18.022        18.813       -.15188E-05    .14769E-03
  17  norm          12.163        9.0299        .33928E-06    .17551E-04
  18  Prefactor     .10008E-03    2.9812       -.11209E-05** at limit **
  19  Prefactor     8.5384        15.816       -.75264E-05    .93459E-04
  20  Prefactor     .10000E-03    29.210        .34328E-05** at limit **
  21  Prefactor     31.229        45.447        .19984E-04    .67905E-04
  22  Prefactor     25.951        31.892       -.69347E-05    .12344E-04
  23  Prefactor     23.534        46.923       -.35810E-05   -.48270E-05
  24  Prefactor     .10000E-03    26.794       -.42780E-05** at limit **
  25  Prefactor     .10000E-03    29.020        .24799E-05** at limit **
  26  norm          .10000E-03    1.2588       -.25174E-07** at limit **
  27  Prefactor     1.1780        3.1559        .11729E-05   -.12460E-02
  28  norm          .10000E-03    11.057        .13415E-05** at limit **
  29  Normalizat    1.2775        .26476        .20545E-05    .48318E-04
  30  Prefactor     .56253        .31599       -.33667E-06    .75986E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.18879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.45757
  Prefactor  = 9.23421
  Prefactor  = 23.6559
  Prefactor  = 0.0001
  Prefactor  = 10.7309
  norm       = 1.17318
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.94002
  norm       = 18.0223
  norm       = 12.1628
  Prefactor  = 0.000100084
  Prefactor  = 8.53835
  Prefactor  = 0.0001
  Prefactor  = 31.2286
  Prefactor  = 25.9507
  Prefactor  = 23.5345
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.17797
  norm       = 0.0001
  Normalizat = 1.27751
  Prefactor  = 0.562531
 **********
 **   18 **HESSE 
 **********

 FCN=   2635.668     FROM HESSE     STATUS=OK           586 CALLS     4460 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1888        5.4580        .95090E-04   -1.5136    
   2  Prefactor     .10000E-03    4.0707        .10111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.2663        .56309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.4576        15.150        .13783E-03   -1.5126    
   5  Prefactor     9.2342        57.072        .13180E-03   -1.5100    
   6  Prefactor     23.656        28.395        .82355E-04   -1.4735    
   7  Prefactor     .10000E-03    118.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.731        12.967        .12233E-03   -1.5053    
   9  norm          1.1732        5.5608        .23262E-03   -1.5491    
  10  Prefactor     .10000E-03    25.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.0821        .87923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.4887        .15443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.9400        9.7126        .15889E-03   -1.5311    
  16  norm          18.022        18.952        .94373E-04   -1.4859    
  17  norm          12.163        9.0252        .11486E-03   -1.5010    
  18  Prefactor     .10008E-03    15.999        .16675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.5384        15.515        .13739E-03   -1.5123    
  20  Prefactor     .10000E-03    29.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.229        45.374        .71727E-04   -1.4590    
  22  Prefactor     25.951        32.003        .78618E-04   -1.4689    
  23  Prefactor     23.534        46.802        .82563E-04   -1.4737    
  24  Prefactor     .10000E-03    26.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    29.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.0607        .11142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.1780        21.201        .21141E-02   -1.5491    
  28  norm          .10000E-03    11.061        .16675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2775        .30179        .20018E-03   -.84240    
  30  Prefactor     .56253        .36003        .35410E-03   -1.0919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84737e-08
Minuit parameter uncertainties:
  1  5.45831
  2  2.4757e-06
  3  4.98022e-06
  4  15.1567
  5  45.9786
  6  28.4116
  7  2.39535e-05
  8  12.97
  9  5.10893
  10  2.79934e-05
  11  2.13001e-05
  12  9.47981e-06
  13  8.21562e-07
  14  2.30443e-06
  15  9.71644
  16  18.9579
  17  9.02621
  18  0.00231931
  19  15.5226
  20  5.29821e-05
  21  45.4242
  22  32.0237
  23  46.8746
  24  7.33741e-05
  25  7.43629e-06
  26  2.3927e-06
  27  9.99852
  28  3.74907e-07
  29  0.302202
  30  0.361512
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  9.480e-06  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:  5.625e-01  3.615e-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:  1.278e+00  3.022e-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.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/190721/likelihoodResults_423360001_423619201_4FGL_J1304.0+3704_daily_bin710.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) = 2635.66834688
delta logL = -0.000247171732553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2635.66809951
delta logL = 1.90298123925e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1755       1.0000          .0000       10.000    
     3 'Normalizat'    1.2775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56253       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=   2635.668     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      255 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .13040        .67514E-01** at limit **
   2  Index         3.1801        8.0460        .50000       -.22093E-05
   3  Normalizat    1.2775        .87265E-03    .33220E-01   -.26145E-04
   4  Prefactor     .56253        .10697E-02    .79955E-01    .18101E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.18009
  Normalizat = 1.27751
  Prefactor  = 0.562528
 **********
 **   18 **HESSE 
 **********

 FCN=   2635.668     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      288 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    69.150        .24618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1801        6.3368        .50000       -.37254    
   3  Normalizat    1.2775        .10827E-01    .20018E-03   -.84240    
   4  Prefactor     .56253        .13237E-01    .35410E-03   -1.0919    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05315e-08
Minuit parameter uncertainties:
  1  4.38934e-05
  2  218.522
  3  0.0108274
  4  0.0132374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/190721': 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) = 2635.66809949
delta logL = 2.16110038309e-07

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  4.389e-05  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  3.180e+00  2.185e+02  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:  5.625e-01  1.324e-02  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:  1.278e+00  1.083e-02  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/190721/cmap_HighResolution_423360001_423619201_4FGL_J1304.0+3704_daily_bin710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.84e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-06 20:03:49.071939', job_id='190721', GAL2='0.56', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1630983829.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='2.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='710' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:03:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 190721: <4FGL_J1304.0+3704_daily_bin710> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin710> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 19:50:14 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:50:16 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:50:16 2021
Terminated at Mon Sep  6 20:03:49 2021
Results reported at Mon Sep  6 20:03:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin710 196.008 37.071 423360001 423619201 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 :                                   574.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             233.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

