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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin756
RA = 195.418, Dec = 33.6097
tmin = 435283201, tmax = 435542401
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='103303', job_status='RUN', time_executed='2021-09-06 14:56:29.642674', time_epoch_executed='1630965389.64' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/103303

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/103303/ft1_4FGL_J1301.6+3336_daily_bin756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/103303/ft2_4FGL_J1301.6+3336_daily_bin756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/103303/ft1_4FGL_J1301.6+3336_daily_bin756.fits outfile=/scratch/kocevski/103303/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin756.fits ra=195.418 dec=33.6097 rad=12.0 tmin=435283201.0 tmax=435542401.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.85
user 3.64
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/103303/ft2_4FGL_J1301.6+3336_daily_bin756.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/103303/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin756.fits evtable="EVENTS" outfile="/scratch/kocevski/103303/ft1_filtered_4FGL_J1301.6+3336_daily_bin756.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.40
user 0.26
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/103303/ft1_filtered_4FGL_J1301.6+3336_daily_bin756.fits" evtable="EVENTS" scfile=/scratch/kocevski/103303/ft2_4FGL_J1301.6+3336_daily_bin756.fits sctable="SC_DATA" outfile=/scratch/kocevski/103303/ltcube_435283201_435542401_4FGL_J1301.6+3336_daily_bin756.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/103303/ft2_4FGL_J1301.6+3336_daily_bin756.fits
.....................!
real 8.93
user 8.57
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/103303/ft1_filtered_4FGL_J1301.6+3336_daily_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/103303/ft2_4FGL_J1301.6+3336_daily_bin756.fits sctable="SC_DATA" expcube=/scratch/kocevski/103303/ltcube_435283201_435542401_4FGL_J1301.6+3336_daily_bin756.fits outfile=/scratch/kocevski/103303/expmap_435283201_435542401_4FGL_J1301.6+3336_daily_bin756.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/103303/ltcube_435283201_435542401_4FGL_J1301.6+3336_daily_bin756.fits
.....................!
real 140.87
user 137.38
sys 3.04

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/103303/ft1_filtered_4FGL_J1301.6+3336_daily_bin756.fits scfile=/scratch/kocevski/103303/ft2_4FGL_J1301.6+3336_daily_bin756.fits outfile=/scratch/kocevski/103303/cmap_435283201_435542401_4FGL_J1301.6+3336_daily_bin756.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.63
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/103303/ft1_filtered_4FGL_J1301.6+3336_daily_bin756.fits scfile=/scratch/kocevski/103303/ft2_4FGL_J1301.6+3336_daily_bin756.fits outfile=/scratch/kocevski/103303/cmap_HighResolution_435283201_435542401_4FGL_J1301.6+3336_daily_bin756.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.50
user 0.29
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/103303/ft1_filtered_4FGL_J1301.6+3336_daily_bin756.fits', '/scratch/kocevski/103303/ft2_4FGL_J1301.6+3336_daily_bin756.fits', expMap='/scratch/kocevski/103303/expmap_435283201_435542401_4FGL_J1301.6+3336_daily_bin756.fits', expCube='/scratch/kocevski/103303/ltcube_435283201_435542401_4FGL_J1301.6+3336_daily_bin756.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/103303/Model_4FGL_J1301.6+3336_daily_bin756.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/103303/ft1_filtered_4FGL_J1301.6+3336_daily_bin756.fits
Spacecraft file(s): /scratch/kocevski/103303/ft2_4FGL_J1301.6+3336_daily_bin756.fits
Exposure map: /scratch/kocevski/103303/expmap_435283201_435542401_4FGL_J1301.6+3336_daily_bin756.fits
Exposure cube: /scratch/kocevski/103303/ltcube_435283201_435542401_4FGL_J1301.6+3336_daily_bin756.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/103303/Model_4FGL_J1301.6+3336_daily_bin756.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) = 4080.95917963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11974E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    15.125       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6613       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11515E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.7426       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2042       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.304       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.924       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.474       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15211E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    21.794       1.0000         .10000E-03   10000.    
    19 'norm      '    5.2069       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.690       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.665       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11954E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.9023       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0212       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .71848       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=   4080.958     FROM MIGRAD    STATUS=CONVERGED    791 CALLS     3900 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    471.41       -.18743E-04** at limit **
   2  norm          15.125        5.2386        .97553E-07    .28773E-05
   3  Prefactor     8.6384        12.385        .33132E-05   -.35684E-04
   4  Prefactor     .10000E-03    2.0480       -.77191E-07** at limit **
   5  Prefactor     .10000E-03    2.5806        .24080E-06** at limit **
   6  norm          5.7463        6.4960        .57973E-06   -.18765E-03
   7  Prefactor     2.2095        7.1959       -.28414E-05   -.39862E-03
   8  Prefactor     .10000E-03    15.021       -.86736E-08** at limit **
   9  Prefactor     28.375        115.69        .99800E-04    .10032E-05
  10  Prefactor     .10000E-03    3.2635       -.30011E-07** at limit **
  11  Prefactor     .10000E-03    3.6305        .51650E-07** at limit **
  12  norm          10.917        7.4652       -.35517E-05   -.12191E-03
  13  Prefactor     32.529        43.848       -.10924E-04   -.38934E-05
  14  Prefactor     .10000E-03    52.394       -.38595E-06** at limit **
  15  norm          .10000E-03    2.9325        .22648E-07** at limit **
  16  Prefactor     .10000E-03    27.052        .13189E-05** at limit **
  17  norm          .10000E-03    2.6014        .58426E-07** at limit **
  18  norm          21.797        16.816        .95960E-06   -.48428E-05
  19  norm          5.2060        5.0516        .15987E-06   -.18394E-03
  20  norm          .10000E-03    3.8419        .35788E-07** at limit **
  21  norm          .10000E-03    23.104       -.77426E-05** at limit **
  22  Prefactor     .10000E-03    2.1224        .11997E-06** at limit **
  23  Prefactor     12.696        21.002       -.89498E-06   -.54916E-04
  24  Prefactor     .10000E-03    22.405        .64074E-05** at limit **
  25  Prefactor     .10000E-03    10.348       -.20942E-06** at limit **
  26  Prefactor     21.654        27.782        .10717E-04   -.12594E-04
  27  Prefactor     .10000E-03    69.427       -.27332E-06** at limit **
  28  Prefactor     2.9038        4.2396       -.39377E-06   -.36923E-03
  29  Normalizat    1.0214        .20015       -.24800E-05    .31967E-04
  30  Prefactor     .71804        .22893       -.31484E-05   -.17152E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 15.1249
  Prefactor  = 8.63842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.74634
  Prefactor  = 2.20954
  Prefactor  = 0.0001
  Prefactor  = 28.3746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9167
  Prefactor  = 32.5286
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 21.7965
  norm       = 5.20597
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.654
  Prefactor  = 0.0001
  Prefactor  = 2.90379
  Normalizat = 1.02137
  Prefactor  = 0.71804
 **********
 **   18 **HESSE 
 **********

 FCN=   4080.958     FROM HESSE     STATUS=OK           586 CALLS     4486 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    490.15        .36331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.125        4.9140        .78002E-04   -1.4930    
   3  Prefactor     8.6384        12.387        .13620E-03   -1.5120    
   4  Prefactor     .10000E-03    3.0336        .16904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6707        .19333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.7463        6.4511        .16519E-03   -1.5228    
   7  Prefactor     2.2095        7.1773        .27711E-03   -1.5411    
   8  Prefactor     .10000E-03    15.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.375        114.97        .75304E-04   -1.4642    
  10  Prefactor     .10000E-03    3.2659        .11271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.6439        .11886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.917        7.4597        .12122E-03   -1.5047    
  13  Prefactor     32.529        43.861        .70315E-04   -1.4567    
  14  Prefactor     .10000E-03    52.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.9643        .10679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.6151        .10061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          21.797        16.816        .85799E-04   -1.4774    
  19  norm          5.2060        5.0225        .12622E-03   -1.5252    
  20  norm          .10000E-03    3.8458        .12203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    23.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.1308        .90611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.696        20.932        .11245E-03   -1.4995    
  24  Prefactor     .10000E-03    22.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     21.654        27.755        .86053E-04   -1.4777    
  27  Prefactor     .10000E-03    69.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.9038        4.2311        .15194E-03   -1.5367    
  29  Normalizat    1.0214        .23561        .22192E-03   -.92318    
  30  Prefactor     .71804        .26771        .30456E-03   -1.0282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19561e-10
