/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 187 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 = 7478
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1320.7+3314_daily_bin36
RA = 200.185, Dec = 33.2378
tmin = 248659201, tmax = 248918401
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='487802', job_status='RUN', time_executed='2021-09-07 12:39:35.437105', time_epoch_executed='1631043575.44' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='36'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487802

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487802/ft1_4FGL_J1320.7+3314_daily_bin36.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487802/ft2_4FGL_J1320.7+3314_daily_bin36.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/487802/ft1_4FGL_J1320.7+3314_daily_bin36.fits outfile=/scratch/kocevski/487802/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin36.fits ra=200.185 dec=33.2378 rad=12.0 tmin=248659201.0 tmax=248918401.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 1.45
user 1.24
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/487802/ft2_4FGL_J1320.7+3314_daily_bin36.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/487802/ft2_4FGL_J1320.7+3314_daily_bin36.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/487802/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin36.fits evtable="EVENTS" outfile="/scratch/kocevski/487802/ft1_filtered_4FGL_J1320.7+3314_daily_bin36.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.53
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/487802/ft1_filtered_4FGL_J1320.7+3314_daily_bin36.fits" evtable="EVENTS" scfile=/scratch/kocevski/487802/ft2_4FGL_J1320.7+3314_daily_bin36.fits sctable="SC_DATA" outfile=/scratch/kocevski/487802/ltcube_248659201_248918401_4FGL_J1320.7+3314_daily_bin36.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/487802/ft2_4FGL_J1320.7+3314_daily_bin36.fits
.....................!
real 18.85
user 18.20
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487802/ft1_filtered_4FGL_J1320.7+3314_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/487802/ft2_4FGL_J1320.7+3314_daily_bin36.fits sctable="SC_DATA" expcube=/scratch/kocevski/487802/ltcube_248659201_248918401_4FGL_J1320.7+3314_daily_bin36.fits outfile=/scratch/kocevski/487802/expmap_248659201_248918401_4FGL_J1320.7+3314_daily_bin36.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/487802/ltcube_248659201_248918401_4FGL_J1320.7+3314_daily_bin36.fits
.....................!
real 192.88
user 186.79
sys 4.94

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 J1320.7+3314 @ 200.185 33.2378

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/487802/ft1_filtered_4FGL_J1320.7+3314_daily_bin36.fits scfile=/scratch/kocevski/487802/ft2_4FGL_J1320.7+3314_daily_bin36.fits outfile=/scratch/kocevski/487802/cmap_248659201_248918401_4FGL_J1320.7+3314_daily_bin36.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=200.185 yref=33.2378 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.58
user 0.42
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/487802/ft1_filtered_4FGL_J1320.7+3314_daily_bin36.fits scfile=/scratch/kocevski/487802/ft2_4FGL_J1320.7+3314_daily_bin36.fits outfile=/scratch/kocevski/487802/cmap_HighResolution_248659201_248918401_4FGL_J1320.7+3314_daily_bin36.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=200.185 yref=33.2378 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.60
user 0.40
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/487802/ft1_filtered_4FGL_J1320.7+3314_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/487802/ft2_4FGL_J1320.7+3314_daily_bin36.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/487802/Model_4FGL_J1320.7+3314_daily_bin36.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/487802/ft1_filtered_4FGL_J1320.7+3314_daily_bin36.fits.....................!
real 43.38
user 41.87
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/487802/ft1_filtered_4FGL_J1320.7+3314_daily_bin36.fits', '/scratch/kocevski/487802/ft2_4FGL_J1320.7+3314_daily_bin36.fits', expMap='/scratch/kocevski/487802/expmap_248659201_248918401_4FGL_J1320.7+3314_daily_bin36.fits', expCube='/scratch/kocevski/487802/ltcube_248659201_248918401_4FGL_J1320.7+3314_daily_bin36.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/487802/Model_4FGL_J1320.7+3314_daily_bin36.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1320.7+3314'

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.871e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.508e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/487802/ft1_filtered_4FGL_J1320.7+3314_daily_bin36.fits
Spacecraft file(s): /scratch/kocevski/487802/ft2_4FGL_J1320.7+3314_daily_bin36.fits
Exposure map: /scratch/kocevski/487802/expmap_248659201_248918401_4FGL_J1320.7+3314_daily_bin36.fits
Exposure cube: /scratch/kocevski/487802/ltcube_248659201_248918401_4FGL_J1320.7+3314_daily_bin36.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/487802/Model_4FGL_J1320.7+3314_daily_bin36.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) = 4869.44958216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0213       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.166       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.2522       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.3468       1.0000         .10000E-03   10000.    
    11 'norm      '    12.492       1.0000         .10000E-03   10000.    
    12 'norm      '    6.8329       1.0000         .10000E-03   10000.    
    13 'norm      '    .36306E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.6137       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8253       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10433E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.6213       1.0000         .10000E-03   10000.    
    24 'norm      '    20.885       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2866       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .56267       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4869.447     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     3254 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0220        9.2015       -.51470E-06   -.77457E-03
   2  Prefactor     .10000E-03    5.4003        .44603E-07** at limit **
   3  Prefactor     32.134        59.263       -.43448E-04   -.63634E-04
   4  Prefactor     .10000E-03    1.8453       -.94877E-07** at limit **
   5  norm          .10000E-03    3.4542        .42832E-06** at limit **
   6  Prefactor     .10000E-03    18.950        .39628E-05** at limit **
   7  Prefactor     .10000E-03    60.801        .46804E-04** at limit **
   8  norm          9.2528        4.5295       -.34210E-06    .71391E-04
   9  Prefactor     .10000E-03    18.765        .34972E-05** at limit **
  10  norm          3.3433        4.6292        .73819E-06   -.66055E-03
  11  norm          12.493        10.700       -.12136E-06    .54954E-05
  12  norm          6.8155        4.8822       -.61265E-06   -.23736E-02
  13  norm          .10002E-03    8.0541        .15697E-05** at limit **
  14  norm          .10000E-03    8.0588       -.93792E-06** at limit **
  15  Prefactor     .10000E-03    2.7630       -.10820E-06** at limit **
  16  Prefactor     .10000E-03    15.855        .61353E-05** at limit **
  17  norm          .10000E-03    12.761       -.65924E-05** at limit **
  18  Prefactor     .10000E-03    26.388       -.17620E-04** at limit **
  19  norm          1.6117        11.779       -.24905E-05   -.27785E-03
  20  Prefactor     4.8273        14.641       -.12553E-05   -.77280E-04
  21  Prefactor     .10000E-03    10.820       -.39271E-05** at limit **
  22  Prefactor     .10000E-03    84.131       -.50501E-04** at limit **
  23  Prefactor     3.6221        4.6885       -.13613E-05   -.39297E-03
  24  norm          20.885        15.574       -.37566E-06    .12706E-04
  25  Prefactor     .10000E-03    10.034        .58933E-05** at limit **
  26  Normalizat    1.2864        .18271        .15033E-05   -.27230E-03
  27  Prefactor     .56275        .21775        .23547E-05   -.46450E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.022
  Prefactor  = 0.0001
  Prefactor  = 32.1339
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.25275
  Prefactor  = 0.0001
  norm       = 3.34329
  norm       = 12.4926
  norm       = 6.8155
  norm       = 0.000100025
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.61169
  Prefactor  = 4.82729
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.6221
  norm       = 20.8851
  Prefactor  = 0.0001
  Normalizat = 1.28643
  Prefactor  = 0.562753
 **********
 **   18 **HESSE 
 **********

 FCN=   4869.447     FROM HESSE     STATUS=OK           484 CALLS     3738 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0220        9.2136        .66721E-03   -1.5107    
   2  Prefactor     .10000E-03    5.4018        .15838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.134        59.372        .70650E-04   -1.4574    
   4  Prefactor     .10000E-03    1.8484        .92568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.5729        .25306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    61.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.2528        4.5288        .10032E-03   -1.5100    
   9  Prefactor     .10000E-03    18.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.3433        4.6060        .16973E-03   -1.5342    
  11  norm          12.493        10.700        .11333E-03   -1.5001    
  12  norm          6.8155        4.0681        .10192E-03   -1.5186    
  13  norm          .10002E-03    41.249        .31573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.0636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8361        .22579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.088        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6117        11.722        .33336E-03   -1.5454    
  20  Prefactor     4.8273        14.628        .18314E-03   -1.5269    
  21  Prefactor     .10000E-03    10.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    84.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.6221        4.6830        .16229E-03   -1.5327    
  24  norm          20.885        15.570        .87645E-04   -1.4794    
  25  Prefactor     .10000E-03    10.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2864        .20571        .19428E-03   -.83972    
  27  Prefactor     .56275        .24317        .33916E-03   -1.0918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15989e-09
