/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 44 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 = 7431
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1304.0+3704_daily_bin78
RA = 196.008, Dec = 37.071
tmin = 259545601, tmax = 259804801
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='183951', job_status='RUN', time_executed='2021-09-06 19:26:51.022546', time_epoch_executed='1630981611.02' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='78'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/183951

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/183951/ft1_4FGL_J1304.0+3704_daily_bin78.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/183951/ft2_4FGL_J1304.0+3704_daily_bin78.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/183951/ft1_4FGL_J1304.0+3704_daily_bin78.fits outfile=/scratch/kocevski/183951/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin78.fits ra=196.008 dec=37.071 rad=12.0 tmin=259545601.0 tmax=259804801.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 1.75
user 1.52
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/183951/ft2_4FGL_J1304.0+3704_daily_bin78.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/183951/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin78.fits evtable="EVENTS" outfile="/scratch/kocevski/183951/ft1_filtered_4FGL_J1304.0+3704_daily_bin78.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/183951/ft1_filtered_4FGL_J1304.0+3704_daily_bin78.fits evtable="EVENTS" scfile=/scratch/kocevski/183951/ft2_4FGL_J1304.0+3704_daily_bin78.fits sctable="SC_DATA" expcube=/scratch/kocevski/183951/ltcube_259545601_259804801_4FGL_J1304.0+3704_daily_bin78.fits outfile=/scratch/kocevski/183951/expmap_259545601_259804801_4FGL_J1304.0+3704_daily_bin78.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/183951/ltcube_259545601_259804801_4FGL_J1304.0+3704_daily_bin78.fits
.....................!
real 194.95
user 187.06
sys 5.47

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/183951/ft1_filtered_4FGL_J1304.0+3704_daily_bin78.fits scfile=/scratch/kocevski/183951/ft2_4FGL_J1304.0+3704_daily_bin78.fits outfile=/scratch/kocevski/183951/cmap_259545601_259804801_4FGL_J1304.0+3704_daily_bin78.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/183951/ft1_filtered_4FGL_J1304.0+3704_daily_bin78.fits scfile=/scratch/kocevski/183951/ft2_4FGL_J1304.0+3704_daily_bin78.fits outfile=/scratch/kocevski/183951/cmap_HighResolution_259545601_259804801_4FGL_J1304.0+3704_daily_bin78.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.57
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1382       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2959       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11929E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.4378       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    57.244       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11291E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.212       1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.600       1.0000         .10000E-03   10000.    
    13 'norm      '    .10221E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.4990       1.0000         .10000E-03   10000.    
    15 'norm      '    4.5490       1.0000         .10000E-03   10000.    
    16 'norm      '    6.0421       1.0000         .10000E-03   10000.    
    17 'norm      '    .55220       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0326       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10662E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10947E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.868       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.8855       1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.395       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .17263E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.5629       1.0000         .10000E-03   10000.    
    26 'norm      '    4.4259       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    6.1421       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .71405       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1917       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=   6178.047     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3973 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5180        .17251E-06** at limit **
   2  Prefactor     1.1384        8.5647        .14211E-05   -.26083E-04
   3  Prefactor     5.2968        2.5776       -.96414E-07   -.25591E-04
   4  Prefactor     .10001E-03    7.0253       -.50726E-07** at limit **
   5  Prefactor     8.4502        24.514        .34365E-06   -.63648E-05
   6  Prefactor     .10000E-03    7.8995        .22297E-06** at limit **
   7  Prefactor     57.180        56.811        .28571E-05    .16092E-04
   8  Prefactor     .10000E-03    1.8826        .81122E-07** at limit **
   9  norm          .10000E-03    2.6294        .54106E-06** at limit **
  10  Prefactor     .10000E-03    19.078       -.95169E-07** at limit **
  11  Prefactor     32.224        27.839       -.22276E-06   -.39853E-04
  12  Prefactor     30.599        16.749        .16235E-06   -.68199E-05
  13  norm          .10000E-03    2.8774       -.50165E-07** at limit **
  14  norm          7.4985        8.5214        .80325E-07   -.32018E-05
  15  norm          4.5463        5.8420        .16116E-06   -.10396E-04
  16  norm          6.0455        9.1308        .93590E-07   -.26280E-05
  17  norm          .55089        2.3503        .21516E-06    .31169E-04
  18  Prefactor     2.0310        2.5026       -.16052E-06    .44780E-04
  19  Prefactor     .10000E-03    9.5052       -.96321E-07** at limit **
  20  Prefactor     .10000E-03    53.870       -.95055E-06** at limit **
  21  Prefactor     27.897        56.738       -.22022E-05   -.93534E-05
  22  Prefactor     7.9099        15.208        .82647E-06   -.15312E-04
  23  Prefactor     21.401        32.584       -.28494E-06    .33872E-05
  24  Prefactor     .10000E-03    22.032        .10545E-05** at limit **
  25  Prefactor     1.6447        594.19        .11935E-04   -.17404E-05
  26  norm          4.4258        1.6947       -.49109E-07   -.22836E-05
  27  Prefactor     .10000E-03    2.5833        .22198E-06** at limit **
  28  norm          6.1427        9.1526       -.50763E-06    .82708E-05
  29  Normalizat    .71387        .17166        .21061E-06   -.14296E-03
  30  Prefactor     1.1919        .21596       -.30647E-05    .77164E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.1384
  Prefactor  = 5.29683
  Prefactor  = 0.000100009
  Prefactor  = 8.45015
  Prefactor  = 0.0001
  Prefactor  = 57.1797
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.2237
  Prefactor  = 30.599
  norm       = 0.0001
  norm       = 7.49855
  norm       = 4.54632
  norm       = 6.04545
  norm       = 0.550887
  Prefactor  = 2.03097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.897
  Prefactor  = 7.9099
  Prefactor  = 21.4013
  Prefactor  = 0.0001
  Prefactor  = 1.64472
  norm       = 4.42583
  Prefactor  = 0.0001
  norm       = 6.14271
  Normalizat = 0.71387
  Prefactor  = 1.19195
 **********
 **   18 **HESSE 
 **********

 FCN=   6178.047     FROM HESSE     STATUS=OK           596 CALLS     4569 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5358        .94490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1384        8.6165        .21813E-02   -1.5495    
   3  Prefactor     5.2968        2.5640        .84998E-04   -1.5248    
   4  Prefactor     .10001E-03    30.195        .39817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.4502        24.505        .13801E-03   -1.5127    
   6  Prefactor     .10000E-03    7.9199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     57.180        56.943        .26511E-03   -1.4194    
   8  Prefactor     .10000E-03    1.8852        .10529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.6529        .12416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.224        27.729        .70600E-04   -1.4572    
  12  Prefactor     30.599        16.741        .72430E-04   -1.4601    
  13  norm          .10000E-03    2.9032        .12996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.4985        8.5221        .14645E-03   -1.5160    
  15  norm          4.5463        5.9292        .13942E-03   -1.5281    
  16  norm          6.0455        9.3099        .16334E-03   -1.5216    
  17  norm          .55089        2.2346        .23370E-03   -1.5560    
  18  Prefactor     2.0310        2.4669        .12791E-03   -1.5423    
  19  Prefactor     .10000E-03    9.5467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    53.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.897        56.533        .75890E-04   -1.4651    
  22  Prefactor     7.9099        15.214        .14279E-03   -1.5145    
  23  Prefactor     21.401        32.481        .86595E-04   -1.4782    
  24  Prefactor     .10000E-03    22.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.6447        590.96        .34030E-03   -1.5451    
  26  norm          4.4258        1.6932        .60800E-04   -1.5287    
  27  Prefactor     .10000E-03    2.6579        .24694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          6.1427        9.1420        .16199E-03   -1.5212    
  29  Normalizat    .71387        .20465        .25025E-03   -1.0335    
  30  Prefactor     1.1919        .25034        .25602E-03   -.86580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1174e-09
