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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin330
RA = 196.008, Dec = 37.071
tmin = 324864001, tmax = 325123201
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='186836', job_status='RUN', time_executed='2021-09-06 19:38:22.469686', time_epoch_executed='1630982302.47' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186836

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186836/ft1_4FGL_J1304.0+3704_daily_bin330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186836/ft2_4FGL_J1304.0+3704_daily_bin330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186836/ft1_4FGL_J1304.0+3704_daily_bin330.fits outfile=/scratch/kocevski/186836/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin330.fits ra=196.008 dec=37.071 rad=12.0 tmin=324864001.0 tmax=325123201.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.74
user 5.43
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186836/ft1_filtered_4FGL_J1304.0+3704_daily_bin330.fits" evtable="EVENTS" scfile=/scratch/kocevski/186836/ft2_4FGL_J1304.0+3704_daily_bin330.fits sctable="SC_DATA" outfile=/scratch/kocevski/186836/ltcube_324864001_325123201_4FGL_J1304.0+3704_daily_bin330.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/186836/ft2_4FGL_J1304.0+3704_daily_bin330.fits
.....................!
real 14.81
user 14.37
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186836/ft1_filtered_4FGL_J1304.0+3704_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/186836/ft2_4FGL_J1304.0+3704_daily_bin330.fits sctable="SC_DATA" expcube=/scratch/kocevski/186836/ltcube_324864001_325123201_4FGL_J1304.0+3704_daily_bin330.fits outfile=/scratch/kocevski/186836/expmap_324864001_325123201_4FGL_J1304.0+3704_daily_bin330.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/186836/ltcube_324864001_325123201_4FGL_J1304.0+3704_daily_bin330.fits
.....................!
real 191.28
user 185.69
sys 4.79

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/186836/ft1_filtered_4FGL_J1304.0+3704_daily_bin330.fits scfile=/scratch/kocevski/186836/ft2_4FGL_J1304.0+3704_daily_bin330.fits outfile=/scratch/kocevski/186836/cmap_324864001_325123201_4FGL_J1304.0+3704_daily_bin330.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.54
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6327       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.8915       1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.297       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7276       1.0000         .10000E-03   10000.    
    13 'norm      '    8.1447       1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10311E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.1544       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.883       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10923E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.556       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .84473E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.3424       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .72314       1.0000         .10000E-03   10000.    
    28 'norm      '    .12571E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4329       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .55913       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=   4234.145     FROM MIGRAD    STATUS=CONVERGED    791 CALLS     4520 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6329        3.8061        .26944E-07   -.95491E-05
   2  Prefactor     .10000E-03    6.9757       -.92608E-06** at limit **
   3  Prefactor     .10000E-03    1.1264        .44244E-07** at limit **
   4  Prefactor     .10000E-03    4.1914        .27708E-07** at limit **
   5  Prefactor     .10000E-03    15.140       -.33570E-06** at limit **
   6  Prefactor     .10000E-03    8.8153       -.10102E-05** at limit **
   7  Prefactor     .10000E-03    32.401       -.26863E-06** at limit **
   8  Prefactor     .10000E-03    7.6113       -.71781E-07** at limit **
   9  norm          3.8916        4.1659       -.13695E-07   -.26409E-03
  10  Prefactor     34.300        34.108        .20157E-06    .11464E-04
  11  Prefactor     .10000E-03    21.210        .10369E-05** at limit **
  12  Prefactor     2.7269        43.875        .19368E-04   -.24655E-03
  13  norm          8.1446        7.2606       -.39052E-06   -.56396E-03
  14  norm          .10000E-03    7.4072        .42815E-06** at limit **
  15  norm          .10183E-03    2.9124        .10281E-05** at limit **
  16  norm          .10000E-03    4.7459       -.15119E-07** at limit **
  17  norm          4.1546        3.8599        .70374E-07    .11680E-04
  18  Prefactor     .10000E-03    4.2933       -.21287E-06** at limit **
  19  Prefactor     21.879        23.053       -.30404E-06   -.24590E-03
  20  Prefactor     .10000E-03    11.392        .54854E-06** at limit **
  21  Prefactor     .10000E-03    167.31       -.16992E-05** at limit **
  22  Prefactor     .10000E-03    6.1378        .16237E-06** at limit **
  23  Prefactor     .10000E-03    19.244       -.86819E-06** at limit **
  24  Prefactor     13.556        21.891        .23254E-06   -.19935E-04
  25  Prefactor     .10142E-03    914.26       -.60483E-04** at limit **
  26  norm          3.3425        1.9555        .25189E-07    .16197E-03
  27  Prefactor     .72026        4.5546        .36451E-06   -.70879E-04
  28  norm          .10000E-03    60.144       -.35356E-05** at limit **
  29  Normalizat    1.4326        .21045       -.16046E-05   -.58103E-05
  30  Prefactor     .55931        .23732       -.69737E-06   -.55383E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.63287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.89163
  Prefactor  = 34.2999
  Prefactor  = 0.000100001
  Prefactor  = 2.7269
  norm       = 8.14461
  norm       = 0.0001
  norm       = 0.000101828
  norm       = 0.0001
  norm       = 4.15457
  Prefactor  = 0.0001
  Prefactor  = 21.8786
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5565
  Prefactor  = 0.000101415
  norm       = 3.34252
  Prefactor  = 0.720263
  norm       = 0.000100004
  Normalizat = 1.4326
  Prefactor  = 0.559313
 **********
 **   18 **HESSE 
 **********

 FCN=   4234.145     FROM HESSE     STATUS=OK           582 CALLS     5102 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6329        3.7979        .93552E-04   -1.5193    
   2  Prefactor     .10000E-03    7.0832        .16823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.1424        .67288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1986        .13011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.8647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.7344        .17555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.8916        4.1416        .13232E-03   -1.5313    
  10  Prefactor     34.300        34.118        .68427E-04   -1.4536    
  11  Prefactor     .10000E-03    21.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7269        47.511        .12328E-02   -1.5378    
  13  norm          8.1446        7.2149        .70242E-03   -1.5137    
  14  norm          .10000E-03    7.4238        .17307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10183E-03    71.205        .20142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.7798        .13822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.1546        3.8607        .11991E-03   -1.5300    
  18  Prefactor     .10000E-03    4.3336        .13078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.879        22.401        .85625E-04   -1.4772    
  20  Prefactor     .10000E-03    11.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    167.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.1417        .15746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.556        21.881        .10879E-03   -1.4971    
  25  Prefactor     .10142E-03    1032.8        .41739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.3425        1.9563        .67138E-04   -1.5342    
  27  Prefactor     .72026        15.039        .26470E-02   -1.5538    
  28  norm          .10000E-03    61.961        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4326        .24442        .20273E-03   -.79690    
  30  Prefactor     .55931        .27271        .36183E-03   -1.0933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56729e-08
