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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin23
RA = 200.185, Dec = 33.2378
tmin = 245289601, tmax = 245548801
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='487774', job_status='RUN', time_executed='2021-09-07 12:39:28.404291', time_epoch_executed='1631043568.4' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='23'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487774

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487774/ft1_4FGL_J1320.7+3314_daily_bin23.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487774/ft2_4FGL_J1320.7+3314_daily_bin23.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/487774/ft1_4FGL_J1320.7+3314_daily_bin23.fits outfile=/scratch/kocevski/487774/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin23.fits ra=200.185 dec=33.2378 rad=12.0 tmin=245289601.0 tmax=245548801.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.49
user 1.32
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/487774/ft2_4FGL_J1320.7+3314_daily_bin23.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/487774/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin23.fits evtable="EVENTS" outfile="/scratch/kocevski/487774/ft1_filtered_4FGL_J1320.7+3314_daily_bin23.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.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/487774/ft1_filtered_4FGL_J1320.7+3314_daily_bin23.fits" evtable="EVENTS" scfile=/scratch/kocevski/487774/ft2_4FGL_J1320.7+3314_daily_bin23.fits sctable="SC_DATA" outfile=/scratch/kocevski/487774/ltcube_245289601_245548801_4FGL_J1320.7+3314_daily_bin23.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/487774/ft2_4FGL_J1320.7+3314_daily_bin23.fits
.....................!
real 17.72
user 17.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487774/ft1_filtered_4FGL_J1320.7+3314_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/487774/ft2_4FGL_J1320.7+3314_daily_bin23.fits sctable="SC_DATA" expcube=/scratch/kocevski/487774/ltcube_245289601_245548801_4FGL_J1320.7+3314_daily_bin23.fits outfile=/scratch/kocevski/487774/expmap_245289601_245548801_4FGL_J1320.7+3314_daily_bin23.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/487774/ltcube_245289601_245548801_4FGL_J1320.7+3314_daily_bin23.fits
.....................!
real 192.68
user 187.11
sys 5.07

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/487774/ft1_filtered_4FGL_J1320.7+3314_daily_bin23.fits scfile=/scratch/kocevski/487774/ft2_4FGL_J1320.7+3314_daily_bin23.fits outfile=/scratch/kocevski/487774/cmap_245289601_245548801_4FGL_J1320.7+3314_daily_bin23.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/487774/ft1_filtered_4FGL_J1320.7+3314_daily_bin23.fits scfile=/scratch/kocevski/487774/ft2_4FGL_J1320.7+3314_daily_bin23.fits outfile=/scratch/kocevski/487774/cmap_HighResolution_245289601_245548801_4FGL_J1320.7+3314_daily_bin23.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.57
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/487774/ft1_filtered_4FGL_J1320.7+3314_daily_bin23.fits', '/scratch/kocevski/487774/ft2_4FGL_J1320.7+3314_daily_bin23.fits', expMap='/scratch/kocevski/487774/expmap_245289601_245548801_4FGL_J1320.7+3314_daily_bin23.fits', expCube='/scratch/kocevski/487774/ltcube_245289601_245548801_4FGL_J1320.7+3314_daily_bin23.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/487774/Model_4FGL_J1320.7+3314_daily_bin23.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/487774/ft1_filtered_4FGL_J1320.7+3314_daily_bin23.fits
Spacecraft file(s): /scratch/kocevski/487774/ft2_4FGL_J1320.7+3314_daily_bin23.fits
Exposure map: /scratch/kocevski/487774/expmap_245289601_245548801_4FGL_J1320.7+3314_daily_bin23.fits
Exposure cube: /scratch/kocevski/487774/ltcube_245289601_245548801_4FGL_J1320.7+3314_daily_bin23.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/487774/Model_4FGL_J1320.7+3314_daily_bin23.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) = 5530.56774703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.852       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9811       1.0000         .10000E-03   10000.    
     8 'norm      '    .10583E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.687       1.0000         .10000E-03   10000.    
    10 'norm      '    .35072E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    25.032       1.0000         .10000E-03   10000.    
    12 'norm      '    8.0080       1.0000         .10000E-03   10000.    
    13 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.1915       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.0858       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.3267       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2035       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .73587       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=   5530.520     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     3271 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5806       -.17706E-06** at limit **
   2  Prefactor     .10000E-03    24.263       -.65782E-05** at limit **
   3  Prefactor     27.853        49.908        .15533E-05    .79542E-05
   4  Prefactor     .10000E-03    2.7582        .90336E-07** at limit **
   5  norm          .10000E-03    1.4592        .25431E-06** at limit **
   6  Prefactor     .10000E-03    17.427        .70162E-05** at limit **
   7  Prefactor     4.9755        18.612       -.78427E-05   -.32597E-04
   8  norm          .10001E-03    2.8469       -.19296E-05** at limit **
   9  Prefactor     16.686        16.276        .13546E-06    .49527E-04
  10  norm          .10000E-03    3.1508       -.69537E-07** at limit **
  11  norm          25.031        15.702       -.35010E-06   -.64849E-05
  12  norm          8.0076        3.9728        .12197E-05    .27257E-03
  13  norm          .10000E-03    3.7127       -.51049E-06** at limit **
  14  norm          .10000E-03    14.274       -.17321E-05** at limit **
  15  Prefactor     .10000E-03    1.1206        .54693E-07** at limit **
  16  Prefactor     .10000E-03    12.702       -.48756E-05** at limit **
  17  norm          3.1914        5.6903       -.44950E-06   -.37088E-03
  18  Prefactor     .10000E-03    24.039       -.46919E-05** at limit **
  19  norm          8.0855        7.1030        .71148E-07    .27630E-04
  20  Prefactor     .10000E-03    9.2596        .17756E-05** at limit **
  21  Prefactor     .10000E-03    10.119       -.10704E-05** at limit **
  22  Prefactor     .10000E-03    19.036        .93023E-05** at limit **
  23  Prefactor     3.3267        4.0133       -.11749E-05   -.43823E-03
  24  norm          .10000E-03    7.4795        .12259E-05** at limit **
  25  Prefactor     .10000E-03    5.3778        .28492E-05** at limit **
  26  Normalizat    1.2034        .17153        .18750E-06    .41445E-03
  27  Prefactor     .73597        .20433        .66855E-06    .22314E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.8532
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.97546
  norm       = 0.000100011
  Prefactor  = 16.6861
  norm       = 0.0001
  norm       = 25.0314
  norm       = 8.00761
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.19138
  Prefactor  = 0.0001
  norm       = 8.08553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.32665
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20342
  Prefactor  = 0.735967
 **********
 **   18 **HESSE 
 **********

 FCN=   5530.520     FROM HESSE     STATUS=OK           482 CALLS     3753 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5817        .11668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.853        49.877        .75911E-04   -1.4652    
   4  Prefactor     .10000E-03    2.7653        .12055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.4631        .87680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.9755        18.661        .18019E-03   -1.5262    
   8  norm          .10001E-03    5.7520        .23708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.686        15.427        .98045E-04   -1.4891    
  10  norm          .10000E-03    14.754        .24027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          25.031        15.703        .80065E-04   -1.4707    
  12  norm          8.0076        3.9678        .98343E-04   -1.5142    
  13  norm          .10000E-03    3.7419        .13979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    14.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1300        .76805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.1914        5.6904        .21595E-03   -1.5351    
  18  Prefactor     .10000E-03    24.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.0855        7.0847        .14100E-03   -1.5139    
  20  Prefactor     .10000E-03    9.3246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.3267        4.0564        .15669E-03   -1.5343    
  24  norm          .10000E-03    7.5007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.3704        .16831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2034        .20069        .20253E-03   -.86497    
  27  Prefactor     .73597        .23808        .30647E-03   -1.0213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39985e-09
