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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1162
RA = 195.418, Dec = 33.6097
tmin = 540518401, tmax = 540777601
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='106943', job_status='RUN', time_executed='2021-09-06 15:06:46.295597', time_epoch_executed='1630966006.3' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1162'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/106943

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/106943/ft1_4FGL_J1301.6+3336_daily_bin1162.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/106943/ft2_4FGL_J1301.6+3336_daily_bin1162.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/106943/ft1_4FGL_J1301.6+3336_daily_bin1162.fits outfile=/scratch/kocevski/106943/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1162.fits ra=195.418 dec=33.6097 rad=12.0 tmin=540518401.0 tmax=540777601.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.64
user 3.42
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/106943/ft2_4FGL_J1301.6+3336_daily_bin1162.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/106943/ft2_4FGL_J1301.6+3336_daily_bin1162.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/106943/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1162.fits evtable="EVENTS" outfile="/scratch/kocevski/106943/ft1_filtered_4FGL_J1301.6+3336_daily_bin1162.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.51
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/106943/ft1_filtered_4FGL_J1301.6+3336_daily_bin1162.fits" evtable="EVENTS" scfile=/scratch/kocevski/106943/ft2_4FGL_J1301.6+3336_daily_bin1162.fits sctable="SC_DATA" outfile=/scratch/kocevski/106943/ltcube_540518401_540777601_4FGL_J1301.6+3336_daily_bin1162.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/106943/ft2_4FGL_J1301.6+3336_daily_bin1162.fits
.....................!
real 11.98
user 11.61
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/106943/ft1_filtered_4FGL_J1301.6+3336_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/106943/ft2_4FGL_J1301.6+3336_daily_bin1162.fits sctable="SC_DATA" expcube=/scratch/kocevski/106943/ltcube_540518401_540777601_4FGL_J1301.6+3336_daily_bin1162.fits outfile=/scratch/kocevski/106943/expmap_540518401_540777601_4FGL_J1301.6+3336_daily_bin1162.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/106943/ltcube_540518401_540777601_4FGL_J1301.6+3336_daily_bin1162.fits
.....................!
real 190.99
user 185.68
sys 4.90

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

