/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 153 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 = 7393
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1304.0+3704_daily_bin152
RA = 196.008, Dec = 37.071
tmin = 278726401, tmax = 278985601
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='186553', job_status='RUN', time_executed='2021-09-06 19:38:15.373502', time_epoch_executed='1630982295.37' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186553

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186553/ft1_4FGL_J1304.0+3704_daily_bin152.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186553/ft2_4FGL_J1304.0+3704_daily_bin152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186553/ft1_4FGL_J1304.0+3704_daily_bin152.fits outfile=/scratch/kocevski/186553/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin152.fits ra=196.008 dec=37.071 rad=12.0 tmin=278726401.0 tmax=278985601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.79
user 3.56
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186553/ft1_filtered_4FGL_J1304.0+3704_daily_bin152.fits" evtable="EVENTS" scfile=/scratch/kocevski/186553/ft2_4FGL_J1304.0+3704_daily_bin152.fits sctable="SC_DATA" outfile=/scratch/kocevski/186553/ltcube_278726401_278985601_4FGL_J1304.0+3704_daily_bin152.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/186553/ft2_4FGL_J1304.0+3704_daily_bin152.fits
.....................!
real 15.56
user 15.22
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186553/ft1_filtered_4FGL_J1304.0+3704_daily_bin152.fits evtable="EVENTS" scfile=/scratch/kocevski/186553/ft2_4FGL_J1304.0+3704_daily_bin152.fits sctable="SC_DATA" expcube=/scratch/kocevski/186553/ltcube_278726401_278985601_4FGL_J1304.0+3704_daily_bin152.fits outfile=/scratch/kocevski/186553/expmap_278726401_278985601_4FGL_J1304.0+3704_daily_bin152.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/186553/ltcube_278726401_278985601_4FGL_J1304.0+3704_daily_bin152.fits
.....................!
real 191.67
user 186.78
sys 4.23

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/186553/ft1_filtered_4FGL_J1304.0+3704_daily_bin152.fits scfile=/scratch/kocevski/186553/ft2_4FGL_J1304.0+3704_daily_bin152.fits outfile=/scratch/kocevski/186553/cmap_278726401_278985601_4FGL_J1304.0+3704_daily_bin152.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.56
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .37470E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.723       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.193       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13356E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .87172E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .47887       1.0000         .10000E-03   10000.    
     9 'norm      '    .15854E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19358E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.255       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.574       1.0000         .10000E-03   10000.    
    13 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .73397       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.1567       1.0000         .10000E-03   10000.    
    17 'norm      '    .11836E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8697       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5237       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.630       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12768E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.244       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .47575E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    68.036       1.0000         .10000E-03   10000.    
    26 'norm      '    1.1046       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.6989       1.0000         .10000E-03   10000.    
    28 'norm      '    .11957E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .67089       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.6427       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=   5763.552     FROM MIGRAD    STATUS=CONVERGED    921 CALLS     3645 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7085        .66401E-07** at limit **
   2  Prefactor     .10000E-03    5.0058        .56098E-07** at limit **
   3  Prefactor     .17963E-01    1.3232       -.50670E-06    .72515E-03
   4  Prefactor     35.821        15.481        .10371E-05    .89866E-04
   5  Prefactor     28.892        32.909        .18709E-04   -.22834E-04
   6  Prefactor     .10000E-03    18.452        .43127E-06** at limit **
   7  Prefactor     .10000E-03    29.673        .12470E-05** at limit **
   8  Prefactor     .53714        6.7671       -.22797E-05   -.14554E-03
   9  norm          .10000E-03    5.2579       -.51671E-06** at limit **
  10  Prefactor     .10000E-03    32.340       -.27035E-05** at limit **
  11  Prefactor     10.923        31.493        .29038E-05    .12535E-03
  12  Prefactor     16.956        19.797        .20327E-05    .18721E-03
  13  norm          .10000E-03    1.9834       -.25384E-07** at limit **
  14  norm          .11927E-03    16.028        .90804E-06** at limit **
  15  norm          .10000E-03    3.2660       -.45931E-07** at limit **
  16  norm          8.1204        6.2421       -.60299E-07    .61100E-04
  17  norm          .10000E-03    3.6816        .82786E-06** at limit **
  18  Prefactor     1.8732        2.6620       -.14653E-06   -.34184E-03
  19  Prefactor     5.4027        10.965       -.87237E-07   -.70027E-04
  20  Prefactor     28.402        54.857       -.55327E-05   -.70736E-04
  21  Prefactor     .10000E-03    15.045        .86803E-07** at limit **
  22  Prefactor     .10000E-03    5.1996        .19283E-07** at limit **
  23  Prefactor     26.740        45.216       -.16461E-04   -.36371E-04
  24  Prefactor     .10000E-03    13.071        .34386E-07** at limit **
  25  Prefactor     73.101        80.434        .33612E-06   -.15349E-05
  26  norm          1.1035        1.7967        .54196E-06   -.49001E-03
  27  Prefactor     7.7026        5.6970        .17137E-07   -.11588E-03
  28  norm          .10000E-03    17.995       -.26527E-06** at limit **
  29  Normalizat    .66913        .19024       -.10036E-05    .95736E-04
  30  Prefactor     1.6449        .23348       -.21149E-06    .10095E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0179631
  Prefactor  = 35.8205
  Prefactor  = 28.8916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.537135
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.9234
  Prefactor  = 16.9559
  norm       = 0.0001
  norm       = 0.000119266
  norm       = 0.0001
  norm       = 8.12036
  norm       = 0.000100002
  Prefactor  = 1.87323
  Prefactor  = 5.40274
  Prefactor  = 28.402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.7399
  Prefactor  = 0.0001
  Prefactor  = 73.1008
  norm       = 1.1035
  Prefactor  = 7.70263
  norm       = 0.0001
  Normalizat = 0.669127
  Prefactor  = 1.64487
 **********
 **   18 **HESSE 
 **********

 FCN=   5763.552     FROM HESSE     STATUS=OK           612 CALLS     4257 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7591        .12167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0292        .16585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .17963E-01    2.9484        .30664E-01   -1.5681    
   4  Prefactor     35.821        15.486        .67051E-04   -1.4510    
   5  Prefactor     28.892        32.689        .74151E-04   -1.4632    
   6  Prefactor     .10000E-03    18.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.679        .18326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .53714        18.293        .34991E-02   -1.5561    
   9  norm          .10000E-03    16.726        .29132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.923        27.525        .12512E-03   -1.5047    
  12  Prefactor     16.956        19.944        .95540E-04   -1.4884    
  13  norm          .10000E-03    1.9876        .10436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .11927E-03    24.849        .90329E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.3054        .26450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.1204        6.1731        .14038E-03   -1.5138    
  17  norm          .10000E-03    3.5557        .46087E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8732        2.6295        .13874E-03   -1.5434    
  19  Prefactor     5.4027        10.920        .17095E-03   -1.5243    
  20  Prefactor     28.402        54.856        .74875E-04   -1.4642    
  21  Prefactor     .10000E-03    15.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.2104        .16907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.740        44.944        .76752E-04   -1.4673    
  24  Prefactor     .10000E-03    13.138        .21182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     73.101        80.637        .48661E-04   -1.3996    
  26  norm          1.1035        1.7555        .12150E-03   -1.5498    
  27  Prefactor     7.7026        5.6960        .14452E-03   -1.5153    
  28  norm          .10000E-03    18.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .66913        .22571        .29913E-03   -1.0512    
  30  Prefactor     1.6449        .28107        .25721E-03   -.73559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08603e-08
