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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin270
RA = 196.008, Dec = 37.071
tmin = 309312001, tmax = 309571201
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='186741', job_status='RUN', time_executed='2021-09-06 19:37:45.819491', time_epoch_executed='1630982265.82' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186741

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186741/ft1_4FGL_J1304.0+3704_daily_bin270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186741/ft2_4FGL_J1304.0+3704_daily_bin270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186741/ft1_4FGL_J1304.0+3704_daily_bin270.fits outfile=/scratch/kocevski/186741/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin270.fits ra=196.008 dec=37.071 rad=12.0 tmin=309312001.0 tmax=309571201.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.07
user 3.79
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/186741/ft2_4FGL_J1304.0+3704_daily_bin270.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/186741/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin270.fits evtable="EVENTS" outfile="/scratch/kocevski/186741/ft1_filtered_4FGL_J1304.0+3704_daily_bin270.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/186741/ft1_filtered_4FGL_J1304.0+3704_daily_bin270.fits" evtable="EVENTS" scfile=/scratch/kocevski/186741/ft2_4FGL_J1304.0+3704_daily_bin270.fits sctable="SC_DATA" outfile=/scratch/kocevski/186741/ltcube_309312001_309571201_4FGL_J1304.0+3704_daily_bin270.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/186741/ft2_4FGL_J1304.0+3704_daily_bin270.fits
.....................!
real 16.02
user 15.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186741/ft1_filtered_4FGL_J1304.0+3704_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/186741/ft2_4FGL_J1304.0+3704_daily_bin270.fits sctable="SC_DATA" expcube=/scratch/kocevski/186741/ltcube_309312001_309571201_4FGL_J1304.0+3704_daily_bin270.fits outfile=/scratch/kocevski/186741/expmap_309312001_309571201_4FGL_J1304.0+3704_daily_bin270.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/186741/ltcube_309312001_309571201_4FGL_J1304.0+3704_daily_bin270.fits
.....................!
real 192.18
user 187.23
sys 4.35

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/186741/ft1_filtered_4FGL_J1304.0+3704_daily_bin270.fits scfile=/scratch/kocevski/186741/ft2_4FGL_J1304.0+3704_daily_bin270.fits outfile=/scratch/kocevski/186741/cmap_309312001_309571201_4FGL_J1304.0+3704_daily_bin270.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.490       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2685       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6790       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5658       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.951       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8692       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.9148       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.733       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1402       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .49531       1.0000         .10000E-03   10000.    
    16 'norm      '    .12807E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .12220E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .80059E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.630       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    35.013       1.0000         .10000E-03   10000.    
    25 'Prefactor '    21.300       1.0000         .10000E-03   10000.    
    26 'norm      '    1.4861       1.0000         .10000E-03   10000.    
    27 'Prefactor '    41.068       1.0000         .10000E-03   10000.    
    28 'norm      '    .10404E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .88910       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0051       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=   5403.093     FROM MIGRAD    STATUS=CONVERGED    790 CALLS     3952 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.490        4.9603       -.11047E-06   -.13783E-04
   2  Prefactor     2.2689        6.9654        .80184E-05    .14755E-03
   3  Prefactor     2.6792        2.4480        .20277E-07    .26972E-05
   4  Prefactor     6.5654        7.2679        .48338E-06    .61661E-05
   5  Prefactor     33.947        33.414        .57863E-06   -.67557E-05
   6  Prefactor     8.8697        12.403        .15463E-06   -.75194E-05
   7  Prefactor     .10000E-03    91.370        .53405E-06** at limit **
   8  Prefactor     .10000E-03    1.2755        .17371E-07** at limit **
   9  norm          4.9103        4.6468        .37446E-06   -.21636E-03
  10  Prefactor     26.736        31.548        .49780E-07   -.33667E-05
  11  Prefactor     4.1372        21.596        .22562E-05   -.43790E-04
  12  Prefactor     .10000E-03    2.9891        .85104E-08** at limit **
  13  norm          .10000E-03    1.0609       -.38567E-08** at limit **
  14  norm          .10000E-03    9.8133        .10091E-06** at limit **
  15  norm          .48987        4.8546        .76412E-06   -.36841E-03
  16  norm          .10004E-03    6.7554        .18563E-05** at limit **
  17  norm          .10000E-03    2.9188       -.31967E-06** at limit **
  18  Prefactor     .10000E-03    1.7304       -.31462E-06** at limit **
  19  Prefactor     .10000E-03    9.9552       -.12254E-05** at limit **
  20  Prefactor     15.622        30.795        .77541E-06   -.61067E-07
  21  Prefactor     .10000E-03    47.447       -.17561E-05** at limit **
  22  Prefactor     .10000E-03    11.487        .42137E-07** at limit **
  23  Prefactor     .10000E-03    43.805       -.40821E-06** at limit **
  24  Prefactor     35.015        22.360        .13850E-06   -.97302E-05
  25  Prefactor     21.239        61.522        .10361E-04   -.48529E-04
  26  norm          1.4857        1.8187        .18615E-07   -.29772E-03
  27  Prefactor     41.067        9.0640        .34840E-07   -.27694E-04
  28  norm          .10000E-03    33.460        .51750E-06** at limit **
  29  Normalizat    .88930        .17635        .39583E-06    .16800E-05
  30  Prefactor     1.0048        .21372       -.32698E-05   -.20267E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.4901
  Prefactor  = 2.26886
  Prefactor  = 2.67915
  Prefactor  = 6.56543
  Prefactor  = 33.9474
  Prefactor  = 8.86972
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.91026
  Prefactor  = 26.7359
  Prefactor  = 4.1372
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.489875
  norm       = 0.000100045
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 15.6218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.015
  Prefactor  = 21.2392
  norm       = 1.48571
  Prefactor  = 41.0675
  norm       = 0.000100002
  Normalizat = 0.889298
  Prefactor  = 1.00483
 **********
 **   18 **HESSE 
 **********

 FCN=   5403.093     FROM HESSE     STATUS=OK           596 CALLS     4548 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.490        4.9681        .10207E-03   -1.5060    
   2  Prefactor     2.2689        7.0409        .13634E-02   -1.5407    
   3  Prefactor     2.6792        2.4556        .99887E-04   -1.5381    
   4  Prefactor     6.5654        7.2630        .78307E-03   -1.5195    
   5  Prefactor     33.947        33.410        .68773E-04   -1.4542    
   6  Prefactor     8.8697        12.401        .13459E-03   -1.5112    
   7  Prefactor     .10000E-03    91.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.2760        .81073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.9103        4.6119        .70139E-03   -1.5265    
  10  Prefactor     26.736        31.547        .77481E-04   -1.4673    
  11  Prefactor     4.1372        21.085        .99049E-03   -1.5301    
  12  Prefactor     .10000E-03    2.9903        .12411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0615        .73932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.8479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .48987        6.0977        .23081E-02   -1.5568    
  16  norm          .10004E-03    25.704        .30275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.607        .24246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.5893        .17578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    39.527        .40952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.622        30.628        .10131E-03   -1.4917    
  21  Prefactor     .10000E-03    47.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    43.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     35.015        22.359        .67725E-04   -1.4524    
  25  Prefactor     21.239        61.789        .86787E-04   -1.4786    
  26  norm          1.4857        1.7987        .10351E-03   -1.5464    
  27  Prefactor     41.067        9.0683        .62551E-04   -1.4425    
  28  norm          .10000E-03    34.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .88930        .20711        .22847E-03   -.96837    
  30  Prefactor     1.0048        .25097        .27653E-03   -.92569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39624e-09
