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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin714
RA = 196.008, Dec = 37.071
tmin = 424396801, tmax = 424656001
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='190727', job_status='RUN', time_executed='2021-09-06 19:54:19.161024', time_epoch_executed='1630983259.16' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/190727

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/190727/ft1_4FGL_J1304.0+3704_daily_bin714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/190727/ft2_4FGL_J1304.0+3704_daily_bin714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/190727/ft1_4FGL_J1304.0+3704_daily_bin714.fits outfile=/scratch/kocevski/190727/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin714.fits ra=196.008 dec=37.071 rad=12.0 tmin=424396801.0 tmax=424656001.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.08
user 4.82
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/190727/ft1_filtered_4FGL_J1304.0+3704_daily_bin714.fits" evtable="EVENTS" scfile=/scratch/kocevski/190727/ft2_4FGL_J1304.0+3704_daily_bin714.fits sctable="SC_DATA" outfile=/scratch/kocevski/190727/ltcube_424396801_424656001_4FGL_J1304.0+3704_daily_bin714.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/190727/ft2_4FGL_J1304.0+3704_daily_bin714.fits
.....................!
real 14.42
user 13.99
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/190727/ft1_filtered_4FGL_J1304.0+3704_daily_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/190727/ft2_4FGL_J1304.0+3704_daily_bin714.fits sctable="SC_DATA" expcube=/scratch/kocevski/190727/ltcube_424396801_424656001_4FGL_J1304.0+3704_daily_bin714.fits outfile=/scratch/kocevski/190727/expmap_424396801_424656001_4FGL_J1304.0+3704_daily_bin714.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/190727/ltcube_424396801_424656001_4FGL_J1304.0+3704_daily_bin714.fits
.....................!
real 191.02
user 185.28
sys 5.27

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/190727/ft1_filtered_4FGL_J1304.0+3704_daily_bin714.fits scfile=/scratch/kocevski/190727/ft2_4FGL_J1304.0+3704_daily_bin714.fits outfile=/scratch/kocevski/190727/cmap_424396801_424656001_4FGL_J1304.0+3704_daily_bin714.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/190727/ft1_filtered_4FGL_J1304.0+3704_daily_bin714.fits scfile=/scratch/kocevski/190727/ft2_4FGL_J1304.0+3704_daily_bin714.fits outfile=/scratch/kocevski/190727/cmap_HighResolution_424396801_424656001_4FGL_J1304.0+3704_daily_bin714.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   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 '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3450       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.894       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.739       1.0000         .10000E-03   10000.    
    16 'norm      '    22.949       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    45.162       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    8.3140       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .40151       1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.8643       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .12782       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1130.986     FROM MIGRAD    STATUS=CONVERGED   1322 CALLS     4994 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.7297        .71445E-03** at limit **
   2  Prefactor     .10000E-03    11.620        .11199E-02** at limit **
   3  Prefactor     .10000E-03    3.1058        .57893E-03** at limit **
   4  Prefactor     .10000E-03    20.032        .14701E-02** at limit **
   5  Prefactor     .10000E-03    97.656        .18142E-02** at limit **
   6  Prefactor     .10000E-03    71.756        .18142E-02** at limit **
   7  Prefactor     .10000E-03    1365.9        .18142E-02** at limit **
   8  Prefactor     6.3428        28.149        .15935E-03    .74021E-05
   9  norm          .10000E-03    11.754        .11232E-02** at limit **
  10  Prefactor     .10000E-03    122.16        .18142E-02** at limit **
  11  Prefactor     .10000E-03    36.008        .18142E-02** at limit **
  12  Prefactor     .10000E-03    46.342        .18142E-02** at limit **
  13  norm          11.894        13.126        .11615E-03    .13213E-05
  14  norm          .10000E-03    23.415        .15899E-02** at limit **
  15  norm          21.740        28.842        .85907E-04   -.23688E-04
  16  norm          22.946        54.885        .83615E-04   -.90416E-05
  17  norm          .10000E-03    7.0253        .86972E-03** at limit **
  18  Prefactor     .10000E-03    10.183        .10415E-02** at limit **
  19  Prefactor     .10000E-03    30.322        .18084E-02** at limit **
  20  Prefactor     .10000E-03    74.998        .18142E-02** at limit **
  21  Prefactor     .10000E-03    64.659        .18142E-02** at limit **
  22  Prefactor     .10000E-03    36.856        .18142E-02** at limit **
  23  Prefactor     .10000E-03    52.500        .18142E-02** at limit **
  24  Prefactor     45.163        64.827        .59660E-04   -.52404E-05
  25  Prefactor     .10000E-03    123.47        .18142E-02** at limit **
  26  norm          8.3135        4.7895        .26295E-03    .78946E-04
  27  Prefactor     .38814        110.45        .25225E-02   -.25839E-04
  28  norm          .10000E-03    23.552        .15938E-02** at limit **
  29  Normalizat    1.8645        .56034        .20001E-03   -.19468E-05
  30  Prefactor     .12768        .76151        .78374E-02    .37116E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.34277
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.8943
  norm       = 0.0001
  norm       = 21.7398
  norm       = 22.9459
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.1632
  Prefactor  = 0.0001
  norm       = 8.31353
  Prefactor  = 0.388138
  norm       = 0.0001
  Normalizat = 1.86445
  Prefactor  = 0.127679
 **********
 **   18 **HESSE 
 **********

 FCN=   1130.986     FROM HESSE     STATUS=OK           560 CALLS     5554 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7297        .14289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.620        .22398E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.1058        .11579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.033        .29401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    97.658        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    71.757        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1366.4        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.3428        28.122        .63739E-05   -1.5204    
   9  norm          .10000E-03    11.755        .22464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    122.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.008        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    46.343        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.894        13.125        .46462E-05   -1.5018    
  14  norm          .10000E-03    23.415        .31798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.740        28.857        .34363E-05   -1.4775    
  16  norm          22.946        54.912        .33446E-05   -1.4750    
  17  norm          .10000E-03    7.0254        .17394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.185        .20829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    30.323        .36169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    75.001        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    64.659        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    36.857        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    52.501        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     45.163        64.789        .23864E-05   -1.4363    
  25  Prefactor     .10000E-03    123.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          8.3135        4.7873        .10518E-04   -1.5131    
  27  Prefactor     .38814        109.47        .10090E-03   -1.5583    
  28  norm          .10000E-03    23.552        .31876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.8645        .53345        .80003E-05   -.67993    
  30  Prefactor     .12768        .69168        .31350E-03   -1.3443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05168e-11
