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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin192
RA = 196.008, Dec = 37.071
tmin = 289094401, tmax = 289353601
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='186618', job_status='RUN', time_executed='2021-09-06 19:38:23.869031', time_epoch_executed='1630982303.87' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186618

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186618/ft1_4FGL_J1304.0+3704_daily_bin192.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186618/ft2_4FGL_J1304.0+3704_daily_bin192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186618/ft1_4FGL_J1304.0+3704_daily_bin192.fits outfile=/scratch/kocevski/186618/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin192.fits ra=196.008 dec=37.071 rad=12.0 tmin=289094401.0 tmax=289353601.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 4.01
user 3.33
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186618/ft1_filtered_4FGL_J1304.0+3704_daily_bin192.fits" evtable="EVENTS" scfile=/scratch/kocevski/186618/ft2_4FGL_J1304.0+3704_daily_bin192.fits sctable="SC_DATA" outfile=/scratch/kocevski/186618/ltcube_289094401_289353601_4FGL_J1304.0+3704_daily_bin192.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/186618/ft2_4FGL_J1304.0+3704_daily_bin192.fits
.....................!
real 17.00
user 16.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186618/ft1_filtered_4FGL_J1304.0+3704_daily_bin192.fits evtable="EVENTS" scfile=/scratch/kocevski/186618/ft2_4FGL_J1304.0+3704_daily_bin192.fits sctable="SC_DATA" expcube=/scratch/kocevski/186618/ltcube_289094401_289353601_4FGL_J1304.0+3704_daily_bin192.fits outfile=/scratch/kocevski/186618/expmap_289094401_289353601_4FGL_J1304.0+3704_daily_bin192.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/186618/ltcube_289094401_289353601_4FGL_J1304.0+3704_daily_bin192.fits
.....................!
real 192.63
user 187.54
sys 4.42

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/186618/ft1_filtered_4FGL_J1304.0+3704_daily_bin192.fits scfile=/scratch/kocevski/186618/ft2_4FGL_J1304.0+3704_daily_bin192.fits outfile=/scratch/kocevski/186618/cmap_289094401_289353601_4FGL_J1304.0+3704_daily_bin192.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.40
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2558       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .32724E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6223       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1848       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.4492       1.0000         .10000E-03   10000.    
    10 'Prefactor '    50.906       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.473       1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.074       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.6588       1.0000         .10000E-03   10000.    
    15 'norm      '    4.8153       1.0000         .10000E-03   10000.    
    16 'norm      '    .10598E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8585       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13376E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.151       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.466       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .61241       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    4.8128       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2718       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .51330       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=   5439.521     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3899 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2556        4.4051        .16014E-06    .12472E-04
   2  Prefactor     .10000E-03    5.5957        .56125E-06** at limit **
   3  Prefactor     4.6222        3.8182       -.28946E-07   -.80452E-05
   4  Prefactor     8.1842        10.432        .95485E-06    .89487E-04
   5  Prefactor     .10000E-03    18.356        .30730E-06** at limit **
   6  Prefactor     .10000E-03    9.6668       -.12120E-05** at limit **
   7  Prefactor     .10000E-03    63.407        .29258E-06** at limit **
   8  Prefactor     .10000E-03    2.3092       -.71138E-07** at limit **
   9  norm          4.4554        8.0178        .56552E-06    .72106E-03
  10  Prefactor     50.909        60.864       -.86845E-06   -.41342E-05
  11  Prefactor     12.422        43.891        .13870E-04    .24940E-03
  12  Prefactor     45.083        20.488       -.99841E-06    .37859E-03
  13  norm          .10000E-03    3.8725       -.50032E-06** at limit **
  14  norm          8.6593        10.612        .17035E-06    .69127E-05
  15  norm          4.8254        3.9802       -.70296E-06    .22865E-04
  16  norm          .10000E-03    4.2631        .11886E-05** at limit **
  17  norm          1.8589        2.7190        .12963E-06    .29120E-04
  18  Prefactor     .10008E-03    2.4207       -.27077E-05** at limit **
  19  Prefactor     11.176        15.969        .12340E-05    .70367E-03
  20  Prefactor     .10000E-03    14.007       -.81189E-07** at limit **
  21  Prefactor     .10000E-03    18.062        .71471E-06** at limit **
  22  Prefactor     .10000E-03    9.5296       -.77291E-06** at limit **
  23  Prefactor     12.464        18.141        .68244E-07    .70719E-06
  24  Prefactor     .10000E-03    19.573       -.20114E-05** at limit **
  25  Prefactor     .10000E-03    16.396        .19255E-05** at limit **
  26  norm          .61247        .92464        .31357E-07    .13778E-04
  27  Prefactor     .10000E-03    4.0678        .19612E-07** at limit **
  28  norm          4.8139        14.472        .42362E-05    .12963E-03
  29  Normalizat    1.2716        .18078       -.38899E-06    .54957E-03
  30  Prefactor     .51343        .20879       -.13063E-05    .14481E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.25558
  Prefactor  = 0.0001
  Prefactor  = 4.62223
  Prefactor  = 8.18421
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.45543
  Prefactor  = 50.9085
  Prefactor  = 12.422
  Prefactor  = 45.0826
  norm       = 0.0001
  norm       = 8.65929
  norm       = 4.82541
  norm       = 0.0001
  norm       = 1.85885
  Prefactor  = 0.000100079
  Prefactor  = 11.1764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.612468
  Prefactor  = 0.0001
  norm       = 4.8139
  Normalizat = 1.27165
  Prefactor  = 0.51343
 **********
 **   18 **HESSE 
 **********

 FCN=   5439.521     FROM HESSE     STATUS=OK           586 CALLS     4485 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2556        4.3982        .17533E-03   -1.5408    
   2  Prefactor     .10000E-03    14.947        .33632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.6222        3.8279        .10540E-03   -1.5278    
   4  Prefactor     8.1842        10.424        .70068E-03   -1.5136    
   5  Prefactor     .10000E-03    18.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.6772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    63.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.3125        .10941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.4554        8.0689        .95452E-03   -1.5286    
  10  Prefactor     50.909        61.054        .56209E-04   -1.4280    
  11  Prefactor     12.422        44.031        .11342E-03   -1.5003    
  12  Prefactor     45.083        20.362        .59718E-04   -1.4364    
  13  norm          .10000E-03    3.9107        .14156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.6593        10.605        .13622E-03   -1.5119    
  15  norm          4.8254        3.6436        .11223E-03   -1.5269    
  16  norm          .10000E-03    7.4075        .26644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8589        2.6987        .14294E-03   -1.5435    
  18  Prefactor     .10008E-03    8.3306        .18214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.176        15.450        .11997E-03   -1.5039    
  20  Prefactor     .10000E-03    14.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.5542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.464        18.134        .11345E-03   -1.5002    
  24  Prefactor     .10000E-03    19.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    16.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .61247        .92390        .46886E-04   -1.5551    
  27  Prefactor     .10000E-03    4.1601        .14520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          4.8139        14.504        .91690E-03   -1.5269    
  29  Normalizat    1.2716        .20260        .19754E-03   -.84417    
  30  Prefactor     .51343        .23137        .35541E-03   -1.1136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06973e-08
