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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin600
RA = 196.008, Dec = 37.071
tmin = 394848001, tmax = 395107201
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='189500', job_status='RUN', time_executed='2021-09-06 19:49:31.615695', time_epoch_executed='1630982971.62' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189500

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189500/ft1_4FGL_J1304.0+3704_daily_bin600.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189500/ft2_4FGL_J1304.0+3704_daily_bin600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189500/ft1_4FGL_J1304.0+3704_daily_bin600.fits outfile=/scratch/kocevski/189500/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin600.fits ra=196.008 dec=37.071 rad=12.0 tmin=394848001.0 tmax=395107201.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.29
user 4.99
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189500/ft2_4FGL_J1304.0+3704_daily_bin600.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/189500/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin600.fits evtable="EVENTS" outfile="/scratch/kocevski/189500/ft1_filtered_4FGL_J1304.0+3704_daily_bin600.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.50
user 0.31
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189500/ft1_filtered_4FGL_J1304.0+3704_daily_bin600.fits" evtable="EVENTS" scfile=/scratch/kocevski/189500/ft2_4FGL_J1304.0+3704_daily_bin600.fits sctable="SC_DATA" outfile=/scratch/kocevski/189500/ltcube_394848001_395107201_4FGL_J1304.0+3704_daily_bin600.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/189500/ft2_4FGL_J1304.0+3704_daily_bin600.fits
.....................!
real 15.04
user 14.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189500/ft1_filtered_4FGL_J1304.0+3704_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/189500/ft2_4FGL_J1304.0+3704_daily_bin600.fits sctable="SC_DATA" expcube=/scratch/kocevski/189500/ltcube_394848001_395107201_4FGL_J1304.0+3704_daily_bin600.fits outfile=/scratch/kocevski/189500/expmap_394848001_395107201_4FGL_J1304.0+3704_daily_bin600.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/189500/ltcube_394848001_395107201_4FGL_J1304.0+3704_daily_bin600.fits
.....................!
real 192.36
user 186.33
sys 5.57

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/189500/ft1_filtered_4FGL_J1304.0+3704_daily_bin600.fits scfile=/scratch/kocevski/189500/ft2_4FGL_J1304.0+3704_daily_bin600.fits outfile=/scratch/kocevski/189500/cmap_394848001_395107201_4FGL_J1304.0+3704_daily_bin600.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/189500/ft1_filtered_4FGL_J1304.0+3704_daily_bin600.fits scfile=/scratch/kocevski/189500/ft2_4FGL_J1304.0+3704_daily_bin600.fits outfile=/scratch/kocevski/189500/cmap_HighResolution_394848001_395107201_4FGL_J1304.0+3704_daily_bin600.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.58
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    6.6855       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4583       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.159       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.977       1.0000         .10000E-03   10000.    
     7 'Prefactor '    74.130       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1774       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.032       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    26.802       1.0000         .10000E-03   10000.    
    15 'norm      '    14.959       1.0000         .10000E-03   10000.    
    16 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.6320       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.913       1.0000         .10000E-03   10000.    
    20 'Prefactor '    101.46       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13766       1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.192       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.6136       1.0000         .10000E-03   10000.    
    26 'norm      '    7.8621       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.3043       1.0000         .10000E-03   10000.    
    28 'norm      '    12.026       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1618       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .56440       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=   5409.528     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     3364 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7008        .23967E-06** at limit **
   2  Prefactor     6.6847        7.4321        .81098E-06   -.41858E-04
   3  Prefactor     1.4583        1.4335        .82070E-07    .23545E-03
   4  Prefactor     .10000E-03    6.8740        .15297E-06** at limit **
   5  Prefactor     11.160        22.501       -.11786E-05    .51947E-05
   6  Prefactor     33.979        25.616       -.81357E-05   -.99037E-05
   7  Prefactor     74.150        62.882       -.30755E-05   -.77365E-05
   8  Prefactor     7.1773        6.7201        .13980E-05    .13216E-04
   9  norm          .10000E-03    1.5069        .27982E-06** at limit **
  10  Prefactor     .10000E-03    48.287        .29750E-05** at limit **
  11  Prefactor     .10000E-03    20.061       -.27020E-06** at limit **
  12  Prefactor     32.033        20.296       -.15886E-05   -.16831E-04
  13  norm          .10000E-03    2.5412        .16243E-06** at limit **
  14  norm          26.800        15.508        .82214E-07    .30464E-04
  15  norm          14.959        5.9121        .51671E-06   -.11904E-03
  16  norm          .10000E-03    7.6844       -.21814E-06** at limit **
  17  norm          2.6318        4.3749       -.46977E-05   -.55707E-03
  18  Prefactor     .10000E-03    2.2480        .70756E-08** at limit **
  19  Prefactor     19.913        15.896        .12311E-05   -.26607E-04
  20  Prefactor     101.49        43.844        .36637E-04    .60269E-03
  21  Prefactor     .10000E-03    16.851       -.78942E-06** at limit **
  22  Prefactor     .10000E-03    10.068        .59673E-06** at limit **
  23  Prefactor     .10007E-03    21.435       -.12563E-04** at limit **
  24  Prefactor     21.192        20.221        .51534E-06   -.11677E-04
  25  Prefactor     6.6487        221.91        .36345E-04    .74025E-06
  26  norm          7.8623        2.1148       -.22200E-06    .97350E-03
  27  Prefactor     5.3044        5.5761        .20849E-05   -.27286E-03
  28  norm          12.024        14.104        .41405E-06   -.27635E-04
  29  Normalizat    1.1616        .18935       -.32037E-05    .36030E-03
  30  Prefactor     .56465        .21370       -.52215E-06    .94746E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 6.68473
  Prefactor  = 1.45831
  Prefactor  = 0.0001
  Prefactor  = 11.1599
  Prefactor  = 33.9788
  Prefactor  = 74.1498
  Prefactor  = 7.17733
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.0328
  norm       = 0.0001
  norm       = 26.8003
  norm       = 14.9592
  norm       = 0.0001
  norm       = 2.63181
  Prefactor  = 0.0001
  Prefactor  = 19.913
  Prefactor  = 101.492
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100071
  Prefactor  = 21.1917
  Prefactor  = 6.6487
  norm       = 7.86232
  Prefactor  = 5.30438
  norm       = 12.024
  Normalizat = 1.16164
  Prefactor  = 0.564646
 **********
 **   18 **HESSE 
 **********

 FCN=   5409.528     FROM HESSE     STATUS=OK           594 CALLS     3958 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7706        .23585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.6847        7.4314        .15519E-03   -1.5191    
   3  Prefactor     1.4583        1.4522        .85059E-04   -1.5466    
   4  Prefactor     .10000E-03    6.9216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.160        22.516        .11993E-03   -1.5040    
   6  Prefactor     33.979        25.596        .68747E-04   -1.4541    
   7  Prefactor     74.150        62.894        .46633E-04   -1.3984    
   8  Prefactor     7.1773        6.7122        .14973E-03   -1.5172    
   9  norm          .10000E-03    1.5090        .88143E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    48.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.033        20.327        .70798E-04   -1.4575    
  13  norm          .10000E-03    2.5513        .11444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          26.800        15.508        .77381E-04   -1.4672    
  15  norm          14.959        5.8840        .10303E-03   -1.4934    
  16  norm          .10000E-03    7.7106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.6318        4.3726        .18889E-03   -1.5383    
  18  Prefactor     .10000E-03    2.2785        .10738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.913        15.875        .89755E-04   -1.4815    
  20  Prefactor     101.49        44.510        .19957E-03   -1.3690    
  21  Prefactor     .10000E-03    16.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10007E-03    24.120        .11469       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.192        20.224        .87008E-04   -1.4787    
  25  Prefactor     6.6487        223.10        .15604E-03   -1.5192    
  26  norm          7.8623        2.1152        .53638E-04   -1.5147    
  27  Prefactor     5.3044        5.5713        .17124E-03   -1.5247    
  28  norm          12.024        14.092        .11552E-03   -1.5014    
  29  Normalizat    1.1616        .21435        .21961E-03   -.87797    
  30  Prefactor     .56465        .23833        .35914E-03   -1.0910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46569e-09