Setting source of interest to:
4FGL J1301.6+3336 @ 195.418 33.6097

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/106943/ft1_filtered_4FGL_J1301.6+3336_daily_bin1162.fits scfile=/scratch/kocevski/106943/ft2_4FGL_J1301.6+3336_daily_bin1162.fits outfile=/scratch/kocevski/106943/cmap_540518401_540777601_4FGL_J1301.6+3336_daily_bin1162.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=195.418 yref=33.6097 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.72
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/106943/ft1_filtered_4FGL_J1301.6+3336_daily_bin1162.fits scfile=/scratch/kocevski/106943/ft2_4FGL_J1301.6+3336_daily_bin1162.fits outfile=/scratch/kocevski/106943/cmap_HighResolution_540518401_540777601_4FGL_J1301.6+3336_daily_bin1162.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=195.418 yref=33.6097 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.59
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/106943/ft1_filtered_4FGL_J1301.6+3336_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/106943/ft2_4FGL_J1301.6+3336_daily_bin1162.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/106943/Model_4FGL_J1301.6+3336_daily_bin1162.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/106943/ft1_filtered_4FGL_J1301.6+3336_daily_bin1162.fits.....................!
real 51.84
user 49.90
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/106943/ft1_filtered_4FGL_J1301.6+3336_daily_bin1162.fits', '/scratch/kocevski/106943/ft2_4FGL_J1301.6+3336_daily_bin1162.fits', expMap='/scratch/kocevski/106943/expmap_540518401_540777601_4FGL_J1301.6+3336_daily_bin1162.fits', expCube='/scratch/kocevski/106943/ltcube_540518401_540777601_4FGL_J1301.6+3336_daily_bin1162.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/106943/Model_4FGL_J1301.6+3336_daily_bin1162.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1301.6+3336'

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  4.837e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.593e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  8.366e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/106943/ft1_filtered_4FGL_J1301.6+3336_daily_bin1162.fits
Spacecraft file(s): /scratch/kocevski/106943/ft2_4FGL_J1301.6+3336_daily_bin1162.fits
Exposure map: /scratch/kocevski/106943/expmap_540518401_540777601_4FGL_J1301.6+3336_daily_bin1162.fits
Exposure cube: /scratch/kocevski/106943/ltcube_540518401_540777601_4FGL_J1301.6+3336_daily_bin1162.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/106943/Model_4FGL_J1301.6+3336_daily_bin1162.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) = 5939.4914386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.884       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4706       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .61277       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.5050       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.0530       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.208       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13694E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.965       1.0000         .10000E-03   10000.    
    15 'norm      '    .13735E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.6094       1.0000         .10000E-03   10000.    
    18 'norm      '    8.5144       1.0000         .10000E-03   10000.    
    19 'norm      '    .97018       1.0000         .10000E-03   10000.    
    20 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    23.689       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.7310       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1728       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .72537       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5939.452     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3946 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.449        .45236E-06** at limit **
   2  norm          10.884        4.1824       -.19956E-06   -.22240E-03
   3  Prefactor     5.4717        9.1183        .41481E-06   -.72657E-05
   4  Prefactor     .61269        1.7584        .94042E-06    .61364E-03
   5  Prefactor     .10000E-03    1.3419        .18804E-07** at limit **
   6  norm          1.5050        2.2175        .10352E-06    .30983E-04
   7  Prefactor     6.0533        5.9892       -.13610E-06   -.81758E-04
   8  Prefactor     .10000E-03    25.586        .39170E-06** at limit **
   9  Prefactor     32.147        88.507        .27455E-06   -.29369E-04
  10  Prefactor     .10005E-03    7.0937       -.21692E-05** at limit **
  11  Prefactor     .10000E-03    2.4998        .53053E-07** at limit **
  12  norm          .10000E-03    4.5993       -.19232E-05** at limit **
  13  Prefactor     .10000E-03    16.967       -.26212E-07** at limit **
  14  Prefactor     25.971        27.531       -.23742E-06    .44795E-04
  15  norm          .10000E-03    2.9713        .10946E-05** at limit **
  16  Prefactor     .10000E-03    7.2696        .52975E-07** at limit **
  17  norm          4.6092        6.1909        .39511E-06    .34760E-04
  18  norm          8.5151        11.432        .90238E-07    .21272E-06
  19  norm          .97665        3.7685        .11618E-05    .23378E-03
  20  norm          .10000E-03    9.5464       -.87691E-06** at limit **
  21  norm          23.689        21.121        .13425E-06   -.66716E-04
  22  Prefactor     7.7311        4.4354       -.29024E-06   -.19045E-03
  23  Prefactor     .10000E-03    22.629       -.19902E-06** at limit **
  24  Prefactor     .10000E-03    13.499        .12144E-06** at limit **
  25  Prefactor     .10000E-03    24.079        .41609E-06** at limit **
  26  Prefactor     .10000E-03    11.265        .20163E-06** at limit **
  27  Prefactor     .10000E-03    49.205       -.92749E-07** at limit **
  28  Prefactor     .10000E-03    4.7415        .18244E-06** at limit **
  29  Normalizat    1.1727        .17214       -.16788E-06   -.13678E-03
  30  Prefactor     .72540        .20118       -.58120E-06   -.45778E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.8841
  Prefactor  = 5.47168
  Prefactor  = 0.612693
  Prefactor  = 0.0001
  norm       = 1.50502
  Prefactor  = 6.05332
  Prefactor  = 0.0001
  Prefactor  = 32.1467
  Prefactor  = 0.000100054
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.9713
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.6092
  norm       = 8.51511
  norm       = 0.976653
  norm       = 0.000100001
  norm       = 23.6886
  Prefactor  = 7.73111
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.17271
  Prefactor  = 0.725404
 **********
 **   18 **HESSE 
 **********

 FCN=   5939.452     FROM HESSE     STATUS=OK           586 CALLS     4532 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.884        4.1041        .87001E-04   -1.5048    
   3  Prefactor     5.4717        9.0994        .17179E-03   -1.5240    
   4  Prefactor     .61269        1.6818        .16251E-02   -1.5551    
   5  Prefactor     .10000E-03    1.3983        .17378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.5050        2.1909        .13570E-03   -1.5463    
   7  Prefactor     6.0533        5.9915        .16320E-03   -1.5216    
   8  Prefactor     .10000E-03    25.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.147        88.689        .70605E-04   -1.4573    
  10  Prefactor     .10005E-03    20.358        .34544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.5121        .11897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.5898        .31829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.971        27.110        .78616E-04   -1.4688    
  15  norm          .10000E-03    5.0573        .24091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.2827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.6092        6.1629        .18748E-03   -1.5279    
  18  norm          8.5151        11.428        .13738E-03   -1.5124    
  19  norm          .97665        3.7170        .25824E-03   -1.5510    
  20  norm          .10000E-03    9.8348        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          23.689        20.938        .82300E-04   -1.4734    
  22  Prefactor     7.7311        4.3795        .10706E-03   -1.5152    
  23  Prefactor     .10000E-03    23.016        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    24.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    49.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.9342        .32753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1727        .20033        .21545E-03   -.87450    
  30  Prefactor     .72540        .23083        .31425E-03   -1.0254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24426e-09
