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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1143
RA = 200.185, Dec = 33.2378
tmin = 535593601, tmax = 535852801
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='494609', job_status='RUN', time_executed='2021-09-07 13:02:50.868322', time_epoch_executed='1631044970.87' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1143'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494609

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494609/ft1_4FGL_J1320.7+3314_daily_bin1143.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494609/ft2_4FGL_J1320.7+3314_daily_bin1143.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494609/ft1_4FGL_J1320.7+3314_daily_bin1143.fits outfile=/scratch/kocevski/494609/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1143.fits ra=200.185 dec=33.2378 rad=12.0 tmin=535593601.0 tmax=535852801.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 5.10
user 4.81
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494609/ft1_filtered_4FGL_J1320.7+3314_daily_bin1143.fits" evtable="EVENTS" scfile=/scratch/kocevski/494609/ft2_4FGL_J1320.7+3314_daily_bin1143.fits sctable="SC_DATA" outfile=/scratch/kocevski/494609/ltcube_535593601_535852801_4FGL_J1320.7+3314_daily_bin1143.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/494609/ft2_4FGL_J1320.7+3314_daily_bin1143.fits
.....................!
real 17.26
user 16.85
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494609/ft1_filtered_4FGL_J1320.7+3314_daily_bin1143.fits evtable="EVENTS" scfile=/scratch/kocevski/494609/ft2_4FGL_J1320.7+3314_daily_bin1143.fits sctable="SC_DATA" expcube=/scratch/kocevski/494609/ltcube_535593601_535852801_4FGL_J1320.7+3314_daily_bin1143.fits outfile=/scratch/kocevski/494609/expmap_535593601_535852801_4FGL_J1320.7+3314_daily_bin1143.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/494609/ltcube_535593601_535852801_4FGL_J1320.7+3314_daily_bin1143.fits
.....................!
real 193.19
user 187.66
sys 4.38

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/494609/ft1_filtered_4FGL_J1320.7+3314_daily_bin1143.fits scfile=/scratch/kocevski/494609/ft2_4FGL_J1320.7+3314_daily_bin1143.fits outfile=/scratch/kocevski/494609/cmap_535593601_535852801_4FGL_J1320.7+3314_daily_bin1143.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=200.185 yref=33.2378 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.42
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494609/ft1_filtered_4FGL_J1320.7+3314_daily_bin1143.fits scfile=/scratch/kocevski/494609/ft2_4FGL_J1320.7+3314_daily_bin1143.fits outfile=/scratch/kocevski/494609/cmap_HighResolution_535593601_535852801_4FGL_J1320.7+3314_daily_bin1143.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=200.185 yref=33.2378 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.60
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/494609/ft1_filtered_4FGL_J1320.7+3314_daily_bin1143.fits evtable="EVENTS" scfile=/scratch/kocevski/494609/ft2_4FGL_J1320.7+3314_daily_bin1143.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/494609/Model_4FGL_J1320.7+3314_daily_bin1143.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/494609/ft1_filtered_4FGL_J1320.7+3314_daily_bin1143.fits.....................!
real 50.32
user 48.84
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11543E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .88149E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.573       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10193E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.816       1.0000         .10000E-03   10000.    
    10 'norm      '    .20743E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.8782       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1366       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.405       1.0000         .10000E-03   10000.    
    19 'norm      '    8.7662       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    87.796       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .88508       1.0000         .10000E-03   10000.    
    24 'norm      '    33.006       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .67953       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.6158       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=   5956.228     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3313 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.984       -.11231E-05** at limit **
   2  Prefactor     .10003E-03    19.442       -.41116E-06** at limit **
   3  Prefactor     48.562        76.895       -.36874E-06   -.68421E-04
   4  Prefactor     .10000E-03    4.6888       -.55358E-07** at limit **
   5  norm          .10000E-03    2.3410       -.19210E-06** at limit **
   6  Prefactor     .10000E-03    12.613       -.22024E-07** at limit **
   7  Prefactor     .10000E-03    31.280       -.23382E-06** at limit **
   8  norm          .10000E-03    .99080        .55204E-08** at limit **
   9  Prefactor     16.812        14.471        .17150E-06   -.33740E-03
  10  norm          .10006E-03    6.3345        .28838E-05** at limit **
  11  norm          .10000E-03    5.1014        .50254E-07** at limit **
  12  norm          5.8793        3.8734       -.32353E-07   -.33993E-03
  13  norm          .10000E-03    2.4935       -.48004E-08** at limit **
  14  norm          1.1357        31.026        .57697E-05    .12465E-03
  15  Prefactor     .10000E-03    1.0695       -.35081E-07** at limit **
  16  Prefactor     .10000E-03    10.645       -.11825E-05** at limit **
  17  norm          .10000E-03    3.0072       -.12033E-06** at limit **
  18  Prefactor     20.397        32.000       -.25763E-06   -.49978E-04
  19  norm          8.7677        9.2854        .29222E-07   -.50647E-04
  20  Prefactor     .10000E-03    9.4635        .72899E-06** at limit **
  21  Prefactor     .10000E-03    8.2413       -.12280E-06** at limit **
  22  Prefactor     87.796        74.637        .11471E-06   -.34450E-04
  23  Prefactor     .88448        2.9260        .19747E-05    .59559E-03
  24  norm          33.008        20.243        .12031E-06   -.69988E-04
  25  Prefactor     .10000E-03    32.753        .89986E-06** at limit **
  26  Normalizat    .67937        .17943       -.57508E-06   -.28686E-03
  27  Prefactor     1.6160        .22285       -.44508E-06   -.27759E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100034
  Prefactor  = 48.5622
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.8125
  norm       = 0.00010006
  norm       = 0.0001
  norm       = 5.87934
  norm       = 0.0001
  norm       = 1.13566
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 20.3967
  norm       = 8.76768
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 87.796
  Prefactor  = 0.884478
  norm       = 33.0076
  Prefactor  = 0.000100002
  Normalizat = 0.67937
  Prefactor  = 1.616
 **********
 **   18 **HESSE 
 **********

 FCN=   5956.228     FROM HESSE     STATUS=OK           484 CALLS     3797 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.122        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10003E-03    22.822        .10402       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     48.562        76.957        .57536E-04   -1.4313    
   4  Prefactor     .10000E-03    4.7283        .16286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.3505        .11510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    31.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .99281        .75016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.812        14.213        .97670E-04   -1.4888    
  10  norm          .10006E-03    12.819        .26040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.1184        .17025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.8793        3.8642        .11700E-03   -1.5223    
  13  norm          .10000E-03    2.4963        .11889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1357        32.749        .43691E-03   -1.5495    
  15  Prefactor     .10000E-03    1.0748        .77870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.0158        .13060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.397        31.996        .88669E-04   -1.4804    
  19  norm          8.7677        9.2714        .13538E-03   -1.5116    
  20  Prefactor     .10000E-03    9.5989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.2587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     87.796        74.769        .42879E-04   -1.3831    
  23  Prefactor     .88448        3.0208        .23978E-03   -1.5520    
  24  norm          33.008        20.252        .69748E-04   -1.4558    
  25  Prefactor     .10000E-03    33.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .67937        .21566        .28834E-03   -1.0471    
  27  Prefactor     1.6160        .26912        .24886E-03   -.74341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.87676e-09
