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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin533
RA = 196.008, Dec = 37.071
tmin = 377481601, tmax = 377740801
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='189404', job_status='RUN', time_executed='2021-09-06 19:49:11.248834', time_epoch_executed='1630982951.25' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189404

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189404/ft1_4FGL_J1304.0+3704_daily_bin533.fits


Retrieving the FT1 file...

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

Retrieving 40 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189404/ft2_4FGL_J1304.0+3704_daily_bin533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189404/ft1_4FGL_J1304.0+3704_daily_bin533.fits outfile=/scratch/kocevski/189404/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin533.fits ra=196.008 dec=37.071 rad=12.0 tmin=377481601.0 tmax=377740801.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 3.23
user 2.99
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189404/ft2_4FGL_J1304.0+3704_daily_bin533.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/189404/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin533.fits evtable="EVENTS" outfile="/scratch/kocevski/189404/ft1_filtered_4FGL_J1304.0+3704_daily_bin533.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189404/ft1_filtered_4FGL_J1304.0+3704_daily_bin533.fits" evtable="EVENTS" scfile=/scratch/kocevski/189404/ft2_4FGL_J1304.0+3704_daily_bin533.fits sctable="SC_DATA" outfile=/scratch/kocevski/189404/ltcube_377481601_377740801_4FGL_J1304.0+3704_daily_bin533.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/189404/ft2_4FGL_J1304.0+3704_daily_bin533.fits
.....................!
real 13.65
user 13.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189404/ft1_filtered_4FGL_J1304.0+3704_daily_bin533.fits evtable="EVENTS" scfile=/scratch/kocevski/189404/ft2_4FGL_J1304.0+3704_daily_bin533.fits sctable="SC_DATA" expcube=/scratch/kocevski/189404/ltcube_377481601_377740801_4FGL_J1304.0+3704_daily_bin533.fits outfile=/scratch/kocevski/189404/expmap_377481601_377740801_4FGL_J1304.0+3704_daily_bin533.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/189404/ltcube_377481601_377740801_4FGL_J1304.0+3704_daily_bin533.fits
.....................!
real 193.45
user 187.99
sys 4.81

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

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189404/ft1_filtered_4FGL_J1304.0+3704_daily_bin533.fits scfile=/scratch/kocevski/189404/ft2_4FGL_J1304.0+3704_daily_bin533.fits outfile=/scratch/kocevski/189404/cmap_HighResolution_377481601_377740801_4FGL_J1304.0+3704_daily_bin533.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.536       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6140       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23862       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8624       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10531E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3451       1.0000         .10000E-03   10000.    
     9 'norm      '    7.1180       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9132       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.613       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5966       1.0000         .10000E-03   10000.    
    13 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10412E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .62201       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5368       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17623       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.358       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .49101E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10937E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.826       1.0000         .10000E-03   10000.    
    23 'Prefactor '    52.970       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.2231       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12132E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    10.742       1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.983       1.0000         .10000E-03   10000.    
    28 'norm      '    .15484E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .94363       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .52651       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=   4391.681     FROM MIGRAD    STATUS=CONVERGED    810 CALLS     4010 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.538        6.0896        .51021E-07   -.43430E-04
   2  Prefactor     .10000E-03    3.2803       -.58751E-08** at limit **
   3  Prefactor     1.6137        2.4981        .17747E-06    .13637E-04
   4  Prefactor     .10000E-03    4.1196       -.10063E-07** at limit **
   5  Prefactor     .63063E-01    27.002        .40632E-05   -.33392E-03
   6  Prefactor     2.8617        22.500        .47552E-06   -.18051E-04
   7  Prefactor     .10000E-03    28.858       -.42379E-07** at limit **
   8  Prefactor     1.3415        5.3242        .14195E-05    .18381E-04
   9  norm          7.1150        5.7003       -.77274E-07   -.50889E-03
  10  Prefactor     2.8770        124.76        .35679E-05    .60866E-05
  11  Prefactor     20.642        28.422       -.19545E-05   -.24581E-03
  12  Prefactor     7.6066        11.342       -.18805E-06   -.84910E-04
  13  norm          .10000E-03    1.7685        .40587E-08** at limit **
  14  norm          .10000E-03    9.4872        .27390E-06** at limit **
  15  norm          .61869        5.7188        .25757E-05   -.85707E-05
  16  norm          .10000E-03    4.4895       -.14198E-06** at limit **
  17  norm          1.5374        3.6421        .44480E-06   -.12834E-03
  18  Prefactor     .17632        2.3639       -.52762E-06    .81967E-03
  19  Prefactor     13.362        16.867       -.19890E-05   -.19989E-03
  20  Prefactor     .10000E-03    194.17        .59454E-05** at limit **
  21  Prefactor     .10000E-03    26.790        .10213E-06** at limit **
  22  Prefactor     17.824        15.368        .42145E-07   -.98159E-04
  23  Prefactor     52.913        39.656       -.56362E-06    .23815E-04
  24  Prefactor     9.2276        19.341        .55069E-06    .36277E-04
  25  Prefactor     .10003E-03    797.24       -.22966E-04** at limit **
  26  norm          10.743        2.5869       -.10256E-07   -.85010E-04
  27  Prefactor     10.977        6.8143        .24085E-06    .10109E-03
  28  norm          .10000E-03    40.024       -.38850E-06** at limit **
  29  Normalizat    .94402        .17061       -.30365E-05   -.33088E-03
  30  Prefactor     .52627        .19791        .92790E-06   -.29532E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.5379
  Prefactor  = 0.0001
  Prefactor  = 1.61368
  Prefactor  = 0.0001
  Prefactor  = 0.0630625
  Prefactor  = 2.86174
  Prefactor  = 0.0001
  Prefactor  = 1.3415
  norm       = 7.11504
  Prefactor  = 2.877
  Prefactor  = 20.6421
  Prefactor  = 7.60665
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.61869
  norm       = 0.0001
  norm       = 1.53736
  Prefactor  = 0.176318
  Prefactor  = 13.3618
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8244
  Prefactor  = 52.9131
  Prefactor  = 9.22762
  Prefactor  = 0.000100026
  norm       = 10.7433
  Prefactor  = 10.9767
  norm       = 0.0001
  Normalizat = 0.94402
  Prefactor  = 0.52627
 **********
 **   18 **HESSE 
 **********

 FCN=   4391.681     FROM HESSE     STATUS=OK           602 CALLS     4612 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.538        6.0695        .90264E-04   -1.4894    
   2  Prefactor     .10000E-03    3.2968        .11721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6137        2.4643        .11882E-03   -1.5454    
   4  Prefactor     .10000E-03    4.1309        .13136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .63063E-01    25.097        .99339E-01   -1.5658    
   6  Prefactor     2.8617        21.701        .24028E-03   -1.5370    
   7  Prefactor     .10000E-03    28.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.3415        5.1687        .26768E-03   -1.5476    
   9  norm          7.1150        5.6720        .12470E-03   -1.5174    
  10  Prefactor     2.8770        124.47        .23804E-03   -1.5369    
  11  Prefactor     20.642        28.443        .88220E-04   -1.4799    
  12  Prefactor     7.6066        11.246        .14550E-03   -1.5156    
  13  norm          .10000E-03    1.7733        .86025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.5202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .61869        9.3932        .23366E-02   -1.5551    
  16  norm          .10000E-03    4.4969        .13664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5374        3.5965        .18690E-03   -1.5460    
  18  Prefactor     .17632        8.8683        .17041E-02   -1.5624    
  19  Prefactor     13.362        17.931        .10959E-03   -1.4977    
  20  Prefactor     .10000E-03    201.77        .42333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.824        15.368        .94863E-04   -1.4863    
  23  Prefactor     52.913        39.614        .55109E-04   -1.4252    
  24  Prefactor     9.2276        19.335        .13197E-03   -1.5100    
  25  Prefactor     .10003E-03    798.72        .36334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          10.743        2.5892        .50146E-04   -1.5052    
  27  Prefactor     10.977        6.8247        .12089E-03   -1.5045    
  28  norm          .10000E-03    41.181        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .94402        .19598        .19701E-03   -.94930    
  30  Prefactor     .52627        .22951        .31509E-03   -1.1079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34502e-08
