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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin108
RA = 196.008, Dec = 37.071
tmin = 267321601, tmax = 267580801
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='183992', job_status='RUN', time_executed='2021-09-06 19:28:58.202209', time_epoch_executed='1630981738.2' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='108'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/183992

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/183992/ft1_4FGL_J1304.0+3704_daily_bin108.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/183992/ft2_4FGL_J1304.0+3704_daily_bin108.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/183992/ft1_4FGL_J1304.0+3704_daily_bin108.fits outfile=/scratch/kocevski/183992/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin108.fits ra=196.008 dec=37.071 rad=12.0 tmin=267321601.0 tmax=267580801.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.43
user 1.24
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/183992/ft1_filtered_4FGL_J1304.0+3704_daily_bin108.fits evtable="EVENTS" scfile=/scratch/kocevski/183992/ft2_4FGL_J1304.0+3704_daily_bin108.fits sctable="SC_DATA" expcube=/scratch/kocevski/183992/ltcube_267321601_267580801_4FGL_J1304.0+3704_daily_bin108.fits outfile=/scratch/kocevski/183992/expmap_267321601_267580801_4FGL_J1304.0+3704_daily_bin108.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/183992/ltcube_267321601_267580801_4FGL_J1304.0+3704_daily_bin108.fits
.....................!
real 192.23
user 186.83
sys 4.73

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/183992/ft1_filtered_4FGL_J1304.0+3704_daily_bin108.fits scfile=/scratch/kocevski/183992/ft2_4FGL_J1304.0+3704_daily_bin108.fits outfile=/scratch/kocevski/183992/cmap_267321601_267580801_4FGL_J1304.0+3704_daily_bin108.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=196.008 yref=37.071 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/183992/ft1_filtered_4FGL_J1304.0+3704_daily_bin108.fits scfile=/scratch/kocevski/183992/ft2_4FGL_J1304.0+3704_daily_bin108.fits outfile=/scratch/kocevski/183992/cmap_HighResolution_267321601_267580801_4FGL_J1304.0+3704_daily_bin108.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.739       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1469       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.338       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13510E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.437       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9212       1.0000         .10000E-03   10000.    
     9 'norm      '    .10723E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9908       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.6462       1.0000         .10000E-03   10000.    
    14 'norm      '    6.2978       1.0000         .10000E-03   10000.    
    15 'norm      '    .10600E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9323       1.0000         .10000E-03   10000.    
    17 'norm      '    5.6477       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2426       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .61168       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .31105E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    123.38       1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.664       1.0000         .10000E-03   10000.    
    25 'Prefactor '    55.085       1.0000         .10000E-03   10000.    
    26 'norm      '    2.5995       1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.569       1.0000         .10000E-03   10000.    
    28 'norm      '    22.674       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .60338       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3339       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=   4666.216     FROM MIGRAD    STATUS=CONVERGED    801 CALLS     3941 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3040        .44135E-09** at limit **
   2  Prefactor     10.741        7.4622       -.66440E-07   -.99008E-04
   3  Prefactor     4.1481        2.5469        .21472E-07   -.77562E-06
   4  Prefactor     13.340        10.375        .38833E-07   -.94326E-05
   5  Prefactor     .10000E-03    55.253       -.34086E-06** at limit **
   6  Prefactor     13.436        21.936       -.93236E-09   -.16308E-04
   7  Prefactor     .10000E-03    25.120       -.25275E-06** at limit **
   8  Prefactor     6.9235        6.3385       -.54794E-07   -.62448E-04
   9  norm          .10000E-03    2.9332       -.45515E-06** at limit **
  10  Prefactor     .10000E-03    22.922        .35618E-07** at limit **
  11  Prefactor     8.9622        22.372       -.14975E-05   -.65923E-04
  12  Prefactor     .10000E-03    9.9848        .72510E-07** at limit **
  13  norm          7.6502        6.3250        .38751E-06    .29193E-03
  14  norm          6.2950        14.838        .45813E-06    .26163E-04
  15  norm          .10000E-03    3.4338       -.30712E-06** at limit **
  16  norm          2.9267        5.7515        .45365E-06    .14347E-03
  17  norm          5.6370        5.9007        .20695E-05   -.30056E-03
  18  Prefactor     2.2421        3.0365        .91538E-07    .44388E-03
  19  Prefactor     .61972        14.372       -.21938E-05    .35721E-03
  20  Prefactor     .10002E-03    212.27        .85382E-05** at limit **
  21  Prefactor     .10000E-03    17.797        .20494E-07** at limit **
  22  Prefactor     .10000E-03    6.3149       -.53732E-09** at limit **
  23  Prefactor     123.17        64.745       -.73862E-07   -.98537E-04
  24  Prefactor     21.648        25.411        .52961E-06    .69370E-04
  25  Prefactor     55.139        84.543        .35531E-05    .10998E-03
  26  norm          2.6002        2.0195        .57421E-07   -.70892E-04
  27  Prefactor     16.572        8.1137        .11662E-06    .13542E-03
  28  norm          22.678        23.134        .48669E-06    .10625E-03
  29  Normalizat    .60270        .20147       -.11624E-05    .11072E-03
  30  Prefactor     1.3346        .24697        .26037E-06    .67266E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 10.741
  Prefactor  = 4.14806
  Prefactor  = 13.3399
  Prefactor  = 0.0001
  Prefactor  = 13.4356
  Prefactor  = 0.0001
  Prefactor  = 6.9235
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.96225
  Prefactor  = 0.0001
  norm       = 7.65019
  norm       = 6.29498
  norm       = 0.0001
  norm       = 2.92668
  norm       = 5.63702
  Prefactor  = 2.24207
  Prefactor  = 0.619721
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 123.167
  Prefactor  = 21.6478
  Prefactor  = 55.1393
  norm       = 2.60019
  Prefactor  = 16.5718
  norm       = 22.6781
  Normalizat = 0.602702
  Prefactor  = 1.33457
 **********
 **   18 **HESSE 
 **********

 FCN=   4666.216     FROM HESSE     STATUS=OK           592 CALLS     4533 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3209        .10091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.741        7.4681        .12226E-03   -1.5052    
   3  Prefactor     4.1481        2.5383        .82594E-04   -1.5301    
   4  Prefactor     13.340        10.374        .10967E-03   -1.4977    
   5  Prefactor     .10000E-03    55.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.436        21.955        .10927E-03   -1.4975    
   7  Prefactor     .10000E-03    25.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.9235        6.3337        .15250E-03   -1.5182    
   9  norm          .10000E-03    2.9479        .11361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.9622        22.602        .13367E-03   -1.5109    
  12  Prefactor     .10000E-03    10.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.6502        6.3424        .14502E-03   -1.5155    
  14  norm          6.2950        14.856        .15995E-03   -1.5206    
  15  norm          .10000E-03    3.4602        .24447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9267        5.6849        .21640E-03   -1.5366    
  17  norm          5.6370        6.0844        .83887E-03   -1.5233    
  18  Prefactor     2.2421        2.9874        .12348E-03   -1.5408    
  19  Prefactor     .61972        54.075        .43432E-02   -1.5551    
  20  Prefactor     .10002E-03    223.92        .21374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.3202        .16764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     123.17        64.763        .36236E-04   -1.3484    
  24  Prefactor     21.648        25.454        .86054E-04   -1.4777    
  25  Prefactor     55.139        86.723        .54046E-04   -1.4221    
  26  norm          2.6002        2.0108        .81409E-04   -1.5385    
  27  Prefactor     16.572        8.1199        .98396E-04   -1.4894    
  28  norm          22.678        23.160        .84119E-04   -1.4755    
  29  Normalizat    .60270        .24412        .28162E-03   -1.0787    
  30  Prefactor     1.3346        .30194        .25423E-03   -.82285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64948e-09