Minuit parameter uncertainties:
  1  0.000390217
  2  0.00176068
  3  77.1146
  4  9.95921e-06
  5  9.15488e-06
  6  1.01369e-05
  7  8.04052e-05
  8  2.6009e-08
  9  14.2162
  10  0.00175861
  11  7.61181e-06
  12  3.86436
  13  5.51071e-07
  14  12.2038
  15  2.15057e-06
  16  0.000336618
  17  1.10469e-05
  18  32.0228
  19  9.27294
  20  0.000208579
  21  4.24815e-05
  22  74.8498
  23  3.0213
  24  20.2566
  25  0.0004773
  26  0.21593
  27  0.269363
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  3.366e-04  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.616e+00  2.694e-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.794e-01  2.159e-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.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/494609/likelihoodResults_535593601_535852801_4FGL_J1320.7+3314_daily_bin1143.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) = 5956.22865935
delta logL = -0.000433990079728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5955.83372237
delta logL = 0.394502992945

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76064E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    6.3197       1.0000          .0000       10.000    
     3 'Normalizat'    .61616       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6700       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=   5955.834     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      334 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74272E-02    .14271        .17381E-02    .14356E-01
   2  Index         6.3308        2.8260        .11756        .17337E-03
   3  Normalizat    .61634        .33001E-01    .68152E-01    .35701E-04
   4  Prefactor     1.6699        .41988E-01    .55539E-01    .39614E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00742721
  Index      = 6.33077
  Normalizat = 0.616342
  Prefactor  = 1.66986
 **********
 **   18 **HESSE 
 **********

 FCN=   5955.834     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      369 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74272E-02    .51141        .78412E-04   -1.5691    
   2  Index         6.3308        8.0460        .65029E-02    .26940    
   3  Normalizat    .61634        .13647        .30161E-03   -1.0729    
   4  Prefactor     1.6699        .17060        .24555E-03   -.72887    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.74873e-11
Minuit parameter uncertainties:
  1  0.12243
  2  7.3738
  3  0.136543
  4  0.170658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494609': 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) = 5955.833719
delta logL = 0.394506362343

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  7.427e-03  1.224e-01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  6.331e+00  7.374e+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.670e+00  1.707e-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.163e-01  1.365e-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/494609/cmap_HighResolution_535593601_535852801_4FGL_J1320.7+3314_daily_bin1143.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-03', job_status='DONE', photon_flux_upper_limit='6.70e-08', time_completed='2021-09-07 13:15:46.805597', job_id='494609', GAL2='1.67', fit_tolerance='1e-08', EG2='0.62', EG='0.68', time_epoch_completed='1631045746.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.62', dlogl='3.95e-01', ts2='0.87', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1143' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:15:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 494609: <4FGL_J1320.7+3314_daily_bin1143> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1143> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 13:00:34 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:00:39 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:00:39 2021
Terminated at Tue Sep  7 13:15:47 2021
Results reported at Tue Sep  7 13:15:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1143 200.185 33.2378 535593601 535852801 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 :                                   773.48 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            913 sec.

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

