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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin427
RA = 196.172, Dec = -3.8139
tmin = 350006401, tmax = 350265601
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='209809', job_status='RUN', time_executed='2021-09-06 20:59:17.157537', time_epoch_executed='1630987157.16' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209809

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209809/ft1_4FGL_J1304.6-0348_daily_bin427.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209809/ft2_4FGL_J1304.6-0348_daily_bin427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209809/ft1_4FGL_J1304.6-0348_daily_bin427.fits outfile=/scratch/kocevski/209809/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin427.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=350006401.0 tmax=350265601.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 4.05
user 3.75
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/209809/ft2_4FGL_J1304.6-0348_daily_bin427.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/209809/ft2_4FGL_J1304.6-0348_daily_bin427.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/209809/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin427.fits evtable="EVENTS" outfile="/scratch/kocevski/209809/ft1_filtered_4FGL_J1304.6-0348_daily_bin427.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.55
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209809/ft1_filtered_4FGL_J1304.6-0348_daily_bin427.fits" evtable="EVENTS" scfile=/scratch/kocevski/209809/ft2_4FGL_J1304.6-0348_daily_bin427.fits sctable="SC_DATA" outfile=/scratch/kocevski/209809/ltcube_350006401_350265601_4FGL_J1304.6-0348_daily_bin427.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/209809/ft2_4FGL_J1304.6-0348_daily_bin427.fits
.....................!
real 13.38
user 12.91
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209809/ft1_filtered_4FGL_J1304.6-0348_daily_bin427.fits evtable="EVENTS" scfile=/scratch/kocevski/209809/ft2_4FGL_J1304.6-0348_daily_bin427.fits sctable="SC_DATA" expcube=/scratch/kocevski/209809/ltcube_350006401_350265601_4FGL_J1304.6-0348_daily_bin427.fits outfile=/scratch/kocevski/209809/expmap_350006401_350265601_4FGL_J1304.6-0348_daily_bin427.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/209809/ltcube_350006401_350265601_4FGL_J1304.6-0348_daily_bin427.fits
.....................!
real 190.91
user 184.65
sys 5.62

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1304.6-0348 @ 196.172 -3.8139

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/209809/ft1_filtered_4FGL_J1304.6-0348_daily_bin427.fits scfile=/scratch/kocevski/209809/ft2_4FGL_J1304.6-0348_daily_bin427.fits outfile=/scratch/kocevski/209809/cmap_350006401_350265601_4FGL_J1304.6-0348_daily_bin427.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.172 yref=-3.8139 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209809/ft1_filtered_4FGL_J1304.6-0348_daily_bin427.fits scfile=/scratch/kocevski/209809/ft2_4FGL_J1304.6-0348_daily_bin427.fits outfile=/scratch/kocevski/209809/cmap_HighResolution_350006401_350265601_4FGL_J1304.6-0348_daily_bin427.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.172 yref=-3.8139 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.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209809/ft1_filtered_4FGL_J1304.6-0348_daily_bin427.fits evtable="EVENTS" scfile=/scratch/kocevski/209809/ft2_4FGL_J1304.6-0348_daily_bin427.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209809/Model_4FGL_J1304.6-0348_daily_bin427.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/209809/ft1_filtered_4FGL_J1304.6-0348_daily_bin427.fits.....................!
real 49.45
user 48.02
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/209809/ft1_filtered_4FGL_J1304.6-0348_daily_bin427.fits', '/scratch/kocevski/209809/ft2_4FGL_J1304.6-0348_daily_bin427.fits', expMap='/scratch/kocevski/209809/expmap_350006401_350265601_4FGL_J1304.6-0348_daily_bin427.fits', expCube='/scratch/kocevski/209809/ltcube_350006401_350265601_4FGL_J1304.6-0348_daily_bin427.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/209809/Model_4FGL_J1304.6-0348_daily_bin427.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1304.6-0348'

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  2.667e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/209809/ft1_filtered_4FGL_J1304.6-0348_daily_bin427.fits
Spacecraft file(s): /scratch/kocevski/209809/ft2_4FGL_J1304.6-0348_daily_bin427.fits
Exposure map: /scratch/kocevski/209809/expmap_350006401_350265601_4FGL_J1304.6-0348_daily_bin427.fits
Exposure cube: /scratch/kocevski/209809/ltcube_350006401_350265601_4FGL_J1304.6-0348_daily_bin427.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/209809/Model_4FGL_J1304.6-0348_daily_bin427.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) = 6070.62996867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2218       1.0000         .10000E-03   10000.    
     2 'norm      '    .13248       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6510       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .38590       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.212       1.0000         .10000E-03   10000.    
    12 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.532       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9994       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.2183       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10197E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6387       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85345       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6070.623     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2407 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2218        2.3804        .10198E-01    .73406E-03
   2  norm          .13230        .36788        .19585E-01    .24357E-02
   3  Prefactor     .10000E-03    7.0834        .90712E-02** at limit **
   4  Prefactor     .10000E-03    8.0980        .90712E-02** at limit **
   5  norm          .10000E-03    .58153        .31751E-01** at limit **
   6  Prefactor     2.6486        8.3321        .62594E-02   -.17598E-02
   7  Prefactor     .10000E-03    70.017        .90712E-02** at limit **
   8  Prefactor     .10000E-03    26.210        .90712E-02** at limit **
   9  norm          .10000E-03    15.228        .90712E-02** at limit **
  10  norm          .38578        .23392        .61676E-02    .14217E-02
  11  Prefactor     13.993        42.676        .26561E-02    .72087E-04
  12  norm          .10000E-03    2.4501        .90712E-02** at limit **
  13  norm          .10000E-03    7.2241        .90712E-02** at limit **
  14  Prefactor     22.530        12.613        .21096E-02   -.30508E-03
  15  Prefactor     .10000E-03    6.3061        .90712E-02** at limit **
  16  Prefactor     3.9971        8.0513        .50416E-02   -.14689E-02
  17  Prefactor     6.2126        17.270        .40246E-02    .27302E-03
  18  norm          .10000E-03    .79805        .90712E-02** at limit **
  19  norm          .10000E-03    1.4442        .90712E-02** at limit **
  20  norm          .10000E-03    36.391        .90712E-02** at limit **
  21  Normalizat    1.6390        .23379        .60176E-01    .21014E-04
  22  Prefactor     .85331        .15995        .44409E-01    .41349E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.22176
  norm       = 0.132301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.64859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.385785
  Prefactor  = 13.9932
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 22.5301
  Prefactor  = 0.0001
  Prefactor  = 3.99715
  Prefactor  = 6.21259
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Normalizat = 1.63899
  Prefactor  = 0.853315
 **********
 **   18 **HESSE 
 **********

 FCN=   6070.623     FROM HESSE     STATUS=OK           342 CALLS     2749 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2218        2.3321        .16283E-03   -1.5487    
   2  norm          .13230        .43979        .73945E-03   -1.5635    
   3  Prefactor     .10000E-03    7.1595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.1675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .90665        .11503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.6486        8.2990        .25038E-03   -1.5382    
   7  Prefactor     .10000E-03    70.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    15.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .38578        .22965        .27638E-04   -1.5584    
  11  Prefactor     13.993        42.643        .10624E-03   -1.4960    
  12  norm          .10000E-03    2.4512        .11910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.2571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.530        12.606        .84384E-04   -1.4758    
  15  Prefactor     .10000E-03    6.3125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9971        8.0304        .20166E-03   -1.5308    
  17  Prefactor     6.2126        17.218        .16098E-03   -1.5209    
  18  norm          .10000E-03    .83140        .13569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.4455        .91227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    36.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.6390        .27618        .26611E-03   -.73944    
  22  Prefactor     .85331        .18993        .24671E-03   -.97792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65141e-08