Minuit parameter uncertainties:
  1  1.91459e-06
  2  7.4687
  3  2.53835
  4  10.3756
  5  7.56703e-05
  6  21.9681
  7  2.12757e-05
  8  6.33431
  9  1.43699e-05
  10  3.70648e-06
  11  22.6235
  12  7.78166e-08
  13  6.34293
  14  14.8645
  15  1.96006e-05
  16  5.6859
  17  6.08504
  18  2.98755
  19  11.5877
  20  0.00451053
  21  4.43643e-06
  22  1.02289e-06
  23  64.8005
  24  25.4666
  25  86.9226
  26  2.01088
  27  8.12041
  28  23.169
  29  0.244556
  30  0.302336
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  7.782e-08  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.335e+00  3.023e-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.027e-01  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 196.008 37.071
Photon Flux Upper Limit: 6.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/183992/likelihoodResults_267321601_267580801_4FGL_J1304.0+3704_daily_bin108.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4666.21612487
delta logL = -0.000475093367641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4666.21565002
delta logL = -2.41553607339e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4244       1.0000          .0000       10.000    
     3 'Normalizat'    .60274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3345       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=   4666.216     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      249 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10039E-03    85.634        .18142E-02** at limit **
   2  Index         2.3938        5.7426        .50000        .85028E-05
   3  Normalizat    .60270        .13000E-01    .28163E-03    .92846E-06
   4  Prefactor     1.3346        .16931E-01    .25423E-03    .49191E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010039
  Index      = 2.39385
  Normalizat = 0.602701
  Prefactor  = 1.33457
 **********
 **   18 **HESSE 
 **********

 FCN=   4666.216     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10039E-03    381.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3938        6.0342        .50000       -.54829    
   3  Normalizat    .60270        .28507E-01    .11265E-04   -1.0787    
   4  Prefactor     1.3346        .37126E-01    .10169E-04   -.82285    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.63417e-09
Minuit parameter uncertainties:
  1  0.024559
  2  622.561
  3  0.0285076
  4  0.0371271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/183992': 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) = 4666.21564971
delta logL = 7.18682713341e-08

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.004e-04  2.456e-02  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.394e+00  6.226e+02  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.335e+00  3.713e-02  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.027e-01  2.851e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 196.008 37.071

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/183992/cmap_HighResolution_267321601_267580801_4FGL_J1304.0+3704_daily_bin108.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-03', job_status='DONE', photon_flux_upper_limit='6.75e-08', time_completed='2021-09-06 19:41:11.246331', job_id='183992', GAL2='1.33', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1630982471.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='7.19e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='108' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 19:41:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 183992: <4FGL_J1304.0+3704_daily_bin108> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin108 196.008 37.071 267321601 267580801 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 :                                   731.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            926 sec.

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

