/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 1 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 = 7554
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1320.7+3314_daily_bin211
RA = 200.185, Dec = 33.2378
tmin = 294019201, tmax = 294278401
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='489063', job_status='RUN', time_executed='2021-09-07 12:40:37.821130', time_epoch_executed='1631043637.82' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/489063

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/489063/ft1_4FGL_J1320.7+3314_daily_bin211.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/489063/ft2_4FGL_J1320.7+3314_daily_bin211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/489063/ft1_4FGL_J1320.7+3314_daily_bin211.fits outfile=/scratch/kocevski/489063/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin211.fits ra=200.185 dec=33.2378 rad=12.0 tmin=294019201.0 tmax=294278401.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.23
user 3.03
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/489063/ft1_filtered_4FGL_J1320.7+3314_daily_bin211.fits" evtable="EVENTS" scfile=/scratch/kocevski/489063/ft2_4FGL_J1320.7+3314_daily_bin211.fits sctable="SC_DATA" outfile=/scratch/kocevski/489063/ltcube_294019201_294278401_4FGL_J1320.7+3314_daily_bin211.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/489063/ft2_4FGL_J1320.7+3314_daily_bin211.fits
.....................!
real 17.45
user 17.02
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/489063/ft1_filtered_4FGL_J1320.7+3314_daily_bin211.fits evtable="EVENTS" scfile=/scratch/kocevski/489063/ft2_4FGL_J1320.7+3314_daily_bin211.fits sctable="SC_DATA" expcube=/scratch/kocevski/489063/ltcube_294019201_294278401_4FGL_J1320.7+3314_daily_bin211.fits outfile=/scratch/kocevski/489063/expmap_294019201_294278401_4FGL_J1320.7+3314_daily_bin211.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/489063/ltcube_294019201_294278401_4FGL_J1320.7+3314_daily_bin211.fits
.....................!
real 192.94
user 187.89
sys 4.45

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/489063/ft1_filtered_4FGL_J1320.7+3314_daily_bin211.fits scfile=/scratch/kocevski/489063/ft2_4FGL_J1320.7+3314_daily_bin211.fits outfile=/scratch/kocevski/489063/cmap_294019201_294278401_4FGL_J1320.7+3314_daily_bin211.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.56
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/489063/ft1_filtered_4FGL_J1320.7+3314_daily_bin211.fits scfile=/scratch/kocevski/489063/ft2_4FGL_J1320.7+3314_daily_bin211.fits outfile=/scratch/kocevski/489063/cmap_HighResolution_294019201_294278401_4FGL_J1320.7+3314_daily_bin211.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/489063/ft1_filtered_4FGL_J1320.7+3314_daily_bin211.fits evtable="EVENTS" scfile=/scratch/kocevski/489063/ft2_4FGL_J1320.7+3314_daily_bin211.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/489063/Model_4FGL_J1320.7+3314_daily_bin211.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/489063/ft1_filtered_4FGL_J1320.7+3314_daily_bin211.fits.....................!
real 52.84
user 51.35
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4438       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.586       1.0000         .10000E-03   10000.    
     3 'Prefactor '    58.634       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10887E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1284       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11075E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.6481       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.242       1.0000         .10000E-03   10000.    
    10 'norm      '    4.2684       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.1715       1.0000         .10000E-03   10000.    
    13 'norm      '    15.350       1.0000         .10000E-03   10000.    
    14 'norm      '    8.8108       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14464E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .23336       1.0000         .10000E-03   10000.    
    18 'Prefactor '    79.508       1.0000         .10000E-03   10000.    
    19 'norm      '    4.9775       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.495       1.0000         .10000E-03   10000.    
    22 'Prefactor '    77.535       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.9337       1.0000         .10000E-03   10000.    
    24 'norm      '    15.331       1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.307       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4446       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .54609       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=   6236.305     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3313 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4438        8.6046       -.73268E-06   -.65579E-04
   2  Prefactor     11.586        12.381       -.14788E-05    .21954E-04
   3  Prefactor     58.620        53.327        .13449E-04    .21851E-04
   4  Prefactor     .10000E-03    2.3430       -.69321E-07** at limit **
   5  norm          .10000E-03    3.1728        .11078E-06** at limit **
   6  Prefactor     4.1198        34.015        .25980E-04   -.24486E-04
   7  Prefactor     .10000E-03    27.743        .22180E-06** at limit **
   8  norm          2.6481        3.3829        .10223E-06   -.28681E-03
   9  Prefactor     26.251        17.160        .19628E-05    .99753E-04
  10  norm          4.2695        4.1004       -.28216E-06    .11410E-03
  11  norm          .10000E-03    3.6871       -.38628E-07** at limit **
  12  norm          5.1824        7.9825       -.10059E-04   -.36008E-03
  13  norm          15.343        11.964        .95681E-05    .71337E-04
  14  norm          8.8129        18.907       -.94321E-05    .26525E-04
  15  Prefactor     .10000E-03    2.4266       -.48504E-06** at limit **
  16  Prefactor     .10000E-03    15.413        .15960E-06** at limit **
  17  norm          .21078        7.8938       -.77033E-06    .29903E-03
  18  Prefactor     79.695        72.534        .13510E-04    .10209E-03
  19  norm          4.9794        7.4640        .89855E-06    .81187E-04
  20  Prefactor     .10000E-03    9.9093        .11512E-06** at limit **
  21  Prefactor     23.498        20.186       -.30871E-06    .43825E-04
  22  Prefactor     77.554        59.829       -.91976E-05    .23811E-04
  23  Prefactor     3.9346        4.1112       -.50831E-06   -.23695E-03
  24  norm          15.332        15.894       -.66381E-06   -.50021E-03
  25  Prefactor     22.308        23.449        .66765E-06    .56363E-05
  26  Normalizat    1.4443        .18596        .21649E-05    .14406E-03
  27  Prefactor     .54652        .21164       -.24847E-05    .16547E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.44382
  Prefactor  = 11.586
  Prefactor  = 58.62
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.11983
  Prefactor  = 0.000100001
  norm       = 2.64807
  Prefactor  = 26.2513
  norm       = 4.26948
  norm       = 0.0001
  norm       = 5.1824
  norm       = 15.3425
  norm       = 8.81294
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.210777
  Prefactor  = 79.6945
  norm       = 4.97936
  Prefactor  = 0.0001
  Prefactor  = 23.4981
  Prefactor  = 77.5544
  Prefactor  = 3.93456
  norm       = 15.3321
  Prefactor  = 22.3083
  Normalizat = 1.4443
  Prefactor  = 0.546523
 **********
 **   18 **HESSE 
 **********

 FCN=   6236.305     FROM HESSE     STATUS=OK           498 CALLS     3811 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4438        8.6022        .14700E-03   -1.5162    
   2  Prefactor     11.586        12.380        .11770E-03   -1.5027    
   3  Prefactor     58.620        53.317        .26197E-03   -1.4175    
   4  Prefactor     .10000E-03    2.3473        .11799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.2088        .13713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1198        33.572        .19839E-03   -1.5302    
   7  Prefactor     .10000E-03    27.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.6481        3.3687        .15779E-03   -1.5382    
   9  Prefactor     26.251        17.160        .78201E-04   -1.4683    
  10  norm          4.2695        4.0912        .14939E-03   -1.5295    
  11  norm          .10000E-03    3.6888        .14810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.1824        8.0151        .17678E-03   -1.5253    
  13  norm          15.343        12.074        .10223E-03   -1.4924    
  14  norm          8.8129        19.119        .13504E-03   -1.5114    
  15  Prefactor     .10000E-03    3.9343        .22244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .21078        76.809        .37862E-02   -1.5616    
  18  Prefactor     79.695        70.091        .45040E-04   -1.3920    
  19  norm          4.9794        7.7247        .18026E-03   -1.5262    
  20  Prefactor     .10000E-03    9.9429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.498        20.194        .82638E-04   -1.4738    
  22  Prefactor     77.554        59.979        .45605E-04   -1.3944    
  23  Prefactor     3.9346        4.1142        .15591E-03   -1.5311    
  24  norm          15.332        15.941        .51145E-03   -1.4925    
  25  Prefactor     22.308        23.452        .84808E-04   -1.4763    
  26  Normalizat    1.4443        .21617        .20989E-03   -.79356    
  27  Prefactor     .54652        .24037        .38231E-03   -1.0989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60055e-09