Minuit parameter uncertainties:
  1  2.33232
  2  0.439801
  3  2.60744e-05
  4  1.49284e-05
  5  9.47887e-08
  6  8.30257
  7  0.000201001
  8  7.9843e-05
  9  5.16357e-05
  10  0.229652
  11  42.7365
  12  3.0088e-06
  13  1.81031e-05
  14  12.6072
  15  5.5914e-06
  16  8.03253
  17  17.2317
  18  4.68572e-07
  19  4.56865e-07
  20  0.000368738
  21  0.276434
  22  0.190081
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.399e+01  4.274e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  8.533e-01  1.901e-01  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
603   Normalization:  1.639e+00  2.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 196.172 -3.814
Photon Flux Upper Limit: 8.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209809/likelihoodResults_350006401_350265601_4FGL_J1304.6-0348_daily_bin427.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) = 6070.62220491
delta logL = 0.000497451427691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6070.62186135
delta logL = 0.000841015429614

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.431       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0997       1.0000          .0000       10.000    
     3 'Normalizat'    1.6399       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85316       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6070.622     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      271 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.513        69.788        .10196E-03   -.70246E-05
   2  Index         2.0886        2.2296        .15036E-01    .13977E-03
   3  Normalizat    1.6399        .26850        .26605E-03   -.11242E-03
   4  Prefactor     .85293        .18783        .24676E-03    .12089E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5135
  Index      = 2.08862
  Normalizat = 1.63985
  Prefactor  = 0.852931
 **********
 **   18 **HESSE 
 **********

 FCN=   6070.622     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.513        59.380        .40784E-05   -1.4920    
   2  Index         2.0886        2.0379        .30072E-02   -.62153    
   3  Normalizat    1.6399        .26847        .53210E-04   -.73921    
   4  Prefactor     .85293        .18789        .98704E-05   -.97806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48677e-10
Minuit parameter uncertainties:
  1  59.6076
  2  2.13467
  3  0.268708
  4  0.188033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209809': 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) = 6070.6218395
delta logL = 0.000862863893417

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.551e+01  5.961e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.089e+00  2.135e+00  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  8.529e-01  1.880e-01  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
603   Normalization:  1.640e+00  2.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 196.172 -3.814

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/209809/cmap_HighResolution_350006401_350265601_4FGL_J1304.6-0348_daily_bin427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.82e-03', job_status='DONE', photon_flux_upper_limit='8.97e-08', time_completed='2021-09-06 21:10:17.014161', job_id='209809', GAL2='0.85', fit_tolerance='1e-08', EG2='1.64', EG='1.64', time_epoch_completed='1630987817.01', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='8.63e-04', ts2='0.14', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='427' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:10:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 209809: <4FGL_J1304.6-0348_daily_bin427> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin427> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 20:55:33 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 20:56:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 20:56:19 2021
Terminated at Mon Sep  6 21:10:17 2021
Results reported at Mon Sep  6 21:10:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin427 196.172 -3.8139 350006401 350265601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1304.6-0348 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   656.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            884 sec.

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

