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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin746
RA = 196.008, Dec = 37.071
tmin = 432691201, tmax = 432950401
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='190772', job_status='RUN', time_executed='2021-09-06 19:53:10.215272', time_epoch_executed='1630983190.22' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/190772

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/190772/ft1_4FGL_J1304.0+3704_daily_bin746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/190772/ft2_4FGL_J1304.0+3704_daily_bin746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/190772/ft1_4FGL_J1304.0+3704_daily_bin746.fits outfile=/scratch/kocevski/190772/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin746.fits ra=196.008 dec=37.071 rad=12.0 tmin=432691201.0 tmax=432950401.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.37
user 5.11
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/190772/ft1_filtered_4FGL_J1304.0+3704_daily_bin746.fits evtable="EVENTS" scfile=/scratch/kocevski/190772/ft2_4FGL_J1304.0+3704_daily_bin746.fits sctable="SC_DATA" expcube=/scratch/kocevski/190772/ltcube_432691201_432950401_4FGL_J1304.0+3704_daily_bin746.fits outfile=/scratch/kocevski/190772/expmap_432691201_432950401_4FGL_J1304.0+3704_daily_bin746.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/190772/ltcube_432691201_432950401_4FGL_J1304.0+3704_daily_bin746.fits
.....................!
real 192.21
user 186.31
sys 5.16

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/190772/ft1_filtered_4FGL_J1304.0+3704_daily_bin746.fits scfile=/scratch/kocevski/190772/ft2_4FGL_J1304.0+3704_daily_bin746.fits outfile=/scratch/kocevski/190772/cmap_432691201_432950401_4FGL_J1304.0+3704_daily_bin746.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/190772/ft1_filtered_4FGL_J1304.0+3704_daily_bin746.fits scfile=/scratch/kocevski/190772/ft2_4FGL_J1304.0+3704_daily_bin746.fits outfile=/scratch/kocevski/190772/cmap_HighResolution_432691201_432950401_4FGL_J1304.0+3704_daily_bin746.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.60
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8745       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6634       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.555       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.458       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .28528E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    82.039       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11536E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .20488E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.3649       1.0000         .10000E-03   10000.    
    15 'norm      '    9.0258       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5820       1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.247       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.651       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .62841       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    27.220       1.0000         .10000E-03   10000.    
    26 'norm      '    9.3055       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.9797       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .69171       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1213       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=   3916.724     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     3920 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8746        3.4527        .57687E-08   -.40366E-04
   2  Prefactor     .10000E-03    3.9462        .17957E-06** at limit **
   3  Prefactor     .10000E-03    .99841       -.72972E-07** at limit **
   4  Prefactor     4.6634        5.2385        .97166E-07   -.15301E-04
   5  Prefactor     14.560        34.580       -.28376E-06   -.32792E-05
   6  Prefactor     .10000E-03    10.750       -.37448E-06** at limit **
   7  Prefactor     32.456        69.924       -.21759E-05   -.40030E-04
   8  Prefactor     .10000E-03    3.8454        .38531E-07** at limit **
   9  norm          .10000E-03    3.8759        .99068E-08** at limit **
  10  Prefactor     82.042        66.605        .62386E-07   -.89179E-05
  11  Prefactor     .10000E-03    64.224        .22412E-05** at limit **
  12  Prefactor     .10000E-03    5.9343       -.34268E-08** at limit **
  13  norm          .10001E-03    4.5726       -.34826E-07** at limit **
  14  norm          6.3639        16.109       -.24664E-06    .12371E-05
  15  norm          9.0216        4.6075       -.77530E-06   -.57748E-03
  16  norm          .10000E-03    9.5424        .61576E-06** at limit **
  17  norm          .10000E-03    2.7972       -.81491E-06** at limit **
  18  Prefactor     .10000E-03    1.1531        .10603E-06** at limit **
  19  Prefactor     4.5821        12.081       -.47458E-06   -.53267E-04
  20  Prefactor     32.260        36.608        .16534E-07   -.29491E-04
  21  Prefactor     13.653        47.669       -.28404E-07   -.19102E-04
  22  Prefactor     .59296        63.010        .80297E-05   -.90880E-04
  23  Prefactor     .10000E-03    16.810        .80064E-06** at limit **
  24  Prefactor     .10000E-03    8.8720        .28583E-06** at limit **
  25  Prefactor     27.225        69.164       -.59943E-06   -.76757E-05
  26  norm          9.3056        2.5726        .19733E-07   -.20470E-05
  27  Prefactor     2.9806        6.0504       -.90413E-06   -.77169E-05
  28  norm          .10000E-03    20.358       -.16333E-05** at limit **
  29  Normalizat    .69155        .19149        .66494E-06   -.27997E-03
  30  Prefactor     1.1215        .23530       -.12664E-05   -.13404E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.8746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.66336
  Prefactor  = 14.5604
  Prefactor  = 0.0001
  Prefactor  = 32.4561
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 82.0422
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100008
  norm       = 6.36386
  norm       = 9.02165
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.58214
  Prefactor  = 32.2605
  Prefactor  = 13.6526
  Prefactor  = 0.592961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.2247
  norm       = 9.30558
  Prefactor  = 2.98061
  norm       = 0.0001
  Normalizat = 0.691549
  Prefactor  = 1.1215
 **********
 **   18 **HESSE 
 **********

 FCN=   3916.724     FROM HESSE     STATUS=OK           586 CALLS     4506 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8746        3.4501        .86803E-04   -1.5223    
   2  Prefactor     .10000E-03    3.9907        .12140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.0128        .60977E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.6634        5.2394        .14816E-03   -1.5276    
   5  Prefactor     14.560        34.627        .10498E-03   -1.4945    
   6  Prefactor     .10000E-03    10.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.456        69.162        .70333E-04   -1.4568    
   8  Prefactor     .10000E-03    3.8721        .11983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    19.428        .21943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     82.042        66.583        .44345E-04   -1.3894    
  11  Prefactor     .10000E-03    65.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.9404        .14889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    8.6570        .22967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.3639        16.093        .15910E-03   -1.5203    
  15  norm          9.0216        4.6575        .91375E-04   -1.5107    
  16  norm          .10000E-03    9.7736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.7936        .10154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.1579        .65626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.5821        12.015        .18805E-03   -1.5280    
  20  Prefactor     32.260        36.675        .70561E-04   -1.4571    
  21  Prefactor     13.653        47.597        .10841E-03   -1.4969    
  22  Prefactor     .59296        69.750        .44922E-02   -1.5554    
  23  Prefactor     .10000E-03    16.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.8749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     27.225        69.182        .76786E-04   -1.4664    
  26  norm          9.3056        2.5735        .51101E-04   -1.5098    
  27  Prefactor     2.9806        5.9834        .20745E-03   -1.5363    
  28  norm          .10000E-03    20.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .69155        .22328        .23743E-03   -1.0423    
  30  Prefactor     1.1215        .27627        .24683E-03   -.88782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37755e-09
