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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin194
RA = 196.008, Dec = 37.071
tmin = 289612801, tmax = 289872001
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='186621', job_status='RUN', time_executed='2021-09-06 19:37:47.554015', time_epoch_executed='1630982267.55' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='194'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186621

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186621/ft1_4FGL_J1304.0+3704_daily_bin194.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186621/ft2_4FGL_J1304.0+3704_daily_bin194.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186621/ft1_4FGL_J1304.0+3704_daily_bin194.fits outfile=/scratch/kocevski/186621/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin194.fits ra=196.008 dec=37.071 rad=12.0 tmin=289612801.0 tmax=289872001.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.56
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/186621/ft2_4FGL_J1304.0+3704_daily_bin194.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/186621/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin194.fits evtable="EVENTS" outfile="/scratch/kocevski/186621/ft1_filtered_4FGL_J1304.0+3704_daily_bin194.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.53
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186621/ft1_filtered_4FGL_J1304.0+3704_daily_bin194.fits" evtable="EVENTS" scfile=/scratch/kocevski/186621/ft2_4FGL_J1304.0+3704_daily_bin194.fits sctable="SC_DATA" outfile=/scratch/kocevski/186621/ltcube_289612801_289872001_4FGL_J1304.0+3704_daily_bin194.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/186621/ft2_4FGL_J1304.0+3704_daily_bin194.fits
.....................!
real 15.68
user 15.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186621/ft1_filtered_4FGL_J1304.0+3704_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/186621/ft2_4FGL_J1304.0+3704_daily_bin194.fits sctable="SC_DATA" expcube=/scratch/kocevski/186621/ltcube_289612801_289872001_4FGL_J1304.0+3704_daily_bin194.fits outfile=/scratch/kocevski/186621/expmap_289612801_289872001_4FGL_J1304.0+3704_daily_bin194.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/186621/ltcube_289612801_289872001_4FGL_J1304.0+3704_daily_bin194.fits
.....................!
real 193.79
user 186.37
sys 4.96

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/186621/ft1_filtered_4FGL_J1304.0+3704_daily_bin194.fits scfile=/scratch/kocevski/186621/ft2_4FGL_J1304.0+3704_daily_bin194.fits outfile=/scratch/kocevski/186621/cmap_289612801_289872001_4FGL_J1304.0+3704_daily_bin194.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/186621/ft1_filtered_4FGL_J1304.0+3704_daily_bin194.fits scfile=/scratch/kocevski/186621/ft2_4FGL_J1304.0+3704_daily_bin194.fits outfile=/scratch/kocevski/186621/cmap_HighResolution_289612801_289872001_4FGL_J1304.0+3704_daily_bin194.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.0590       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.071       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.8107       1.0000         .10000E-03   10000.    
    10 'Prefactor '    57.487       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.015       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6769       1.0000         .10000E-03   10000.    
    14 'norm      '    .10152E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.0286       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9504       1.0000         .10000E-03   10000.    
    17 'norm      '    .95780       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4613       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .32178E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.0418       1.0000         .10000E-03   10000.    
    28 'norm      '    5.3645       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .91717       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .79042       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=   5053.645     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     3310 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5068       -.16921E-07** at limit **
   2  Prefactor     8.0609        8.8867        .21762E-05   -.31943E-03
   3  Prefactor     .10000E-03    1.1988        .88382E-09** at limit **
   4  Prefactor     15.072        10.305        .37341E-07   -.14379E-05
   5  Prefactor     .10000E-03    17.308       -.98463E-06** at limit **
   6  Prefactor     .10000E-03    7.0247       -.32968E-06** at limit **
   7  Prefactor     .10000E-03    19.895        .68017E-06** at limit **
   8  Prefactor     .10000E-03    4.3298        .12845E-07** at limit **
   9  norm          2.8106        3.3499       -.21423E-07   -.18473E-03
  10  Prefactor     57.482        39.973       -.40637E-06   -.51218E-04
  11  Prefactor     .10000E-03    12.020       -.20600E-06** at limit **
  12  Prefactor     34.024        16.451        .22866E-06    .74918E-04
  13  norm          2.6773        3.3893        .98030E-07    .42934E-04
  14  norm          .10000E-03    5.0104        .12873E-06** at limit **
  15  norm          8.0338        7.5627       -.10500E-05   -.29399E-03
  16  norm          1.9417        19.738        .33907E-05   -.82454E-04
  17  norm          .95972        3.4987        .11193E-05   -.10281E-03
  18  Prefactor     .10000E-03    1.5330       -.47142E-06** at limit **
  19  Prefactor     2.4849        18.407        .21672E-05    .25734E-04
  20  Prefactor     .10000E-03    19.546        .38572E-06** at limit **
  21  Prefactor     .10000E-03    12.805       -.65710E-06** at limit **
  22  Prefactor     .10000E-03    39.977        .28328E-06** at limit **
  23  Prefactor     .10000E-03    11.009        .68688E-06** at limit **
  24  Prefactor     .10000E-03    7.7713        .22839E-06** at limit **
  25  Prefactor     .10003E-03    151.95       -.14166E-04** at limit **
  26  norm          .10000E-03    .47979        .70305E-07** at limit **
  27  Prefactor     2.0423        3.8330        .41319E-06   -.15027E-05
  28  norm          5.3609        10.648        .16030E-06    .19330E-04
  29  Normalizat    .91695        .15859       -.32386E-06    .55447E-04
  30  Prefactor     .79061        .19540       -.90645E-06    .29748E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 8.06088
  Prefactor  = 0.0001
  Prefactor  = 15.0725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.81058
  Prefactor  = 57.4822
  Prefactor  = 0.0001
  Prefactor  = 34.0237
  norm       = 2.67731
  norm       = 0.0001
  norm       = 8.03377
  norm       = 1.9417
  norm       = 0.959716
  Prefactor  = 0.0001
  Prefactor  = 2.48485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  norm       = 0.0001
  Prefactor  = 2.04226
  norm       = 5.36092
  Normalizat = 0.916955
  Prefactor  = 0.790606
 **********
 **   18 **HESSE 
 **********

 FCN=   5053.645     FROM HESSE     STATUS=OK           586 CALLS     3896 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5150        .85204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.0609        9.0200        .70617E-03   -1.5140    
   3  Prefactor     .10000E-03    1.2209        .75977E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.072        10.305        .10317E-03   -1.4931    
   5  Prefactor     .10000E-03    17.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.0434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3888        .14427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.8106        3.3450        .13695E-03   -1.5373    
  10  Prefactor     57.482        40.055        .52911E-04   -1.4190    
  11  Prefactor     .10000E-03    12.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     34.024        16.447        .68708E-04   -1.4541    
  13  norm          2.6773        3.3761        .14183E-03   -1.5381    
  14  norm          .10000E-03    5.0173        .15544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.0338        7.3408        .97679E-04   -1.5141    
  16  norm          1.9417        18.641        .29715E-03   -1.5429    
  17  norm          .95972        3.4864        .24539E-03   -1.5512    
  18  Prefactor     .10000E-03    2.3407        .16016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.4849        16.864        .26068E-03   -1.5393    
  20  Prefactor     .10000E-03    19.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    41.417        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.7867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10003E-03    165.47        .21360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .81168        .95668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.0423        3.8101        .18407E-03   -1.5422    
  28  norm          5.3609        10.641        .17351E-03   -1.5245    
  29  Normalizat    .91695        .18740        .20347E-03   -.95867    
  30  Prefactor     .79061        .23049        .27375E-03   -1.0008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77387e-10
