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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin325
RA = 196.008, Dec = 37.071
tmin = 323568001, tmax = 323827201
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='186828', job_status='RUN', time_executed='2021-09-06 19:38:00.174946', time_epoch_executed='1630982280.17' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186828

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186828/ft1_4FGL_J1304.0+3704_daily_bin325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186828/ft2_4FGL_J1304.0+3704_daily_bin325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186828/ft1_4FGL_J1304.0+3704_daily_bin325.fits outfile=/scratch/kocevski/186828/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin325.fits ra=196.008 dec=37.071 rad=12.0 tmin=323568001.0 tmax=323827201.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.33
user 3.10
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186828/ft1_filtered_4FGL_J1304.0+3704_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/186828/ft2_4FGL_J1304.0+3704_daily_bin325.fits sctable="SC_DATA" expcube=/scratch/kocevski/186828/ltcube_323568001_323827201_4FGL_J1304.0+3704_daily_bin325.fits outfile=/scratch/kocevski/186828/expmap_323568001_323827201_4FGL_J1304.0+3704_daily_bin325.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/186828/ltcube_323568001_323827201_4FGL_J1304.0+3704_daily_bin325.fits
.....................!
real 193.66
user 188.10
sys 4.95

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/186828/ft1_filtered_4FGL_J1304.0+3704_daily_bin325.fits scfile=/scratch/kocevski/186828/ft2_4FGL_J1304.0+3704_daily_bin325.fits outfile=/scratch/kocevski/186828/cmap_323568001_323827201_4FGL_J1304.0+3704_daily_bin325.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/186828/ft1_filtered_4FGL_J1304.0+3704_daily_bin325.fits scfile=/scratch/kocevski/186828/ft2_4FGL_J1304.0+3704_daily_bin325.fits outfile=/scratch/kocevski/186828/cmap_HighResolution_323568001_323827201_4FGL_J1304.0+3704_daily_bin325.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.095       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .49922E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.785       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2164       1.0000         .10000E-03   10000.    
     9 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.6747       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.9583       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.4510       1.0000         .10000E-03   10000.    
    14 'norm      '    3.6694       1.0000         .10000E-03   10000.    
    15 'norm      '    .85303       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.7260       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.565       1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.580       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.839       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.163       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.6064       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10446E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .84811       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0879       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=   5668.025     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3308 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.094        5.0522       -.11700E-05    .29909E-04
   2  Prefactor     .10000E-03    4.7030       -.20630E-06** at limit **
   3  Prefactor     .46573E-02    1.4541        .27620E-07    .46103E-03
   4  Prefactor     12.785        9.6530       -.68444E-06    .12667E-04
   5  Prefactor     .10000E-03    14.184        .60779E-05** at limit **
   6  Prefactor     .10000E-03    12.099       -.74091E-06** at limit **
   7  Prefactor     .10000E-03    15.741       -.16799E-05** at limit **
   8  Prefactor     9.2207        7.0340       -.47969E-06    .15372E-03
   9  norm          .10000E-03    1.5032       -.35550E-08** at limit **
  10  Prefactor     9.5874        69.394       -.19874E-03   -.16860E-04
  11  Prefactor     9.9489        19.686       -.12789E-05    .87633E-04
  12  Prefactor     .10000E-03    10.109       -.59061E-05** at limit **
  13  norm          9.4515        5.0450       -.68541E-06    .29011E-03
  14  norm          3.6790        18.386        .31788E-04    .25928E-03
  15  norm          .85730        3.1833       -.24121E-05   -.12483E-02
  16  norm          .10000E-03    3.5457       -.44976E-07** at limit **
  17  norm          3.7262        2.9607        .29706E-06    .17335E-03
  18  Prefactor     .10000E-03    .90616       -.10793E-07** at limit **
  19  Prefactor     21.561        14.768       -.46822E-06    .24401E-03
  20  Prefactor     34.575        31.512       -.20914E-05    .16446E-04
  21  Prefactor     .10000E-03    38.256       -.23905E-04** at limit **
  22  Prefactor     26.835        18.000       -.13548E-05    .43104E-04
  23  Prefactor     19.160        24.033        .22405E-06    .85224E-05
  24  Prefactor     .10000E-03    8.8472        .50853E-05** at limit **
  25  Prefactor     .10000E-03    46.748        .31813E-04** at limit **
  26  norm          3.6064        1.5740       -.15319E-06    .10224E-03
  27  Prefactor     .10000E-03    6.1986       -.57372E-07** at limit **
  28  norm          .10000E-03    7.1606       -.16848E-05** at limit **
  29  Normalizat    .84827        .16313        .46649E-05    .16322E-03
  30  Prefactor     1.0877        .20980        .46029E-05    .94439E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.0945
  Prefactor  = 0.0001
  Prefactor  = 0.00465734
  Prefactor  = 12.7851
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.22072
  norm       = 0.0001
  Prefactor  = 9.58737
  Prefactor  = 9.94886
  Prefactor  = 0.0001
  norm       = 9.45155
  norm       = 3.67896
  norm       = 0.857296
  norm       = 0.0001
  norm       = 3.72615
  Prefactor  = 0.0001
  Prefactor  = 21.5612
  Prefactor  = 34.5747
  Prefactor  = 0.0001
  Prefactor  = 26.8352
  Prefactor  = 19.1599
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.60644
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.848269
  Prefactor  = 1.08767
 **********
 **   18 **HESSE 
 **********

 FCN=   5668.025     FROM HESSE     STATUS=OK           596 CALLS     3904 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.094        5.5497        .97357E-04   -1.5012    
   2  Prefactor     .10000E-03    4.7392        .15941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .46573E-02    5.2515        .28428E-01   -1.5694    
   4  Prefactor     12.785        9.6521        .11203E-03   -1.4993    
   5  Prefactor     .10000E-03    14.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.2207        7.0246        .13202E-03   -1.5101    
   9  norm          .10000E-03    1.5091        .90049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.5874        69.610        .12884E-03   -1.5089    
  11  Prefactor     9.9489        19.492        .12698E-03   -1.5077    
  12  Prefactor     .10000E-03    10.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.4515        5.0412        .11861E-03   -1.5093    
  14  norm          3.6790        18.339        .21086E-03   -1.5324    
  15  norm          .85730        3.1128        .23340E-03   -1.5523    
  16  norm          .10000E-03    3.5434        .13772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.7262        2.9606        .11215E-03   -1.5322    
  18  Prefactor     .10000E-03    .90857        .69914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.561        14.631        .86253E-04   -1.4779    
  20  Prefactor     34.575        31.501        .68147E-04   -1.4531    
  21  Prefactor     .10000E-03    38.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     26.835        18.029        .77328E-04   -1.4671    
  23  Prefactor     19.160        24.027        .91494E-04   -1.4832    
  24  Prefactor     .10000E-03    8.8546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    46.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.6064        1.5731        .60332E-04   -1.5328    
  27  Prefactor     .10000E-03    6.3444        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    7.1997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .84827        .19553        .23400E-03   -.98302    
  30  Prefactor     1.0877        .25195        .27092E-03   -.89862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70006e-09
