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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin91
RA = 200.185, Dec = 33.2378
tmin = 262915201, tmax = 263174401
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='487890', job_status='RUN', time_executed='2021-09-07 12:39:21.782951', time_epoch_executed='1631043561.78' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487890

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487890/ft1_4FGL_J1320.7+3314_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487890/ft2_4FGL_J1320.7+3314_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/487890/ft1_4FGL_J1320.7+3314_daily_bin91.fits outfile=/scratch/kocevski/487890/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin91.fits ra=200.185 dec=33.2378 rad=12.0 tmin=262915201.0 tmax=263174401.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.32
user 1.12
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/487890/ft2_4FGL_J1320.7+3314_daily_bin91.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/487890/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin91.fits evtable="EVENTS" outfile="/scratch/kocevski/487890/ft1_filtered_4FGL_J1320.7+3314_daily_bin91.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.47
user 0.32
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/487890/ft1_filtered_4FGL_J1320.7+3314_daily_bin91.fits" evtable="EVENTS" scfile=/scratch/kocevski/487890/ft2_4FGL_J1320.7+3314_daily_bin91.fits sctable="SC_DATA" outfile=/scratch/kocevski/487890/ltcube_262915201_263174401_4FGL_J1320.7+3314_daily_bin91.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/487890/ft2_4FGL_J1320.7+3314_daily_bin91.fits
.....................!
real 14.87
user 14.40
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487890/ft1_filtered_4FGL_J1320.7+3314_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/487890/ft2_4FGL_J1320.7+3314_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/487890/ltcube_262915201_263174401_4FGL_J1320.7+3314_daily_bin91.fits outfile=/scratch/kocevski/487890/expmap_262915201_263174401_4FGL_J1320.7+3314_daily_bin91.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/487890/ltcube_262915201_263174401_4FGL_J1320.7+3314_daily_bin91.fits
.....................!
real 192.37
user 185.69
sys 5.40

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/487890/ft1_filtered_4FGL_J1320.7+3314_daily_bin91.fits scfile=/scratch/kocevski/487890/ft2_4FGL_J1320.7+3314_daily_bin91.fits outfile=/scratch/kocevski/487890/cmap_262915201_263174401_4FGL_J1320.7+3314_daily_bin91.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/487890/ft1_filtered_4FGL_J1320.7+3314_daily_bin91.fits scfile=/scratch/kocevski/487890/ft2_4FGL_J1320.7+3314_daily_bin91.fits outfile=/scratch/kocevski/487890/cmap_HighResolution_262915201_263174401_4FGL_J1320.7+3314_daily_bin91.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.56
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/487890/ft1_filtered_4FGL_J1320.7+3314_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/487890/ft2_4FGL_J1320.7+3314_daily_bin91.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/487890/Model_4FGL_J1320.7+3314_daily_bin91.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/487890/ft1_filtered_4FGL_J1320.7+3314_daily_bin91.fits.....................!
real 34.77
user 33.36
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.940       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.097       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10227E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.085       1.0000         .10000E-03   10000.    
     8 'norm      '    14.073       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.671       1.0000         .10000E-03   10000.    
    11 'norm      '    18.901       1.0000         .10000E-03   10000.    
    12 'norm      '    10.693       1.0000         .10000E-03   10000.    
    13 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.045       1.0000         .10000E-03   10000.    
    17 'norm      '    .94941       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2111       1.0000         .10000E-03   10000.    
    19 'norm      '    11.677       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .71359       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2615       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=   3651.751     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3221 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.940        11.780        .32399E-06   -.60763E-05
   2  Prefactor     .10000E-03    14.709        .95629E-07** at limit **
   3  Prefactor     46.054        80.022       -.35909E-06   -.33158E-04
   4  Prefactor     .10000E-03    3.3785       -.10181E-06** at limit **
   5  norm          .10000E-03    5.6757       -.12813E-05** at limit **
   6  Prefactor     .10000E-03    56.222       -.33466E-06** at limit **
   7  Prefactor     32.062        32.537       -.16493E-06   -.36019E-04
   8  norm          14.073        5.8545       -.40276E-07   -.62541E-04
   9  Prefactor     .10000E-03    17.800       -.32801E-06** at limit **
  10  norm          12.673        8.1522       -.76141E-07    .18100E-04
  11  norm          18.897        24.585       -.94983E-07   -.88759E-05
  12  norm          10.689        6.3703        .20966E-06    .24095E-04
  13  norm          .10000E-03    8.5217        .55591E-06** at limit **
  14  norm          .10000E-03    10.890        .25081E-07** at limit **
  15  Prefactor     .10000E-03    2.8171       -.89452E-08** at limit **
  16  Prefactor     18.051        20.973        .44345E-07    .41516E-05
  17  norm          .94997        15.667        .55664E-05   -.12271E-04
  18  Prefactor     4.2055        431.07        .16462E-05   -.12122E-05
  19  norm          11.682        11.052       -.12525E-05   -.24295E-03
  20  Prefactor     .10000E-03    37.853        .17054E-05** at limit **
  21  Prefactor     .10000E-03    10.015        .29347E-07** at limit **
  22  Prefactor     .10000E-03    25.423       -.71984E-08** at limit **
  23  Prefactor     .10000E-03    2.4103        .13946E-06** at limit **
  24  norm          .10000E-03    8.7224        .41716E-07** at limit **
  25  Prefactor     .10000E-03    25.594        .89964E-07** at limit **
  26  Normalizat    .71351        .21082        .42204E-06   -.78329E-04
  27  Prefactor     1.2615        .26290       -.74776E-06   -.39824E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9404
  Prefactor  = 0.0001
  Prefactor  = 46.0538
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.0624
  norm       = 14.0733
  Prefactor  = 0.0001
  norm       = 12.6734
  norm       = 18.8968
  norm       = 10.6889
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.0512
  norm       = 0.949969
  Prefactor  = 4.20546
  norm       = 11.6817
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.713507
  Prefactor  = 1.26149
 **********
 **   18 **HESSE 
 **********

 FCN=   3651.751     FROM HESSE     STATUS=OK           486 CALLS     3707 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.940        11.777        .51811E-03   -1.4935    
   2  Prefactor     .10000E-03    14.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     46.054        80.185        .59055E-04   -1.4350    
   4  Prefactor     .10000E-03    3.3828        .10845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.7470        .27898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    56.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.062        32.532        .70739E-04   -1.4575    
   8  norm          14.073        5.8553        .91366E-04   -1.4958    
   9  Prefactor     .10000E-03    17.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.673        8.1420        .11253E-03   -1.4996    
  11  norm          18.897        24.585        .92125E-04   -1.4838    
  12  norm          10.689        6.3385        .10427E-03   -1.5054    
  13  norm          .10000E-03    8.5253        .17122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    10.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8286        .98671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.051        20.867        .94286E-04   -1.4858    
  17  norm          .94997        16.298        .41556E-02   -1.5513    
  18  Prefactor     4.2055        425.79        .19637E-03   -1.5298    
  19  norm          11.682        11.263        .11723E-03   -1.5024    
  20  Prefactor     .10000E-03    38.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    25.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.4358        .91582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    8.7401        .17432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    25.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .71351        .24983        .25931E-03   -1.0336    
  27  Prefactor     1.2615        .31236        .25447E-03   -.84459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.27e-08
