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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1271
RA = 200.185, Dec = 33.2378
tmin = 568771201, tmax = 569030401
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='494764', job_status='RUN', time_executed='2021-09-07 13:03:23.787145', time_epoch_executed='1631045003.79' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494764

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494764/ft1_4FGL_J1320.7+3314_daily_bin1271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494764/ft2_4FGL_J1320.7+3314_daily_bin1271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494764/ft1_4FGL_J1320.7+3314_daily_bin1271.fits outfile=/scratch/kocevski/494764/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1271.fits ra=200.185 dec=33.2378 rad=12.0 tmin=568771201.0 tmax=569030401.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.65
user 3.40
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494764/ft1_filtered_4FGL_J1320.7+3314_daily_bin1271.fits" evtable="EVENTS" scfile=/scratch/kocevski/494764/ft2_4FGL_J1320.7+3314_daily_bin1271.fits sctable="SC_DATA" outfile=/scratch/kocevski/494764/ltcube_568771201_569030401_4FGL_J1320.7+3314_daily_bin1271.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/494764/ft2_4FGL_J1320.7+3314_daily_bin1271.fits
.....................!
real 17.14
user 16.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494764/ft1_filtered_4FGL_J1320.7+3314_daily_bin1271.fits evtable="EVENTS" scfile=/scratch/kocevski/494764/ft2_4FGL_J1320.7+3314_daily_bin1271.fits sctable="SC_DATA" expcube=/scratch/kocevski/494764/ltcube_568771201_569030401_4FGL_J1320.7+3314_daily_bin1271.fits outfile=/scratch/kocevski/494764/expmap_568771201_569030401_4FGL_J1320.7+3314_daily_bin1271.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/494764/ltcube_568771201_569030401_4FGL_J1320.7+3314_daily_bin1271.fits
.....................!
real 192.00
user 186.93
sys 4.56

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/494764/ft1_filtered_4FGL_J1320.7+3314_daily_bin1271.fits scfile=/scratch/kocevski/494764/ft2_4FGL_J1320.7+3314_daily_bin1271.fits outfile=/scratch/kocevski/494764/cmap_568771201_569030401_4FGL_J1320.7+3314_daily_bin1271.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494764/ft1_filtered_4FGL_J1320.7+3314_daily_bin1271.fits scfile=/scratch/kocevski/494764/ft2_4FGL_J1320.7+3314_daily_bin1271.fits outfile=/scratch/kocevski/494764/cmap_HighResolution_568771201_569030401_4FGL_J1320.7+3314_daily_bin1271.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/494764/ft1_filtered_4FGL_J1320.7+3314_daily_bin1271.fits evtable="EVENTS" scfile=/scratch/kocevski/494764/ft2_4FGL_J1320.7+3314_daily_bin1271.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/494764/Model_4FGL_J1320.7+3314_daily_bin1271.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/494764/ft1_filtered_4FGL_J1320.7+3314_daily_bin1271.fits.....................!
real 53.00
user 51.61
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3125       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    92.888       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0894       1.0000         .10000E-03   10000.    
     5 'norm      '    3.6564       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12164E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4688       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.463       1.0000         .10000E-03   10000.    
    11 'norm      '    21.014       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.8962       1.0000         .10000E-03   10000.    
    14 'norm      '    12.493       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    102.47       1.0000         .10000E-03   10000.    
    19 'norm      '    7.4345       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21571E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.4268       1.0000         .10000E-03   10000.    
    22 'Prefactor '    71.631       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    26.712       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.0422       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .79547       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2707       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=   6721.558     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     3278 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3127        9.1855       -.69191E-06   -.36920E-03
   2  Prefactor     .10000E-03    6.9653       -.85439E-08** at limit **
   3  Prefactor     92.891        85.795        .49553E-06    .76080E-04
   4  Prefactor     3.0897        3.4691        .17469E-05   -.21759E-02
   5  norm          3.6553        5.1446        .53069E-06    .16309E-03
   6  Prefactor     .10000E-03    31.800       -.12634E-06** at limit **
   7  Prefactor     .10000E-03    61.926        .10152E-05** at limit **
   8  norm          3.4690        3.2956        .41126E-07   -.69344E-04
   9  Prefactor     .10000E-03    5.6227       -.80786E-07** at limit **
  10  norm          12.463        5.9919       -.13216E-07    .10138E-03
  11  norm          21.017        17.136        .13451E-06    .37972E-04
  12  norm          .10000E-03    1.3170        .98586E-08** at limit **
  13  norm          3.8963        3.7448       -.10099E-06   -.24790E-04
  14  norm          12.493        14.607        .16107E-08   -.85216E-05
  15  Prefactor     .10000E-03    .81193       -.14484E-07** at limit **
  16  Prefactor     .10000E-03    8.1976       -.95362E-07** at limit **
  17  norm          .10000E-03    2.0151       -.25216E-07** at limit **
  18  Prefactor     102.46        61.633       -.11762E-05   -.16967E-03
  19  norm          7.4344        8.0379       -.50639E-06   -.35319E-03
  20  Prefactor     .10002E-03    12.560       -.16476E-06** at limit **
  21  Prefactor     8.4063        17.868       -.50714E-06   -.74750E-04
  22  Prefactor     71.609        57.220       -.52600E-05   -.49569E-03
  23  Prefactor     .10000E-03    .87368        .91665E-08** at limit **
  24  norm          26.712        15.095        .19792E-06    .46075E-04
  25  Prefactor     1.0391        21.280        .70601E-05    .38128E-04
  26  Normalizat    .79562        .16803        .78745E-06   -.67513E-04
  27  Prefactor     1.2704        .20701       -.64171E-06    .25279E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.31271
  Prefactor  = 0.0001
  Prefactor  = 92.891
  Prefactor  = 3.08973
  norm       = 3.6553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.46897
  Prefactor  = 0.0001
  norm       = 12.4632
  norm       = 21.0167
  norm       = 0.0001
  norm       = 3.89635
  norm       = 12.4934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 102.464
  norm       = 7.43439
  Prefactor  = 0.000100018
  Prefactor  = 8.40633
  Prefactor  = 71.6095
  Prefactor  = 0.0001
  norm       = 26.7116
  Prefactor  = 1.0391
  Normalizat = 0.795624
  Prefactor  = 1.27044
 **********
 **   18 **HESSE 
 **********

 FCN=   6721.558     FROM HESSE     STATUS=OK           492 CALLS     3770 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3127        9.2535        .13133E-03   -1.5098    
   2  Prefactor     .10000E-03    6.9800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     92.891        85.590        .41698E-04   -1.3777    
   4  Prefactor     3.0897        3.9660        .89883E-03   -1.5356    
   5  norm          3.6553        5.0997        .19975E-03   -1.5326    
   6  Prefactor     .10000E-03    31.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    62.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4690        3.2908        .13984E-03   -1.5335    
   9  Prefactor     .10000E-03    5.6317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.463        5.9922        .11347E-03   -1.5002    
  11  norm          21.017        17.150        .87376E-04   -1.4791    
  12  norm          .10000E-03    1.3292        .91713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.8963        3.7452        .15099E-03   -1.5313    
  14  norm          12.493        14.604        .11333E-03   -1.5001    
  15  Prefactor     .10000E-03    .81507        .72089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.2619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.0176        .11357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     102.46        61.916        .39719E-04   -1.3680    
  19  norm          7.4344        8.0854        .14709E-03   -1.5163    
  20  Prefactor     .10002E-03    108.28        .53639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.4063        17.390        .13810E-03   -1.5128    
  22  Prefactor     71.609        61.234        .47433E-04   -1.4013    
  23  Prefactor     .10000E-03    .87641        .74825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          26.712        15.094        .77511E-04   -1.4674    
  25  Prefactor     1.0391        21.498        .48955E-03   -1.5504    
  26  Normalizat    .79562        .19870        .26227E-03   -1.0023    
  27  Prefactor     1.2704        .24784        .26710E-03   -.84190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37061e-09
