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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin720
RA = 195.418, Dec = 33.6097
tmin = 425952001, tmax = 426211201
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='103250', job_status='RUN', time_executed='2021-09-06 14:56:19.326853', time_epoch_executed='1630965379.33' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/103250

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/103250/ft1_4FGL_J1301.6+3336_daily_bin720.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/103250/ft2_4FGL_J1301.6+3336_daily_bin720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/103250/ft1_4FGL_J1301.6+3336_daily_bin720.fits outfile=/scratch/kocevski/103250/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin720.fits ra=195.418 dec=33.6097 rad=12.0 tmin=425952001.0 tmax=426211201.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.73
user 3.40
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/103250/ft2_4FGL_J1301.6+3336_daily_bin720.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/103250/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin720.fits evtable="EVENTS" outfile="/scratch/kocevski/103250/ft1_filtered_4FGL_J1301.6+3336_daily_bin720.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.59
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/103250/ft1_filtered_4FGL_J1301.6+3336_daily_bin720.fits" evtable="EVENTS" scfile=/scratch/kocevski/103250/ft2_4FGL_J1301.6+3336_daily_bin720.fits sctable="SC_DATA" outfile=/scratch/kocevski/103250/ltcube_425952001_426211201_4FGL_J1301.6+3336_daily_bin720.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/103250/ft2_4FGL_J1301.6+3336_daily_bin720.fits
.....................!
real 12.09
user 11.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/103250/ft1_filtered_4FGL_J1301.6+3336_daily_bin720.fits evtable="EVENTS" scfile=/scratch/kocevski/103250/ft2_4FGL_J1301.6+3336_daily_bin720.fits sctable="SC_DATA" expcube=/scratch/kocevski/103250/ltcube_425952001_426211201_4FGL_J1301.6+3336_daily_bin720.fits outfile=/scratch/kocevski/103250/expmap_425952001_426211201_4FGL_J1301.6+3336_daily_bin720.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/103250/ltcube_425952001_426211201_4FGL_J1301.6+3336_daily_bin720.fits
.....................!
real 190.51
user 184.86
sys 4.63

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/103250/ft1_filtered_4FGL_J1301.6+3336_daily_bin720.fits scfile=/scratch/kocevski/103250/ft2_4FGL_J1301.6+3336_daily_bin720.fits outfile=/scratch/kocevski/103250/cmap_425952001_426211201_4FGL_J1301.6+3336_daily_bin720.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/103250/ft1_filtered_4FGL_J1301.6+3336_daily_bin720.fits scfile=/scratch/kocevski/103250/ft2_4FGL_J1301.6+3336_daily_bin720.fits outfile=/scratch/kocevski/103250/cmap_HighResolution_425952001_426211201_4FGL_J1301.6+3336_daily_bin720.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.029       1.0000         .10000E-03   10000.    
     2 'norm      '    6.6661       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.3125       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.560       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5383       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .37551E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4537       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6687       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    14.703       1.0000         .10000E-03   10000.    
    20 'norm      '    .96461       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12434E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.0033       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4721       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .77533       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=   6252.716     FROM MIGRAD    STATUS=CONVERGED    778 CALLS     3915 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.011        43.347        .95916E-06    .53108E-04
   2  norm          6.6662        2.9685       -.99355E-08    .17745E-04
   3  Prefactor     .10000E-03    3.7403        .58936E-07** at limit **
   4  Prefactor     .10000E-03    .84945       -.71965E-08** at limit **
   5  Prefactor     .10000E-03    1.1409       -.29930E-07** at limit **
   6  norm          5.3124        4.4177        .22911E-07    .48282E-04
   7  Prefactor     .10000E-03    7.2030       -.22026E-07** at limit **
   8  Prefactor     22.561        18.388       -.48299E-07    .21688E-04
   9  Prefactor     .10000E-03    52.670       -.19004E-05** at limit **
  10  Prefactor     7.5381        6.1277        .47075E-08    .11253E-04
  11  Prefactor     .10000E-03    2.3263        .47794E-07** at limit **
  12  norm          .10009E-03    4.3654        .79235E-06** at limit **
  13  Prefactor     .10000E-03    19.824        .25364E-07** at limit **
  14  Prefactor     7.4396        56.781       -.11551E-05    .18962E-03
  15  norm          .10000E-03    1.7901       -.58632E-07** at limit **
  16  Prefactor     .10000E-03    9.1476       -.91068E-07** at limit **
  17  norm          1.6692        5.2014        .38798E-05    .19245E-04
  18  norm          .10000E-03    5.0982       -.27768E-07** at limit **
  19  norm          14.707        7.4049        .97806E-06    .10739E-04
  20  norm          .95720        10.137       -.32184E-06   -.15248E-03
  21  norm          .10000E-03    13.099       -.25520E-06** at limit **
  22  Prefactor     .10000E-03    1.8784       -.15361E-06** at limit **
  23  Prefactor     .10000E-03    41.414        .73563E-07** at limit **
  24  Prefactor     .10000E-03    108.08        .88846E-06** at limit **
  25  Prefactor     .10000E-03    11.434        .97118E-07** at limit **
  26  Prefactor     .10000E-03    9.5285       -.10870E-06** at limit **
  27  Prefactor     .10000E-03    19.499       -.14804E-06** at limit **
  28  Prefactor     3.0033        3.7284        .39854E-07   -.40393E-04
  29  Normalizat    1.4719        .19095        .56956E-06    .26738E-03
  30  Prefactor     .77566        .22341       -.80158E-06    .33543E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.0107
  norm       = 6.66617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.31241
  Prefactor  = 0.0001
  Prefactor  = 22.5611
  Prefactor  = 0.000100002
  Prefactor  = 7.5381
  Prefactor  = 0.0001
  norm       = 0.000100088
  Prefactor  = 0.0001
  Prefactor  = 7.43959
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.66922
  norm       = 0.0001
  norm       = 14.7068
  norm       = 0.957202
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.0033
  Normalizat = 1.47185
  Prefactor  = 0.775663
 **********
 **   18 **HESSE 
 **********

 FCN=   6252.716     FROM HESSE     STATUS=OK           584 CALLS     4499 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.011        43.406        .91814E-04   -1.4836    
   2  norm          6.6662        2.9635        .88122E-04   -1.5192    
   3  Prefactor     .10000E-03    3.7486        .14929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .85434        .71067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.1612        .82409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.3124        4.4172        .14702E-03   -1.5247    
   7  Prefactor     .10000E-03    7.2472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.561        18.387        .84332E-04   -1.4758    
   9  Prefactor     .10000E-03    52.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.5381        6.1275        .14607E-03   -1.5159    
  11  Prefactor     .10000E-03    2.3292        .11774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10009E-03    55.855        .26819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.4396        49.484        .14690E-03   -1.5162    
  15  norm          .10000E-03    1.8072        .10330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.1886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6692        5.2605        .15125E-02   -1.5450    
  18  norm          .10000E-03    5.1022        .17438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.707        12.149        .10445E-03   -1.4941    
  20  norm          .95720        89.230        .32829E-02   -1.5512    
  21  norm          .10000E-03    13.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.9041        .10587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    42.904        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    108.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.5375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    19.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.0033        3.7201        .16459E-03   -1.5361    
  29  Normalizat    1.4719        .23332        .22420E-03   -.78572    
  30  Prefactor     .77566        .26737        .34973E-03   -1.0063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66287e-09