Minuit parameter uncertainties:
  1  3.45026
  2  2.26198e-06
  3  6.55603e-07
  4  5.23995
  5  34.6748
  6  2.9539e-05
  7  69.3335
  8  3.22887e-06
  9  0.000372058
  10  66.644
  11  0.000328732
  12  5.19763e-06
  13  0.000517669
  14  16.1039
  15  4.65773
  16  0.000121133
  17  6.78301e-06
  18  2.56204e-06
  19  12.0211
  20  36.7003
  21  47.7303
  22  12.8765
  23  0.000129072
  24  1.25444e-05
  25  69.387
  26  2.57358
  27  5.98456
  28  8.62532e-05
  29  0.223575
  30  0.276625
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  5.198e-06  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.122e+00  2.766e-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.915e-01  2.236e-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: 5.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/190772/likelihoodResults_432691201_432950401_4FGL_J1304.0+3704_daily_bin746.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) = 3916.7247258
delta logL = -0.000797499498276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3916.72392831
delta logL = -7.4878698797e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4203       1.0000          .0000       10.000    
     3 'Normalizat'    .69159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1215       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=   3916.724     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      255 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.722        .15033E-01** at limit **
   2  Index         1.8401        7.3201        .50000        .12916E-06
   3  Normalizat    .69155        .92599E-02    .23743E-03   -.11300E-04
   4  Prefactor     1.1215        .12060E-01    .24683E-03   -.88202E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.84012
  Normalizat = 0.691552
  Prefactor  = 1.1215
 **********
 **   18 **HESSE 
 **********

 FCN=   3916.724     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    404.38        .16578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8401        8.8278        .50000       -.68410    
   3  Normalizat    .69155        .34795E-01    .94974E-05   -1.0423    
   4  Prefactor     1.1215        .45314E-01    .98733E-05   -.88782    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.57399e-09
Minuit parameter uncertainties:
  1  0.000127818
  2  1450.32
  3  0.0347956
  4  0.0453159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/190772': 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) = 3916.72392668
delta logL = 1.62254536917e-06

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.278e-04  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  1.840e+00  1.450e+03  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.121e+00  4.532e-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.916e-01  3.480e-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/190772/cmap_HighResolution_432691201_432950401_4FGL_J1304.0+3704_daily_bin746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.59e-03', job_status='DONE', photon_flux_upper_limit='5.93e-08', time_completed='2021-09-06 20:04:46.760688', job_id='190772', GAL2='1.12', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1630983886.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.62e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='746' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:04:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 190772: <4FGL_J1304.0+3704_daily_bin746> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin746> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 19:50:18 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:50:30 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:50:30 2021
Terminated at Mon Sep  6 20:04:47 2021
Results reported at Mon Sep  6 20:04:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin746 196.008 37.071 432691201 432950401 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 :                                   695.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            869 sec.

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