Minuit parameter uncertainties:
  1  4.9682e-07
  2  1.92288e-06
  3  4.43343e-07
  4  8.55019e-06
  5  5.73675e-05
  6  4.18537e-05
  7  1.66554e-05
  8  26.7319
  9  8.18173e-06
  10  5.67566e-05
  11  1.93152e-05
  12  4.16004e-05
  13  13.1283
  14  8.88454e-06
  15  28.8753
  16  55.0335
  17  6.87934e-06
  18  3.16144e-05
  19  4.22676e-05
  20  4.63606e-05
  21  1.43364e-05
  22  3.24615e-05
  23  1.22582e-05
  24  64.8899
  25  6.43215e-05
  26  4.78747
  27  13.0594
  28  1.45549e-05
  29  0.535143
  30  0.605543
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  4.160e-05  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:  1.277e-01  6.055e-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.864e+00  5.351e-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: 2.93e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/190727/likelihoodResults_424396801_424656001_4FGL_J1304.0+3704_daily_bin714.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) = 1130.98572922
delta logL = -0.000102033393659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1130.98562727
delta logL = -8.046572475e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10481E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3758       1.0000          .0000       10.000    
     3 'Normalizat'    1.8645       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .12769       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=   1130.986     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      238 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6492.4        .90712E-02** at limit **
   2  Index         2.3840        5.7533        .50000       -.16509E-05
   3  Normalizat    1.8645        .10048        .45255E-01   -.27966E-06
   4  Prefactor     .12768        .11072        .18323        .20369E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.38401
  Normalizat = 1.86445
  Prefactor  = 0.127679
 **********
 **   18 **HESSE 
 **********

 FCN=   1130.986     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      273 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8423.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3840        5.0620        .50000       -.55060    
   3  Normalizat    1.8645        .26365        .20001E-03   -.67993    
   4  Prefactor     .12768        .29704        .78376E-02   -1.3443    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.44783e-10
Minuit parameter uncertainties:
  1  0.000454118
  2  62.1149
  3  0.263851
  4  0.300619
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/190727': 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) = 1130.98562721
delta logL = -2.15054569708e-08

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  4.541e-04  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.384e+00  6.211e+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:  1.277e-01  3.006e-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.864e+00  2.639e-01  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/190727/cmap_HighResolution_424396801_424656001_4FGL_J1304.0+3704_daily_bin714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.27e-02', job_status='DONE', photon_flux_upper_limit='2.93e-07', time_completed='2021-09-06 20:01:54.198417', job_id='190727', GAL2='0.13', fit_tolerance='1e-08', EG2='1.86', EG='1.86', time_epoch_completed='1630983714.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.13', dlogl='-2.15e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='714' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:01:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 190727: <4FGL_J1304.0+3704_daily_bin714> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin714 196.008 37.071 424396801 424656001 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 :                                   454.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            699 sec.

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