Minuit parameter uncertainties:
  1  0.00210052
  2  4.91416
  3  12.3904
  4  7.17e-06
  5  4.89149e-05
  6  6.45193
  7  7.18006
  8  1.93309e-05
  9  114.615
  10  2.12215e-06
  11  7.96882e-06
  12  7.46031
  13  43.9047
  14  0.000276662
  15  6.49547e-06
  16  0.00013945
  17  8.39825e-06
  18  16.8201
  19  5.02292
  20  5.09561e-06
  21  5.67787e-05
  22  1.36503e-05
  23  20.9444
  24  2.51843e-05
  25  7.343e-05
  26  27.7717
  27  0.000195019
  28  4.23151
  29  0.235846
  30  0.268196
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.767e-04  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.180e-01  2.682e-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.021e+00  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/103303/likelihoodResults_435283201_435542401_4FGL_J1301.6+3336_daily_bin756.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) = 4080.9577775
delta logL = -9.03303234736e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4080.95768738
delta logL = -2.06611275644e-07

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 'Index     '    2.5334       1.0000          .0000       10.000    
     3 'Normalizat'    1.0214       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71805       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=   4080.958     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      282 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    8414.3        .18142E-02** at limit **
   2  Index         2.6029        6.1442        .50000       -.15767E-04
   3  Normalizat    1.0214        .89869E-01    .22192E-03    .34836E-05
   4  Prefactor     .71804        .10536        .30456E-03   -.31169E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Index      = 2.60289
  Normalizat = 1.02137
  Prefactor  = 0.718041
 **********
 **   18 **HESSE 
 **********

 FCN=   4080.958     FROM HESSE     STATUS=OK            29 CALLS      311 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    62.314        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6029        6.3014        .50000       -.50000    
   3  Normalizat    1.0214        .22363        .88768E-05   -.92318    
   4  Prefactor     .71804        .26220        .12183E-04   -1.0282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63489e-10
Minuit parameter uncertainties:
  1  0.00187379
  2  4.73374
  3  0.22384
  4  0.262653
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/103303': 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) = 4080.95768714
delta logL = 3.48250068782e-08

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.874e-03  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.603e+00  4.734e+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.180e-01  2.627e-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.021e+00  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 195.418 33.610

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/103303/cmap_HighResolution_435283201_435542401_4FGL_J1301.6+3336_daily_bin756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.91e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-06 15:04:38.537479', job_id='103303', GAL2='0.72', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630965878.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='3.48e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='756' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:04:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 103303: <4FGL_J1301.6+3336_daily_bin756> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin756> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 14:56:09 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:56:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 14:56:11 2021
Terminated at Mon Sep  6 15:04:39 2021
Results reported at Mon Sep  6 15:04:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin756 195.418 33.6097 435283201 435542401 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 :                                   476.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   507 sec.
    Turnaround time :                            510 sec.

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

