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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin832
RA = 196.172, Dec = -3.8139
tmin = 454982401, tmax = 455241601
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='212802', job_status='RUN', time_executed='2021-09-06 21:10:04.916952', time_epoch_executed='1630987804.92' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='832'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212802

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212802/ft1_4FGL_J1304.6-0348_daily_bin832.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212802/ft2_4FGL_J1304.6-0348_daily_bin832.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212802/ft1_4FGL_J1304.6-0348_daily_bin832.fits outfile=/scratch/kocevski/212802/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin832.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=454982401.0 tmax=455241601.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.69
user 3.32
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/212802/ft2_4FGL_J1304.6-0348_daily_bin832.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/212802/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin832.fits evtable="EVENTS" outfile="/scratch/kocevski/212802/ft1_filtered_4FGL_J1304.6-0348_daily_bin832.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.50
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212802/ft1_filtered_4FGL_J1304.6-0348_daily_bin832.fits" evtable="EVENTS" scfile=/scratch/kocevski/212802/ft2_4FGL_J1304.6-0348_daily_bin832.fits sctable="SC_DATA" outfile=/scratch/kocevski/212802/ltcube_454982401_455241601_4FGL_J1304.6-0348_daily_bin832.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/212802/ft2_4FGL_J1304.6-0348_daily_bin832.fits
.....................!
real 13.84
user 13.39
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212802/ft1_filtered_4FGL_J1304.6-0348_daily_bin832.fits evtable="EVENTS" scfile=/scratch/kocevski/212802/ft2_4FGL_J1304.6-0348_daily_bin832.fits sctable="SC_DATA" expcube=/scratch/kocevski/212802/ltcube_454982401_455241601_4FGL_J1304.6-0348_daily_bin832.fits outfile=/scratch/kocevski/212802/expmap_454982401_455241601_4FGL_J1304.6-0348_daily_bin832.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/212802/ltcube_454982401_455241601_4FGL_J1304.6-0348_daily_bin832.fits
.....................!
real 191.37
user 185.76
sys 4.99

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/212802/ft1_filtered_4FGL_J1304.6-0348_daily_bin832.fits scfile=/scratch/kocevski/212802/ft2_4FGL_J1304.6-0348_daily_bin832.fits outfile=/scratch/kocevski/212802/cmap_454982401_455241601_4FGL_J1304.6-0348_daily_bin832.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212802/ft1_filtered_4FGL_J1304.6-0348_daily_bin832.fits scfile=/scratch/kocevski/212802/ft2_4FGL_J1304.6-0348_daily_bin832.fits outfile=/scratch/kocevski/212802/cmap_HighResolution_454982401_455241601_4FGL_J1304.6-0348_daily_bin832.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212802/ft1_filtered_4FGL_J1304.6-0348_daily_bin832.fits evtable="EVENTS" scfile=/scratch/kocevski/212802/ft2_4FGL_J1304.6-0348_daily_bin832.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212802/Model_4FGL_J1304.6-0348_daily_bin832.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/212802/ft1_filtered_4FGL_J1304.6-0348_daily_bin832.fits.....................!
real 54.36
user 53.03
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/212802/ft1_filtered_4FGL_J1304.6-0348_daily_bin832.fits', '/scratch/kocevski/212802/ft2_4FGL_J1304.6-0348_daily_bin832.fits', expMap='/scratch/kocevski/212802/expmap_454982401_455241601_4FGL_J1304.6-0348_daily_bin832.fits', expCube='/scratch/kocevski/212802/ltcube_454982401_455241601_4FGL_J1304.6-0348_daily_bin832.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/212802/Model_4FGL_J1304.6-0348_daily_bin832.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/212802/ft1_filtered_4FGL_J1304.6-0348_daily_bin832.fits
Spacecraft file(s): /scratch/kocevski/212802/ft2_4FGL_J1304.6-0348_daily_bin832.fits
Exposure map: /scratch/kocevski/212802/expmap_454982401_455241601_4FGL_J1304.6-0348_daily_bin832.fits
Exposure cube: /scratch/kocevski/212802/ltcube_454982401_455241601_4FGL_J1304.6-0348_daily_bin832.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/212802/Model_4FGL_J1304.6-0348_daily_bin832.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) = 6707.42392999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42724       1.0000         .10000E-03   10000.    
     2 'norm      '    .65976       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.180       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0350       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0592       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.130       1.0000         .10000E-03   10000.    
     8 'Prefactor '    53.236       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .89002       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.1911       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9811       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.918       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .53364       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11173E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .28462E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    11.290       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4956       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81693       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=   6707.420     FROM MIGRAD    STATUS=CONVERGED    844 CALLS     2750 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .43071        5.1350        .25109E-02   -.18026E-03
   2  norm          .65957        .47516        .46875E-04    .40164E-03
   3  Prefactor     .10000E-03    5.3925        .18142E-02** at limit **
   4  Prefactor     11.174        13.117        .11982E-03    .35771E-04
   5  norm          3.0346        1.5597        .70785E-04    .49467E-04
   6  Prefactor     1.0556        14.188        .23839E-02   -.65246E-03
   7  Prefactor     33.118        40.243        .69617E-04    .77993E-04
   8  Prefactor     53.214        52.751        .54971E-04    .10618E-03
   9  norm          .10000E-03    9.3758        .18142E-02** at limit **
  10  norm          .89004        .27941        .21746E-04   -.67963E-04
  11  Prefactor     .10000E-03    16.185        .18142E-02** at limit **
  12  norm          .10000E-03    5.3268        .18142E-02** at limit **
  13  norm          6.1950        8.5484        .16134E-03    .42490E-04
  14  Prefactor     1.9850        17.671        .14723E-02   -.16826E-03
  15  Prefactor     12.911        18.341        .11145E-03    .10650E-03
  16  Prefactor     .44576        76.627        .45375E-02   -.75330E-04
  17  Prefactor     .10000E-03    32.630        .18142E-02** at limit **
  18  norm          .10003E-03    8.0594        .12469E-02** at limit **
  19  norm          11.292        5.6280        .11923E-03    .57974E-04
  20  norm          .10000E-03    18.368        .18142E-02** at limit **
  21  Normalizat    1.4961        .28038        .28287E-03    .49134E-03
  22  Prefactor     .81679        .18001        .25175E-03    .14880E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.430713
  norm       = 0.659573
  Prefactor  = 0.0001
  Prefactor  = 11.1743
  norm       = 3.03459
  Prefactor  = 1.05555
  Prefactor  = 33.1178
  Prefactor  = 53.2145
  norm       = 0.0001
  norm       = 0.890037
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.19499
  Prefactor  = 1.98501
  Prefactor  = 12.9106
  Prefactor  = 0.44576
  Prefactor  = 0.0001
  norm       = 0.000100025
  norm       = 11.2918
  norm       = 0.0001
  Normalizat = 1.49611
  Prefactor  = 0.816788
 **********
 **   18 **HESSE 
 **********

 FCN=   6707.420     FROM HESSE     STATUS=OK           326 CALLS     3076 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .43071        5.1246        .10043E-03   -1.5577    
   2  norm          .65957        .47492        .18750E-05   -1.5546    
   3  Prefactor     .10000E-03    5.3932        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.174        13.105        .47927E-05   -1.5039    
   5  norm          3.0346        1.5593        .28314E-05   -1.5360    
   6  Prefactor     1.0556        14.110        .95355E-04   -1.5502    
   7  Prefactor     33.118        40.213        .13923E-04   -1.4556    
   8  Prefactor     53.214        52.732        .10994E-04   -1.4248    
   9  norm          .10000E-03    9.3759        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .89004        .27940        .86984E-06   -1.5519    
  11  Prefactor     .10000E-03    16.185        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.3278        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.1950        8.5364        .64536E-05   -1.5210    
  14  Prefactor     1.9850        17.415        .58893E-04   -1.5426    
  15  Prefactor     12.911        18.329        .44579E-05   -1.4989    
  16  Prefactor     .44576        73.845        .18150E-03   -1.5574    
  17  Prefactor     .10000E-03    32.634        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10003E-03    8.2657        .49875E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.292        5.6095        .47692E-05   -1.5036    
  20  norm          .10000E-03    18.370        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4961        .27751        .56573E-04   -.77888    
  22  Prefactor     .81679        .17983        .10070E-04   -.99112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.53222e-09