Minuit parameter uncertainties:
  1  11.7787
  2  4.56095e-05
  3  80.3733
  4  8.22227e-07
  5  1.1077e-05
  6  0.000247919
  7  32.5504
  8  5.85558
  9  4.79619e-05
  10  8.14267
  11  24.5979
  12  6.33893
  13  5.78693e-06
  14  4.65866e-06
  15  3.12017e-06
  16  20.8754
  17  7.87176
  18  85.2621
  19  11.2648
  20  0.000221855
  21  2.43591e-05
  22  2.55213e-05
  23  1.58817e-07
  24  8.64714e-06
  25  1.60596e-05
  26  0.250227
  27  0.312822
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.805e+01  2.088e+01  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:  1.261e+00  3.128e-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:  7.135e-01  2.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 200.185 33.238
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 4.62e-08 +/- 5.34e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.54e-05

TS (Fixed Index): 1.30
Ra Dec: 200.185 33.238
Photon Flux Upper Limit: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/487890/likelihoodResults_262915201_263174401_4FGL_J1320.7+3314_daily_bin91.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) = 3651.6379657
delta logL = 0.112756866593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3651.32195643
delta logL = 0.42876613209

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78901E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.6002       1.0000          .0000       10.000    
     3 'Normalizat'    .63938       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3473       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=   3651.322     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      378 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77376E-03    .13691E-01    .35500E-03** at limit **
   2  Index         7.6097        2.7839        .10932        .76025E-04
   3  Normalizat    .63984        .53949E-01    .61649E-01   -.69431E-04
   4  Prefactor     1.3468        .68872E-01    .56084E-01    .22847E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000773757
  Index      = 7.60969
  Normalizat = 0.639836
  Prefactor  = 1.3468
 **********
 **   18 **HESSE 
 **********

 FCN=   3651.322     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      411 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77376E-03    .29847E-01    .14526E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.6097        7.8125        .44143E-02    .54912    
   3  Normalizat    .63984        .19163        .27274E-03   -1.0632    
   4  Prefactor     1.3468        .24064        .24798E-03   -.81926    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.15903e-08
Minuit parameter uncertainties:
  1  0.0089688
  2  5.10286
  3  0.191829
  4  0.240838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487890': 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): 102
logL (Free Index) = 3651.32194865
delta logL = 0.428773918908

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  7.738e-04  8.969e-03  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  7.610e+00  5.103e+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:  1.347e+00  2.408e-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:  6.398e-01  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 200.185 33.238
Photon Index (Free Index): 7.61 +/- 5.10
Photon Flux (Free Index): 8.36e-08 +/- 6.72e-08
Energy Flux (Free Index): 9.80e-06 +/- 8.37e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/487890/cmap_HighResolution_262915201_263174401_4FGL_J1320.7+3314_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', comment='SUCCESS', photon_flux='4.62e-08', energy_flux2='9.80e-06', photon_flux_error='5.34e-08', dlogl='4.29e-01', energy_flux='1.33e-05', photon_flux2='8.36e-08', job_status='DONE', time_completed='2021-09-07 12:49:00.801811', photon_index_error2='5.10', photon_index2='7.61', ts='1.30', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='8.37e-06', EG='0.71', time_epoch_completed='1631044140.8', return_code='0', job_id='487890', GAL2='1.35', EG2='0.64', return_code2='102', energy_flux_error='1.54e-05', photon_flux_error2='6.72e-08', ts2='2.31', photon_index='2.51' WHERE bin_id='91' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:49:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 487890: <4FGL_J1320.7+3314_daily_bin91> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin91> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:35:50 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:37:07 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:37:07 2021
Terminated at Tue Sep  7 12:49:01 2021
Results reported at Tue Sep  7 12:49:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin91 200.185 33.2378 262915201 263174401 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 :                                   577.48 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            791 sec.

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