Minuit parameter uncertainties:
  1  1.12404e-05
  2  7.43241
  3  1.45224
  4  2.38323e-05
  5  22.5334
  6  25.6038
  7  62.9501
  8  6.71294
  9  4.33361e-06
  10  3.16897e-06
  11  4.88954e-05
  12  20.3312
  13  9.34795e-06
  14  15.5107
  15  5.88426
  16  3.74696e-05
  17  4.3731
  18  2.9054e-06
  19  15.8783
  20  44.5249
  21  4.11727e-06
  22  2.73624e-06
  23  0.00261524
  24  20.2308
  25  77.3429
  26  2.11517
  27  5.57185
  28  14.0959
  29  0.214514
  30  0.238756
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  3.203e+01  2.033e+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.646e-01  2.388e-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.162e+00  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.84
Ra Dec: 196.008 37.071
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 6.57e-08 +/- 4.17e-08
Energy Flux (Fixed Index): 2.06e-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) = 5409.06444299
delta logL = 0.463534052334

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5409.06374506
delta logL = 0.464231984487

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.416       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0709       1.0000          .0000       10.000    
     3 'Normalizat'    1.1123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60270       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=   5409.064     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      296 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.412        22.079        .95973E-04   -.23774E-03
   2  Index         3.0714        .81331        .41336E-02   -.10703E-03
   3  Normalizat    1.1122        .21025        .22341E-03   -.15469E-03
   4  Prefactor     .60293        .24161        .34833E-03   -.21051E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4121
  Index      = 3.0714
  Normalizat = 1.11217
  Prefactor  = 0.602933
 **********
 **   18 **HESSE 
 **********

 FCN=   5409.064     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.412        18.380        .38389E-05   -1.4873    
   2  Index         3.0714        .67733        .16534E-03   -.39599    
   3  Normalizat    1.1122        .20912        .44681E-04   -.89362    
   4  Prefactor     .60293        .24082        .13933E-04   -1.0746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19693e-10