Minuit parameter uncertainties:
  1  8.36734e-06
  2  4.87038e-06
  3  0.459009
  4  15.4875
  5  32.7096
  6  3.45105e-05
  7  4.64275e-07
  8  6.27073
  9  0.000275058
  10  2.67819e-05
  11  27.5574
  12  19.952
  13  2.70323e-06
  14  0.0437787
  15  3.30345e-06
  16  6.17357
  17  0.000181192
  18  2.62962
  19  10.9239
  20  54.9539
  21  1.93303e-06
  22  1.93366e-06
  23  45.0012
  24  5.88967e-06
  25  80.7583
  26  1.75556
  27  5.69644
  28  1.83028e-05
  29  0.226027
  30  0.281338
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.696e+01  1.995e+01  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.645e+00  2.813e-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:  6.691e-01  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 196.008 37.071
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 3.48e-08 +/- 4.09e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 1.28e-05

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

Saving results to:
/scratch/kocevski/186553/likelihoodResults_278726401_278985601_4FGL_J1304.0+3704_daily_bin152.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): 0
logL (Free Index) = 5762.9917239
delta logL = 0.560575570142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5762.8690319
delta logL = 0.683267567163

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42469E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.0071       1.0000          .0000       10.000    
     3 'Normalizat'    .55535       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7597       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=   5762.869     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      340 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42091E-01    .42016        .22830E-02   -.13310E-01
   2  Index         6.0122        2.3749        .10471       -.20258E-03
   3  Normalizat    .55533        .47246E-01    .73781E-01   -.48065E-03
   4  Prefactor     1.7595        .60465E-01    .56661E-01   -.60858E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0420915
  Index      = 6.01218
  Normalizat = 0.555333
  Prefactor  = 1.75949
 **********
 **   18 **HESSE 
 **********

 FCN=   5762.869     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      373 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42091E-01    .91973        .10309E-03   -1.5667    
   2  Index         6.0122        3.7989        .40256E-02    .20385    
   3  Normalizat    .55533        .17024        .32665E-03   -1.0992    
   4  Prefactor     1.7595        .21328        .25050E-03   -.70509    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.8953e-10