Minuit parameter uncertainties:
  1  9.21506
  2  2.81265e-06
  3  59.4816
  4  4.0971e-06
  5  7.84999e-05
  6  9.48159e-06
  7  0.000106193
  8  4.52895
  9  0.00014703
  10  4.60652
  11  10.7014
  12  4.06831
  13  0.00202353
  14  2.99351e-06
  15  1.79358e-05
  16  3.94034e-05
  17  0.00015005
  18  2.27856e-05
  19  8.69501
  20  14.6389
  21  2.98606e-07
  22  1.82891e-05
  23  4.68342
  24  15.5733
  25  7.19707e-06
  26  0.205837
  27  0.243623
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  3.940e-05  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.508e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  5.628e-01  2.436e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.286e+00  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 200.185 33.238
Photon Flux Upper Limit: 8.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/487802/likelihoodResults_248659201_248918401_4FGL_J1320.7+3314_daily_bin36.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) = 4869.44714346
delta logL = -0.000298187497719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4869.44684465
delta logL = 6.18401827523e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4869.447     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      254 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    999.18        .90712E-02** at limit **
   2  Index         2.6776        5.8232        .50000       -.31368E-04
   3  Normalizat    1.2864        .30146E-01    .33053E-01    .26794E-04
   4  Prefactor     .56275        .36245E-01    .76595E-01    .35806E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.67758
  Normalizat = 1.28643
  Prefactor  = 0.56275
 **********
 **   18 **HESSE 
 **********

 FCN=   4869.447     FROM HESSE     STATUS=OK            31 CALLS      285 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    61.283        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6776        6.0015        .50000       -.48305    
   3  Normalizat    1.2864        .19931        .19428E-03   -.83972    
   4  Prefactor     .56275        .23936        .33916E-03   -1.0918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45757e-09
Minuit parameter uncertainties:
  1  0.00163259
  2  7.14321
  3  0.199427
  4  0.239789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487802': 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) = 4869.44684424
delta logL = 1.02678677649e-06

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  1.633e-03  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.678e+00  7.143e+00  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  1.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  5.628e-01  2.398e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.286e+00  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 200.185 33.238

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/487802/cmap_HighResolution_248659201_248918401_4FGL_J1320.7+3314_daily_bin36.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.55e-03', job_status='DONE', photon_flux_upper_limit='8.42e-08', time_completed='2021-09-07 12:50:51.198710', job_id='487802', GAL2='0.56', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1631044251.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='1.03e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='36' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:50:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 487802: <4FGL_J1320.7+3314_daily_bin36> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin36> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:35:43 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:36:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 12:36:18 2021
Terminated at Tue Sep  7 12:50:51 2021
Results reported at Tue Sep  7 12:50:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin36 200.185 33.2378 248659201 248918401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1320.7+3314 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   674.53 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            908 sec.

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