Minuit parameter uncertainties:
  1  1.25843e-06
  2  9.02148
  3  4.65547e-07
  4  10.3059
  5  0.000109586
  6  2.46311e-05
  7  9.38901e-05
  8  1.87031e-06
  9  3.34524
  10  40.0736
  11  1.67546e-05
  12  16.4496
  13  3.37639
  14  1.081e-05
  15  7.34158
  16  12.037
  17  3.48714
  18  4.17052e-05
  19  12.9519
  20  4.45844e-05
  21  6.1621e-05
  22  9.80968e-05
  23  6.32884e-05
  24  1.84269e-05
  25  0.00441531
  26  5.75638e-07
  27  3.81053
  28  10.6445
  29  0.187529
  30  0.230772
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  3.402e+01  1.645e+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:  7.906e-01  2.308e-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.170e-01  1.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.04
Ra Dec: 196.008 37.071
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 6.98e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 2.19e-05 +/- 1.06e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5053.45232388
delta logL = 0.193100942381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5053.45178703
delta logL = 0.193637795775

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.249       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1640       1.0000          .0000       10.000    
     3 'Normalizat'    .93304       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77681       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=   5053.452     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      264 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.201        470.82        .15240E-02   -.19992E-05
   2  Index         2.1627        6.0744        .13838        .68145E-04
   3  Normalizat    .93330        .11181        .45322E-01    .52897E-05
   4  Prefactor     .77670        .10324        .62437E-01    .14332E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.2015
  Index      = 2.1627
  Normalizat = 0.933295
  Prefactor  = 0.776698
 **********
 **   18 **HESSE 
 **********

 FCN=   5053.452     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.201        24.953        .60960E-04   -1.4392    
   2  Index         2.1627        .43158        .52953E-02   -.60342    
   3  Normalizat    .93330        .18268        .20194E-03   -.95300    
   4  Prefactor     .77670        .22831        .27617E-03   -1.0059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8758e-12
Minuit parameter uncertainties:
  1  24.9589
  2  0.432375
  3  0.182805
  4  0.228588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186621': 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) = 5053.45177393
delta logL = 0.19365089351

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  4.320e+01  2.496e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.163e+00  4.324e-01  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  7.767e-01  2.286e-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.333e-01  1.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.43
Ra Dec: 196.008 37.071
Photon Index (Free Index): 2.16 +/- 0.43
Photon Flux (Free Index): 5.78e-08 +/- 3.52e-08
Energy Flux (Free Index): 2.79e-05 +/- 1.97e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.98e-08', energy_flux2='2.79e-05', photon_flux_error='3.37e-08', dlogl='1.94e-01', energy_flux='2.19e-05', photon_flux2='5.78e-08', job_status='DONE', time_completed='2021-09-06 19:48:41.803789', photon_index_error2='0.43', photon_index2='2.16', ts='10.04', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.97e-05', EG='0.92', time_epoch_completed='1630982921.8', return_code='0', job_id='186621', GAL2='0.78', EG2='0.93', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='3.52e-08', ts2='10.43', photon_index='2.44' WHERE bin_id='194' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 19:48:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 186621: <4FGL_J1304.0+3704_daily_bin194> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin194 196.008 37.071 289612801 289872001 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 :                                   647.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            790 sec.

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