Minuit parameter uncertainties:
  1  5.54996
  2  4.31287e-05
  3  0.309431
  4  9.6533
  5  7.26645e-05
  6  1.89547e-05
  7  1.38675e-05
  8  7.02521
  9  3.72875e-06
  10  51.752
  11  19.5045
  12  8.72636e-06
  13  5.04142
  14  16.4358
  15  3.11334
  16  3.55294e-05
  17  2.96069
  18  3.23326e-07
  19  14.6333
  20  31.5162
  21  7.09923e-05
  22  18.0324
  23  24.0389
  24  1.44145e-05
  25  0.000309232
  26  1.57315
  27  9.52799e-05
  28  3.27631e-05
  29  0.195694
  30  0.252224
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  8.726e-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.088e+00  2.522e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  8.483e-01  1.957e-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: 6.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186828/likelihoodResults_323568001_323827201_4FGL_J1304.0+3704_daily_bin325.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) = 5668.0251466
delta logL = -0.00046978811406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5668.02467694
delta logL = -1.33708454086e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4322       1.0000          .0000       10.000    
     3 'Normalizat'    .84822       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0878       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=   5668.025     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    992.96        .90712E-02** at limit **
   2  Index         2.4287        8.6333        .50000        .29479E-05
   3  Normalizat    .84827        .45771E-01    .44236E-01    .14634E-04
   4  Prefactor     1.0877        .59457E-01    .61257E-01    .98748E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.42871
  Normalizat = 0.848268
  Prefactor  = 1.08767
 **********
 **   18 **HESSE 
 **********

 FCN=   5668.025     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4287        6.2142        .50000       -.54014    
   3  Normalizat    .84827        .18927        .23400E-03   -.98302    
   4  Prefactor     1.0877        .24613        .27092E-03   -.89862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03205e-11
Minuit parameter uncertainties:
  1  8.70825e-06
  2  4.46179
  3  0.189421
  4  0.24639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186828': 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) = 5668.0246768
delta logL = 4.98584995512e-09

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  8.708e-06  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.429e+00  4.462e+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:  1.088e+00  2.464e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  8.483e-01  1.894e-01  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/186828/cmap_HighResolution_323568001_323827201_4FGL_J1304.0+3704_daily_bin325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-03', job_status='DONE', photon_flux_upper_limit='6.53e-08', time_completed='2021-09-06 19:51:17.799469', job_id='186828', GAL2='1.09', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630983077.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='4.99e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='325' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 19:51:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 186828: <4FGL_J1304.0+3704_daily_bin325> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin325 196.008 37.071 323568001 323827201 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 :                                   794.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            927 sec.

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