Minuit parameter uncertainties:
  1  9.25496
  2  5.80446e-07
  3  85.7039
  4  3.96636
  5  5.10026
  6  4.63836e-05
  7  1.47525e-05
  8  3.29093
  9  1.0725e-05
  10  5.99244
  11  17.1541
  12  2.18787e-06
  13  3.74545
  14  14.6079
  15  9.02151e-07
  16  3.9118e-06
  17  3.98281e-06
  18  61.955
  19  8.08663
  20  0.00275889
  21  17.4005
  22  61.2878
  23  9.12027e-08
  24  15.0959
  25  9.45616
  26  0.198878
  27  0.248065
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  3.912e-06  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.270e+00  2.481e-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.956e-01  1.989e-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.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/494764/likelihoodResults_568771201_569030401_4FGL_J1320.7+3314_daily_bin1271.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) = 6721.55873676
delta logL = -0.000576651088522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6721.55816222
delta logL = -2.11896076507e-06

Fit tolerance = 1e-08

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

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

 FCN=   6721.558     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      249 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10483E-03    4.8367        .18142E-01** at limit **
   2  Index         2.3651        5.5538        .50000        .37011E-04
   3  Normalizat    .79563        .26848E-02    .26227E-03    .23104E-04
   4  Prefactor     1.2704        .33858E-02    .26710E-03   -.41286E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010483
  Index      = 2.36512
  Normalizat = 0.795626
  Prefactor  = 1.27043
 **********
 **   18 **HESSE 
 **********

 FCN=   6721.558     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10483E-03    209.22        .51617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3651        5.5451        .50000       -.55504    
   3  Normalizat    .79563        .17776E-01    .10491E-04   -1.0023    
   4  Prefactor     1.2704        .22417E-01    .10684E-04   -.84190    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.34362e-08
Minuit parameter uncertainties:
  1  0.0637996
  2  354.517
  3  0.0177763
  4  0.0224168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494764': 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) = 6721.55815893
delta logL = 1.17178115033e-06

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.048e-04  6.380e-02  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.365e+00  3.545e+02  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.270e+00  2.242e-02  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.956e-01  1.778e-02  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/494764/cmap_HighResolution_568771201_569030401_4FGL_J1320.7+3314_daily_bin1271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-03', job_status='DONE', photon_flux_upper_limit='6.11e-08', time_completed='2021-09-07 13:16:44.824982', job_id='494764', GAL2='1.27', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1631045804.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='1.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1271' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:16:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 494764: <4FGL_J1320.7+3314_daily_bin1271> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1271> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 13:00:54 2021
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:01:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 13:01:16 2021
Terminated at Tue Sep  7 13:16:45 2021
Results reported at Tue Sep  7 13:16:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1271 200.185 33.2378 568771201 569030401 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 :                                   798.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            951 sec.

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