Minuit parameter uncertainties:
  1  4.96833
  2  7.04343
  3  2.45571
  4  7.26393
  5  33.4288
  6  12.4048
  7  0.000133321
  8  8.85232e-07
  9  4.61226
  10  31.5662
  11  18.6901
  12  3.34007e-07
  13  3.38811e-07
  14  1.48712e-05
  15  3.45673
  16  0.00214484
  17  0.000327792
  18  1.2828e-05
  19  0.000579267
  20  30.6588
  21  6.25238e-06
  22  2.18113e-05
  23  9.26037e-05
  24  22.3639
  25  61.9756
  26  1.79877
  27  9.06859
  28  0.000504332
  29  0.2073
  30  0.25126
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.340e-07  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.005e+00  2.513e-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:  8.893e-01  2.073e-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: 3.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186741/likelihoodResults_309312001_309571201_4FGL_J1304.0+3704_daily_bin270.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) = 5403.09499748
delta logL = -0.00155671658285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5403.09344055
delta logL = 2.16224179894e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4120       1.0000          .0000       10.000    
     3 'Normalizat'    .88933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0048       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=   5403.093     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      248 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.909        .12713E-01** at limit **
   2  Index         1.6620        5.7840        .50000       -.84218E-06
   3  Normalizat    .88929        .85150E-02    .22846E-03   -.49727E-03
   4  Prefactor     1.0048        .10949E-01    .27653E-03   -.40709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.66203
  Normalizat = 0.889295
  Prefactor  = 1.00484
 **********
 **   18 **HESSE 
 **********

 FCN=   5403.093     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      275 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    166.58        .15580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6620        9.0682        .50000       -.73097    
   3  Normalizat    .88929        .24940E-01    .45693E-04   -.96837    
   4  Prefactor     1.0048        .32070E-01    .55306E-04   -.92568    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.10723e-08
Minuit parameter uncertainties:
  1  8.51293e-05
  2  738.849
  3  0.0249404
  4  0.0320703
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186741': 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) = 5403.09343466
delta logL = 6.10503320786e-06

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  8.513e-05  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  1.662e+00  7.388e+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.005e+00  3.207e-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:  8.893e-01  2.494e-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/186741/cmap_HighResolution_309312001_309571201_4FGL_J1304.0+3704_daily_bin270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-03', job_status='DONE', photon_flux_upper_limit='3.47e-08', time_completed='2021-09-06 19:51:27.519798', job_id='186741', GAL2='1.00', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630983087.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='6.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='270' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 19:51:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 186741: <4FGL_J1304.0+3704_daily_bin270> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin270 196.008 37.071 309312001 309571201 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 :                                   819.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            944 sec.

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