Minuit parameter uncertainties:
  1  18.3863
  2  0.679788
  3  0.209279
  4  0.24123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189500': 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) = 5409.06374408
delta logL = 0.464232966107

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.741e+01  1.839e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  3.071e+00  6.798e-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:  6.029e-01  2.412e-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.112e+00  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.87
Ra Dec: 196.008 37.071
Photon Index (Free Index): 3.07 +/- 0.68
Photon Flux (Free Index): 1.09e-07 +/- 6.55e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.06e-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/189500/cmap_HighResolution_394848001_395107201_4FGL_J1304.0+3704_daily_bin600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.57e-08', energy_flux2='2.11e-05', photon_flux_error='4.17e-08', dlogl='4.64e-01', energy_flux='2.06e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-06 20:00:58.003162', photon_index_error2='0.68', photon_index2='3.07', ts='6.84', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', energy_flux_error2='1.06e-05', EG='1.16', time_epoch_completed='1630983658.0', return_code='0', job_id='189500', GAL2='0.60', EG2='1.11', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='6.55e-08', ts2='7.87', photon_index='2.44' WHERE bin_id='600' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:00:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 189500: <4FGL_J1304.0+3704_daily_bin600> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin600> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 19:45:35 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:46:12 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:46:12 2021
Terminated at Mon Sep  6 20:00:58 2021
Results reported at Mon Sep  6 20:00:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin600 196.008 37.071 394848001 395107201 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 :                                   683.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             257.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            923 sec.

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