Minuit parameter uncertainties:
  1  0.000206651
  2  4.10418
  3  9.10173
  4  1.68192
  5  2.40293e-06
  6  2.191
  7  5.99212
  8  7.38804e-05
  9  89.0559
  10  0.00209571
  11  1.35601e-06
  12  5.28378e-05
  13  2.69613e-05
  14  27.1225
  15  6.80335e-05
  16  5.32919e-06
  17  6.16379
  18  11.4306
  19  3.7179
  20  0.000142833
  21  20.9442
  22  4.37964
  23  1.53458e-05
  24  4.0888e-05
  25  4.5673e-05
  26  3.21221e-05
  27  0.000167612
  28  4.58849e-06
  29  0.200458
  30  0.231134
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  2.597e+01  2.712e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.593e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  8.366e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  7.254e-01  2.311e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.173e+00  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.43
Ra Dec: 195.418 33.610
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 4.03e-08 +/- 4.20e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 1.11e-05

TS (Fixed Index): 1.43
Ra Dec: 195.418 33.610
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/106943/likelihoodResults_540518401_540777601_4FGL_J1301.6+3336_daily_bin1162.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) = 5939.37377189
delta logL = 0.0782753241647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5939.36941496
delta logL = 0.0826322589801

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.454       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0922       1.0000          .0000       10.000    
     3 'Normalizat'    1.1545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74295       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+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=   5939.369     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      305 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.445        74.898        .10188E-03   -.35573E-03
   2  Index         3.0940        2.7806        .77325E-02   -.75422E-04
   3  Normalizat    1.1536        .21284        .21693E-03    .69233E-03
   4  Prefactor     .74367        .24664        .31079E-03    .21147E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.4449
  Index      = 3.09403
  Normalizat = 1.15362
  Prefactor  = 0.74367
 **********
 **   18 **HESSE 
 **********

 FCN=   5939.369     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.445        33.122        .40754E-05   -1.4922    
   2  Index         3.0940        1.4254        .30930E-03   -.39109    
   3  Normalizat    1.1536        .20298        .43387E-04   -.88048    
   4  Prefactor     .74367        .23444        .12432E-04   -1.0184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22473e-09
Minuit parameter uncertainties:
  1  33.1618
  2  1.44897
  3  0.203117
  4  0.23475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/106943': 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) = 5939.36940428
delta logL = 0.0826429351109

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.544e+01  3.316e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  3.094e+00  1.449e+00  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  8.366e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  7.437e-01  2.348e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.154e+00  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 195.418 33.610
Photon Index (Free Index): 3.09 +/- 1.45
Photon Flux (Free Index): 5.28e-08 +/- 5.39e-08
Energy Flux (Free Index): 1.01e-05 +/- 9.45e-06

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/106943/cmap_HighResolution_540518401_540777601_4FGL_J1301.6+3336_daily_bin1162.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.85e-03', comment='SUCCESS', photon_flux='4.03e-08', energy_flux2='1.01e-05', photon_flux_error='4.20e-08', dlogl='8.26e-02', energy_flux='1.06e-05', photon_flux2='5.28e-08', job_status='DONE', time_completed='2021-09-06 15:20:51.505902', photon_index_error2='1.45', photon_index2='3.09', ts='1.43', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='9.45e-06', EG='1.17', time_epoch_completed='1630966851.51', return_code='0', job_id='106943', GAL2='0.74', EG2='1.15', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='5.39e-08', ts2='1.62', photon_index='2.59' WHERE bin_id='1162' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:20:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 106943: <4FGL_J1301.6+3336_daily_bin1162> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1162> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 15:06:13 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:06:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 15:06:14 2021
Terminated at Mon Sep  6 15:20:52 2021
Results reported at Mon Sep  6 15:20:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1162 195.418 33.6097 540518401 540777601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1301.6+3336 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   804.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            879 sec.

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