Minuit parameter uncertainties:
  1  8.60361
  2  12.3824
  3  53.3607
  4  5.53974e-06
  5  2.00791e-05
  6  23.5388
  7  0.000257416
  8  3.36895
  9  17.1627
  10  4.09151
  11  4.92531e-06
  12  8.01675
  13  12.076
  14  19.132
  15  0.000101229
  16  4.99703e-05
  17  8.05576
  18  70.1643
  19  7.72623
  20  2.63325e-05
  21  20.1999
  22  60.0254
  23  4.11452
  24  15.9452
  25  23.4617
  26  0.216307
  27  0.24082
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  4.997e-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.465e-01  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:  1.444e+00  2.163e-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.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/489063/likelihoodResults_294019201_294278401_4FGL_J1320.7+3314_daily_bin211.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) = 6236.30563743
delta logL = -0.000307247382807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6235.91109733
delta logL = 0.394232849531

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61418E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    6.3862       1.0000          .0000       10.000    
     3 'Normalizat'    1.3905       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58933       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=   6235.911     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      320 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60522E-02    .11641        .16484E-02    .11947E-01
   2  Index         6.3942        2.7971        .11957        .15085E-03
   3  Normalizat    1.3906        .31948E-01    .48182E-01    .23666E-04
   4  Prefactor     .58928        .37817E-01    .83372E-01    .47598E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00605219
  Index      = 6.39422
  Normalizat = 1.39065
  Prefactor  = 0.589283
 **********
 **   18 **HESSE 
 **********

 FCN=   6235.911     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      353 TOTAL
                     EDM=   .92E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60522E-02    .44508        .74364E-04   -1.5693    
   2  Index         6.3942        8.1048        .67768E-02    .28259    
   3  Normalizat    1.3906        .13200        .21300E-03   -.80900    
   4  Prefactor     .58928        .15331        .36929E-03   -1.0804    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.19896e-08
Minuit parameter uncertainties:
  1  0.102942
  2  7.59066
  3  0.132037
  4  0.15342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/489063': 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) = 6235.91109061
delta logL = 0.394239565476

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  6.052e-03  1.029e-01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  6.394e+00  7.591e+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.893e-01  1.534e-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.391e+00  1.320e-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/489063/cmap_HighResolution_294019201_294278401_4FGL_J1320.7+3314_daily_bin211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.60e-03', job_status='DONE', photon_flux_upper_limit='8.49e-08', time_completed='2021-09-07 12:53:53.544475', job_id='489063', GAL2='0.59', fit_tolerance='1e-08', EG2='1.39', EG='1.44', time_epoch_completed='1631044433.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='3.94e-01', ts2='0.85', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='211' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:53:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 489063: <4FGL_J1320.7+3314_daily_bin211> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin211> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 12:40:20 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:40:28 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:40:28 2021
Terminated at Tue Sep  7 12:53:54 2021
Results reported at Tue Sep  7 12:53:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin211 200.185 33.2378 294019201 294278401 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 :                                   794.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            814 sec.

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