Minuit parameter uncertainties:
  1  3.39172e-07
  2  1.22959e-05
  3  49.9518
  4  1.58573e-06
  5  9.75329e-07
  6  6.20203e-07
  7  18.6833
  8  0.00049743
  9  15.4311
  10  0.000157587
  11  15.706
  12  3.96792
  13  3.8219e-05
  14  1.81246e-05
  15  1.60744e-06
  16  2.06696e-05
  17  5.69135
  18  3.23667e-06
  19  7.08546
  20  3.7036e-07
  21  1.55897e-06
  22  4.10962e-06
  23  4.05669
  24  5.21557e-06
  25  6.37477e-07
  26  0.200816
  27  0.238415
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  2.067e-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:  7.360e-01  2.384e-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.203e+00  2.008e-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: 6.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/487774/likelihoodResults_245289601_245548801_4FGL_J1320.7+3314_daily_bin23.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) = 5530.52074345
delta logL = -0.000369364081962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5530.52037403
delta logL = 5.08225639351e-08

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5530.520     FROM MIGRAD    STATUS=FAILED        89 CALLS      244 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2077.9        .18142E-02** at limit **
   2  Index         2.5508        5.7444        .50000       -.15520E-04
   3  Normalizat    1.2034        .71756E-01    .20253E-03    .80597E-04
   4  Prefactor     .73597        .87223E-01    .30647E-03    .25188E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5530.520     FROM SIMPLEX   STATUS=UNCHANGED    193 CALLS      437 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2077.9        .75025E-03** at limit **
   2  Index         2.5508        5.7444        .62941E-06   -.15520E-04
   3  Normalizat    1.2034        .71756E-01    .23277E-07    .80597E-04
   4  Prefactor     .73597        .87223E-01    .25808E-07    .25188E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5530.520     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      471 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.504        .36285E-03** at limit **
   2  Index         2.5509        6.2719        .50000       -.15524E-04
   3  Normalizat    1.2034        .19375        .40506E-04    .76062E-04
   4  Prefactor     .73597        .23557        .12259E-04    .22443E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.55091
  Normalizat = 1.20342
  Prefactor  = 0.735966
 **********
 **   18 **HESSE 
 **********

 FCN=   5530.520     FROM HESSE     STATUS=OK            29 CALLS      500 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.451        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5509        6.2717        .50000       -.51188    
   3  Normalizat    1.2034        .19383        .81011E-05   -.86497    
   4  Prefactor     .73597        .23571        .24518E-05   -1.0213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48155e-10
Minuit parameter uncertainties:
  1  0.000415905
  2  4.37692
  3  0.193948
  4  0.236027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487774': 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) = 5530.52037394
delta logL = 1.45026206155e-07

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  4.159e-04  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.551e+00  4.377e+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:  7.360e-01  2.360e-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.203e+00  1.939e-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/487774/cmap_HighResolution_245289601_245548801_4FGL_J1320.7+3314_daily_bin23.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.27e-03', job_status='DONE', photon_flux_upper_limit='6.77e-08', time_completed='2021-09-07 12:51:43.136094', job_id='487774', GAL2='0.74', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1631044303.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='23' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:51:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 487774: <4FGL_J1320.7+3314_daily_bin23> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin23> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:35:40 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:36:10 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:10 2021
Terminated at Tue Sep  7 12:51:43 2021
Results reported at Tue Sep  7 12:51:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin23 200.185 33.2378 245289601 245548801 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 :                                   734.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            963 sec.

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