Minuit parameter uncertainties:
  1  6.06972
  2  7.95223e-06
  3  2.46446
  4  5.01742e-06
  5  2.51517
  6  15.7687
  7  2.0505e-05
  8  5.17037
  9  5.67245
  10  37.9309
  11  28.4618
  12  11.2495
  13  5.37805e-06
  14  8.55108e-06
  15  4.82193
  16  1.47622e-05
  17  3.59704
  18  2.5006
  19  17.9385
  20  0.000431294
  21  5.36089e-05
  22  15.3716
  23  39.6333
  24  19.3483
  25  0.00918811
  26  2.58923
  27  6.82522
  28  0.00024198
  29  0.196132
  30  0.229918
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  7.607e+00  1.125e+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.263e-01  2.299e-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:  9.440e-01  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/189404/likelihoodResults_377481601_377740801_4FGL_J1304.0+3704_daily_bin533.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): 0
logL (Free Index) = 4391.64553517
delta logL = 0.0355917773632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4391.64449781
delta logL = 0.0366291332048

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6563       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1337       1.0000          .0000       10.000    
     3 'Normalizat'    .94918       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52177       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.

 FCN=   4391.644     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      256 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6839        612.62        .32240E-02   -.15742E-03
   2  Index         2.1366        5.0435        .25073       -.24370E-04
   3  Normalizat    .94908        .73006E-01    .45527E-01   -.39600E-03
   4  Prefactor     .52172        .68939E-01    .71445E-01   -.90232E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.68387
  Index      = 2.13656
  Normalizat = 0.949078
  Prefactor  = 0.521717
 **********
 **   18 **HESSE 
 **********

 FCN=   4391.644     FROM HESSE     STATUS=OK            31 CALLS      287 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6839        14.896        .12896E-03   -1.5085    
   2  Index         2.1366        1.0421        .10931E-01   -.60978    
   3  Normalizat    .94908        .18635        .19653E-03   -.94756    
   4  Prefactor     .52172        .22744        .31631E-03   -1.1099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36289e-10
Minuit parameter uncertainties:
  1  14.9013
  2  1.05371
  3  0.186481
  4  0.22784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189404': 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) = 4391.6444886
delta logL = 0.036638345442

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  9.684e+00  1.490e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.137e+00  1.054e+00  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:  5.217e-01  2.278e-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:  9.491e-01  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.74
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/189404/cmap_HighResolution_377481601_377740801_4FGL_J1304.0+3704_daily_bin533.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.98e-03', job_status='DONE', photon_flux_upper_limit='7.73e-08', time_completed='2021-09-06 20:01:24.573649', job_id='189404', GAL2='0.52', fit_tolerance='1e-08', EG2='0.95', EG='0.94', time_epoch_completed='1630983684.57', return_code2='0', ts='0.74', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='3.66e-02', ts2='0.81', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='533' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:01:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 189404: <4FGL_J1304.0+3704_daily_bin533> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin533> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 19:45:29 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:45:59 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:45:59 2021
Terminated at Mon Sep  6 20:01:25 2021
Results reported at Mon Sep  6 20:01:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin533 196.008 37.071 377481601 377740801 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 :                                   732.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            956 sec.

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