Minuit parameter uncertainties:
  1  2.97132
  2  0.474927
  3  3.99382e-05
  4  13.1088
  5  1.55936
  6  7.72023
  7  40.2457
  8  52.7779
  9  4.2151e-06
  10  0.279403
  11  4.58864e-05
  12  1.04212e-06
  13  8.53808
  14  11.7632
  15  18.3374
  16  11.4879
  17  0.00012
  18  0.000913735
  19  5.6098
  20  5.34127e-05
  21  0.277797
  22  0.179958
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  4.589e-05  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.168e-01  1.800e-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.496e+00  2.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/212802/likelihoodResults_454982401_455241601_4FGL_J1304.6-0348_daily_bin832.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): 102
logL (Free Index) = 6707.42037248
delta logL = -0.00029386069582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6707.42008034
delta logL = -1.72007639776e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5124       1.0000          .0000       10.000    
     3 'Normalizat'    1.4961       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81680       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=   6707.420     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      277 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10371E-03    3.4205        .18142E-01** at limit **
   2  Index         2.4213        5.5208        .50000        .26233E-04
   3  Normalizat    1.4961        .30161E-02    .28286E-03   -.19613E-04
   4  Prefactor     .81679        .20686E-02    .25175E-03   -.12961E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103712
  Index      = 2.42129
  Normalizat = 1.4961
  Prefactor  = 0.816792
 **********
 **   18 **HESSE 
 **********

 FCN=   6707.420     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10371E-03    54.389        .27535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4213        7.5347        .50000       -.54187    
   3  Normalizat    1.4961        .12081E-01    .11315E-04   -.77888    
   4  Prefactor     .81679        .82857E-02    .10070E-04   -.99112    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1665e-08
Minuit parameter uncertainties:
  1  0.028445
  2  210.768
  3  0.0120813
  4  0.00828575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212802': 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) = 6707.4200799
delta logL = -1.28104147734e-06

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.037e-04  2.844e-02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.421e+00  2.108e+02  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.168e-01  8.286e-03  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.496e+00  1.208e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/212802/cmap_HighResolution_454982401_455241601_4FGL_J1304.6-0348_daily_bin832.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-03', job_status='DONE', photon_flux_upper_limit='5.42e-08', time_completed='2021-09-06 21:22:04.615949', job_id='212802', GAL2='0.82', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1630988524.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-1.28e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='832' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:22:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 212802: <4FGL_J1304.6-0348_daily_bin832> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin832> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 21:05:47 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:06:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 21:06:13 2021
Terminated at Mon Sep  6 21:22:05 2021
Results reported at Mon Sep  6 21:22:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin832 196.172 -3.8139 454982401 455241601 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 :                                   718.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            978 sec.

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