Minuit parameter uncertainties:
  1  3.79808
  2  0.000113487
  3  2.08453e-06
  4  2.23705e-06
  5  6.43023e-05
  6  0.000146488
  7  8.00722e-05
  8  1.24534e-06
  9  4.14186
  10  34.1378
  11  0.00021306
  12  22.7856
  13  7.21571
  14  5.64215e-05
  15  0.0228439
  16  1.72297e-05
  17  3.86094
  18  1.04238e-05
  19  22.4101
  20  9.07962e-05
  21  0.000841596
  22  1.99317e-05
  23  0.000183402
  24  21.894
  25  0.0778437
  26  1.95638
  27  6.58393
  28  0.000991395
  29  0.244624
  30  0.273357
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  2.727e+00  2.279e+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.593e-01  2.734e-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:  1.433e+00  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 196.008 37.071
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186836/likelihoodResults_324864001_325123201_4FGL_J1304.0+3704_daily_bin330.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) = 4233.88552466
delta logL = 0.259662238096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4233.86194716
delta logL = 0.283239741262

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0814       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7513       1.0000          .0000       10.000    
     3 'Normalizat'    1.3855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59157       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=   4233.862     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      232 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0733        90.850        .71558E-02    .28924E-03
   2  Index         3.7530        6.8128        .11793        .76636E-04
   3  Normalizat    1.3854        .56415E-01    .46480E-01   -.76644E-04
   4  Prefactor     .59164        .65631E-01    .79576E-01    .23023E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.07328
  Index      = 3.75297
  Normalizat = 1.38541
  Prefactor  = 0.591643
 **********
 **   18 **HESSE 
 **********

 FCN=   4233.862     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      263 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0733        195.19        .12396E-03   -1.5420    
   2  Index         3.7530        6.3078        .70890E-02   -.25207    
   3  Normalizat    1.3854        .21927        .20546E-03   -.81051    
   4  Prefactor     .59164        .25541        .35241E-03   -1.0794    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.04041e-07
Minuit parameter uncertainties:
  1  40.3691
  2  9.71661
  3  0.219419
  4  0.255907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186836': 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) = 4233.86194645
delta logL = 0.283240453806

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  2.073e+00  4.037e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  3.753e+00  9.717e+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.916e-01  2.559e-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:  1.385e+00  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/186836/cmap_HighResolution_324864001_325123201_4FGL_J1304.0+3704_daily_bin330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.99e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-06 19:51:09.974987', job_id='186836', GAL2='0.59', fit_tolerance='1e-08', EG2='1.39', EG='1.43', time_epoch_completed='1630983069.98', return_code2='102', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='2.83e-01', ts2='0.61', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='330' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 19:51:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 186836: <4FGL_J1304.0+3704_daily_bin330> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin330 196.008 37.071 324864001 325123201 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 :                                   762.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