Minuit parameter uncertainties:
  1  4.3988
  2  0.000129907
  3  3.82814
  4  10.4262
  5  2.15917e-05
  6  1.65501e-05
  7  0.000112539
  8  4.30538e-06
  9  8.07084
  10  61.1293
  11  44.1462
  12  20.3654
  13  1.95717e-05
  14  10.6074
  15  3.64372
  16  7.13247e-05
  17  2.69888
  18  0.0016223
  19  15.4559
  20  5.67766e-06
  21  1.49534e-05
  22  7.42379e-07
  23  18.1416
  24  1.20721e-05
  25  2.70657e-05
  26  0.923923
  27  8.61455e-06
  28  14.5146
  29  0.202727
  30  0.231799
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  4.508e+01  2.037e+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:  5.134e-01  2.318e-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.272e+00  2.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.93
Ra Dec: 196.008 37.071
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 9.25e-08 +/- 4.18e-08
Energy Flux (Fixed Index): 2.90e-05 +/- 1.31e-05

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) = 5439.4608498
delta logL = 0.0606342357132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5439.45805528
delta logL = 0.0634287485718

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.728       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6017       1.0000          .0000       10.000    
     3 'Normalizat'    1.2581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52569       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=   5439.458     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      238 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.767        282.02        .16313E-02    .15032E-03
   2  Index         2.6012        2.9938        .10325        .11783E-03
   3  Normalizat    1.2581        .98020E-01    .33601E-01    .21547E-06
   4  Prefactor     .52566        .96478E-01    .79386E-01    .31907E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.767
  Index      = 2.6012
  Normalizat = 1.25812
  Prefactor  = 0.525661
 **********
 **   18 **HESSE 
 **********

 FCN=   5439.458     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.767        29.127        .32625E-03   -1.4478    
   2  Index         2.6012        .51580        .41361E-02   -.50038    
   3  Normalizat    1.2581        .19721        .19838E-03   -.84825    
   4  Prefactor     .52566        .23114        .35160E-03   -1.1081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3768e-12
Minuit parameter uncertainties:
  1  29.1377
  2  0.516994
  3  0.197325
  4  0.231557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186618': 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): 0
logL (Free Index) = 5439.45805426
delta logL = 0.0634297765682

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  3.777e+01  2.914e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.601e+00  5.170e-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:  5.257e-01  2.316e-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.258e+00  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.04
Ra Dec: 196.008 37.071
Photon Index (Free Index): 2.60 +/- 0.52
Photon Flux (Free Index): 1.02e-07 +/- 5.11e-08
Energy Flux (Free Index): 2.68e-05 +/- 1.32e-05

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/186618/cmap_HighResolution_289094401_289353601_4FGL_J1304.0+3704_daily_bin192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.25e-08', energy_flux2='2.68e-05', photon_flux_error='4.18e-08', dlogl='6.34e-02', energy_flux='2.90e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-06 19:50:29.974651', photon_index_error2='0.52', photon_index2='2.60', ts='9.93', fit_tolerance='1e-08', GAL='0.51', photon_index_error='0.00', energy_flux_error2='1.32e-05', EG='1.27', time_epoch_completed='1630983029.97', return_code='0', job_id='186618', GAL2='0.53', EG2='1.26', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='5.11e-08', ts2='10.04', photon_index='2.44' WHERE bin_id='192' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 19:50:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 186618: <4FGL_J1304.0+3704_daily_bin192> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin192 196.008 37.071 289094401 289353601 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 :                                   716.59 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            898 sec.

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