Minuit parameter uncertainties:
  1  43.4778
  2  2.96358
  3  2.21293e-05
  4  9.06698e-07
  5  2.5059e-06
  6  4.41745
  7  1.39846e-06
  8  18.3917
  9  0.000642543
  10  6.12799
  11  6.19658e-06
  12  0.00444521
  13  1.21314e-05
  14  38.4197
  15  4.62331e-07
  16  3.39157e-05
  17  5.26198
  18  4.96439e-07
  19  12.1507
  20  18.5112
  21  2.42356e-05
  22  1.92998e-05
  23  0.0002988
  24  0.000204939
  25  3.00177e-05
  26  7.13694e-06
  27  2.44638e-05
  28  3.72039
  29  0.233494
  30  0.267821
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  7.440e+00  3.842e+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.757e-01  2.678e-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.472e+00  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 195.418 33.610
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/103250/likelihoodResults_425952001_426211201_4FGL_J1301.6+3336_daily_bin720.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) = 6252.7153966
delta logL = 0.000667743654049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6252.71411811
delta logL = 0.00194623821881

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6419       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3681       1.0000          .0000       10.000    
     3 'Normalizat'    1.4746       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77225       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.

 FCN=   6252.714     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      318 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5352        756.89        .32264E-02    .17246E-03
   2  Index         2.3610        1.8534        .50000       -.26532E-05
   3  Normalizat    1.4747        .19421E-01    .50673E-01   -.24258E-05
   4  Prefactor     .77228        .22983E-01    .79152E-01    .23837E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.53522
  Index      = 2.36103
  Normalizat = 1.47471
  Prefactor  = 0.772281
 **********
 **   18 **HESSE 
 **********

 FCN=   6252.714     FROM HESSE     STATUS=OK            33 CALLS      351 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5352        62.323        .64528E-03   -1.5090    
   2  Index         2.3610        2.7001        .83813E-02   -.55600    
   3  Normalizat    1.4747        .22577        .22402E-03   -.78492    
   4  Prefactor     .77228        .26364        .35042E-03   -1.0076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01906e-12
Minuit parameter uncertainties:
  1  48.8291
  2  2.92622
  3  0.225927
  4  0.264074
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/103250': 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) = 6252.71410844
delta logL = 0.00195590469775

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  9.535e+00  4.883e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.361e+00  2.926e+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.723e-01  2.641e-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.475e+00  2.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/103250/cmap_HighResolution_425952001_426211201_4FGL_J1301.6+3336_daily_bin720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-06 15:10:22.335023', job_id='103250', GAL2='0.77', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1630966222.34', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.96e-03', ts2='0.06', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='720' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:10:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 103250: <4FGL_J1301.6+3336_daily_bin720> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin720> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 14:56:06 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:56:08 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:08 2021
Terminated at Mon Sep  6 15:10:24 2021
Results reported at Mon Sep  6 15:10:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin720 195.418 33.6097 425952001 426211201 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 :                                   833.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            858 sec.

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