Minuit parameter uncertainties:
  1  3.661e-06
  2  6.26483
  3  2.56406
  4  0.00106334
  5  24.5342
  6  6.86087e-06
  7  56.9972
  8  2.03952e-06
  9  3.66836e-07
  10  7.97985e-06
  11  27.7403
  12  16.7432
  13  1.01496e-05
  14  8.52353
  15  5.92997
  16  9.31208
  17  2.21898
  18  2.46699
  19  3.54119e-05
  20  0.00018012
  21  56.6414
  22  15.2216
  23  32.5077
  24  9.50114e-06
  25  62.9873
  26  1.69326
  27  7.32022e-06
  28  9.14409
  29  0.204871
  30  0.250585
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  3.060e+01  1.674e+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.192e+00  2.506e-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:  7.139e-01  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.26
Ra Dec: 196.008 37.071
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 6.28e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 1.97e-05 +/- 1.08e-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) = 6178.04522113
delta logL = 0.0018001016897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6178.04341469
delta logL = 0.00360654462202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.293       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4775       1.0000          .0000       10.000    
     3 'Normalizat'    .71152       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1941       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=   6178.043     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      266 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.305        23.284        .74024E-04    .73872E-04
   2  Index         2.4773        .51738        .51202E-02    .41673E-03
   3  Normalizat    .71139        .19396        .25066E-03   -.61185E-04
   4  Prefactor     1.1943        .24835        .25580E-03    .25822E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.3053
  Index      = 2.47728
  Normalizat = 0.711388
  Prefactor  = 1.1943
 **********
 **   18 **HESSE 
 **********

 FCN=   6178.043     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.305        22.303        .29610E-05   -1.4625    
   2  Index         2.4773        .49535        .10240E-02   -.52885    
   3  Normalizat    .71139        .19407        .10026E-04   -1.0345    
   4  Prefactor     1.1943        .24852        .10232E-04   -.86507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58014e-11
Minuit parameter uncertainties:
  1  22.3093
  2  0.496443
  3  0.194254
  4  0.248766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/183951': 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) = 6178.04341429
delta logL = 0.0036069406151

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  2.931e+01  2.231e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.477e+00  4.964e-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.194e+00  2.488e-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:  7.114e-01  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.26
Ra Dec: 196.008 37.071
Photon Index (Free Index): 2.48 +/- 0.50
Photon Flux (Free Index): 6.44e-08 +/- 3.91e-08
Energy Flux (Free Index): 1.92e-05 +/- 1.17e-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/183951/cmap_HighResolution_259545601_259804801_4FGL_J1304.0+3704_daily_bin78.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.28e-08', energy_flux2='1.92e-05', photon_flux_error='3.43e-08', dlogl='3.61e-03', energy_flux='1.97e-05', photon_flux2='6.44e-08', job_status='DONE', time_completed='2021-09-06 19:39:53.701335', photon_index_error2='0.50', photon_index2='2.48', ts='6.26', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='1.17e-05', EG='0.71', time_epoch_completed='1630982393.7', return_code='0', job_id='183951', GAL2='1.19', EG2='0.71', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='3.91e-08', ts2='6.26', photon_index='2.44' WHERE bin_id='78' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 19:39:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 183951: <4FGL_J1304.0+3704_daily_bin78> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin78> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 19:25:41 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:25:57 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:25:57 2021
Terminated at Mon Sep  6 19:39:54 2021
Results reported at Mon Sep  6 19:39:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin78 196.008 37.071 259545601 259804801 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 :                                   771.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            853 sec.

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