Minuit parameter uncertainties:
  1  0.393051
  2  4.34825
  3  0.170404
  4  0.213389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186553': 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) = 5762.86902616
delta logL = 0.683273306125

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  4.209e-02  3.931e-01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  6.012e+00  4.348e+00  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.759e+00  2.134e-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:  5.553e-01  1.704e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.99
Ra Dec: 196.008 37.071
Photon Index (Free Index): 6.01 +/- 4.35
Photon Flux (Free Index): 1.05e-07 +/- 6.95e-08
Energy Flux (Free Index): 1.31e-05 +/- 9.26e-06

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/186553/cmap_HighResolution_278726401_278985601_4FGL_J1304.0+3704_daily_bin152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.31e-03', comment='SUCCESS', photon_flux='3.48e-08', energy_flux2='1.31e-05', photon_flux_error='4.09e-08', dlogl='6.83e-01', energy_flux='1.09e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-06 19:52:02.872395', photon_index_error2='4.35', photon_index2='6.01', ts='1.26', fit_tolerance='1e-08', GAL='1.64', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='9.26e-06', EG='0.67', time_epoch_completed='1630983122.87', return_code='0', job_id='186553', GAL2='1.76', EG2='0.56', return_code2='102', energy_flux_error='1.28e-05', photon_flux_error2='6.95e-08', ts2='2.99', photon_index='2.44' WHERE bin_id='152' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 19:52:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 186553: <4FGL_J1304.0+3704_daily_bin152> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin152> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 19:35:27 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:35:29 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:35:29 2021
Terminated at Mon Sep  6 19:52:03 2021
Results reported at Mon Sep  6 19:52:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin152 196.008 37.071 278726401 278985601 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 :                                   823.39 sec.
    Max Memory :                                 1064 MB
    Average Memory :                             282.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            996 sec.

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

