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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1024
RA = 200.185, Dec = 33.2378
tmin = 504748801, tmax = 505008001
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='493670', job_status='RUN', time_executed='2021-09-07 12:59:30.441341', time_epoch_executed='1631044770.44' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1024'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493670

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493670/ft1_4FGL_J1320.7+3314_daily_bin1024.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493670/ft2_4FGL_J1320.7+3314_daily_bin1024.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493670/ft1_4FGL_J1320.7+3314_daily_bin1024.fits outfile=/scratch/kocevski/493670/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1024.fits ra=200.185 dec=33.2378 rad=12.0 tmin=504748801.0 tmax=505008001.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 8.34
user 7.99
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/493670/ft2_4FGL_J1320.7+3314_daily_bin1024.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/493670/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1024.fits evtable="EVENTS" outfile="/scratch/kocevski/493670/ft1_filtered_4FGL_J1320.7+3314_daily_bin1024.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493670/ft1_filtered_4FGL_J1320.7+3314_daily_bin1024.fits" evtable="EVENTS" scfile=/scratch/kocevski/493670/ft2_4FGL_J1320.7+3314_daily_bin1024.fits sctable="SC_DATA" outfile=/scratch/kocevski/493670/ltcube_504748801_505008001_4FGL_J1320.7+3314_daily_bin1024.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/493670/ft2_4FGL_J1320.7+3314_daily_bin1024.fits
.....................!
real 15.37
user 14.87
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493670/ft1_filtered_4FGL_J1320.7+3314_daily_bin1024.fits evtable="EVENTS" scfile=/scratch/kocevski/493670/ft2_4FGL_J1320.7+3314_daily_bin1024.fits sctable="SC_DATA" expcube=/scratch/kocevski/493670/ltcube_504748801_505008001_4FGL_J1320.7+3314_daily_bin1024.fits outfile=/scratch/kocevski/493670/expmap_504748801_505008001_4FGL_J1320.7+3314_daily_bin1024.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/493670/ltcube_504748801_505008001_4FGL_J1320.7+3314_daily_bin1024.fits
.....................!
real 193.27
user 188.43
sys 4.17

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/493670/ft1_filtered_4FGL_J1320.7+3314_daily_bin1024.fits scfile=/scratch/kocevski/493670/ft2_4FGL_J1320.7+3314_daily_bin1024.fits outfile=/scratch/kocevski/493670/cmap_504748801_505008001_4FGL_J1320.7+3314_daily_bin1024.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.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493670/ft1_filtered_4FGL_J1320.7+3314_daily_bin1024.fits scfile=/scratch/kocevski/493670/ft2_4FGL_J1320.7+3314_daily_bin1024.fits outfile=/scratch/kocevski/493670/cmap_HighResolution_504748801_505008001_4FGL_J1320.7+3314_daily_bin1024.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/493670/ft1_filtered_4FGL_J1320.7+3314_daily_bin1024.fits evtable="EVENTS" scfile=/scratch/kocevski/493670/ft2_4FGL_J1320.7+3314_daily_bin1024.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/493670/Model_4FGL_J1320.7+3314_daily_bin1024.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/493670/ft1_filtered_4FGL_J1320.7+3314_daily_bin1024.fits.....................!
real 41.49
user 39.91
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7059       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7792       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18169E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .64132       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.328       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3956       1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    46.418       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8695       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10241E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.313       1.0000         .10000E-03   10000.    
    19 'norm      '    3.1139       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.690       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    24.532       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .85898       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1138       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=   4387.402     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3253 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7058        11.164        .86657E-06   -.16605E-03
   2  Prefactor     3.7758        14.877       -.82885E-06   -.99491E-04
   3  Prefactor     .10000E-03    33.284        .44481E-06** at limit **
   4  Prefactor     .10000E-03    8.6684        .18168E-05** at limit **
   5  norm          .65344        7.1252        .69859E-06   -.14422E-03
   6  Prefactor     .10000E-03    24.656        .24457E-06** at limit **
   7  Prefactor     49.251        38.522       -.66715E-06   -.36640E-03
   8  norm          .10000E-03    1.6363       -.18043E-07** at limit **
   9  Prefactor     4.3908        29.154       -.58447E-05   -.77413E-04
  10  norm          .10000E-03    2.1119        .12876E-06** at limit **
  11  norm          .10000E-03    10.415        .67343E-08** at limit **
  12  norm          .10000E-03    1.4504       -.44643E-07** at limit **
  13  norm          .10000E-03    1.7627       -.10741E-07** at limit **
  14  norm          46.419        29.741       -.26138E-06   -.69244E-04
  15  Prefactor     5.8702        4.7059        .48468E-06   -.58360E-03
  16  Prefactor     .10000E-03    8.8651        .31998E-06** at limit **
  17  norm          .10000E-03    3.9481        .13142E-08** at limit **
  18  Prefactor     51.308        74.271       -.61113E-06   -.67606E-04
  19  norm          3.1135        11.329        .32752E-05   -.34247E-03
  20  Prefactor     .10000E-03    8.8204       -.44923E-06** at limit **
  21  Prefactor     25.693        27.831       -.33765E-06   -.14782E-03
  22  Prefactor     .10000E-03    21.923        .82714E-06** at limit **
  23  Prefactor     .10000E-03    3.0260       -.65960E-07** at limit **
  24  norm          24.533        19.866       -.51782E-07   -.12576E-03
  25  Prefactor     .10000E-03    26.981       -.13558E-05** at limit **
  26  Normalizat    .85875        .19647       -.55648E-06   -.33585E-03
  27  Prefactor     1.1140        .23169       -.25744E-06   -.26684E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.70577
  Prefactor  = 3.77577
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.653438
  Prefactor  = 0.0001
  Prefactor  = 49.251
  norm       = 0.0001
  Prefactor  = 4.39082
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 46.4193
  Prefactor  = 5.87018
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 51.3077
  norm       = 3.11354
  Prefactor  = 0.0001
  Prefactor  = 25.6932
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 24.5329
  Prefactor  = 0.000100004
  Normalizat = 0.858745
  Prefactor  = 1.11395
 **********
 **   18 **HESSE 
 **********

 FCN=   4387.402     FROM HESSE     STATUS=OK           478 CALLS     3731 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7058        11.172        .84078E-03   -1.5230    
   2  Prefactor     3.7758        14.885        .20766E-03   -1.5319    
   3  Prefactor     .10000E-03    33.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.870        .35396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .65344        14.073        .29148E-02   -1.5546    
   6  Prefactor     .10000E-03    24.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     49.251        38.204        .57097E-04   -1.4303    
   8  norm          .10000E-03    1.6416        .82732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.3908        31.203        .19210E-03   -1.5289    
  10  norm          .10000E-03    2.1169        .94034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    10.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.4572        .77824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.7633        .85880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          46.419        29.723        .58851E-04   -1.4344    
  15  Prefactor     5.8702        4.6910        .57256E-03   -1.5223    
  16  Prefactor     .10000E-03    8.9205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.9656        .12852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     51.308        74.287        .55987E-04   -1.4274    
  19  norm          3.1135        11.530        .11489E-02   -1.5355    
  20  Prefactor     .10000E-03    8.8661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.693        27.893        .79035E-04   -1.4694    
  22  Prefactor     .10000E-03    22.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.0557        .11244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          24.533        19.895        .80876E-04   -1.4717    
  25  Prefactor     .10000E-03    27.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .85875        .23581        .24258E-03   -.97925    
  27  Prefactor     1.1140        .27896        .26266E-03   -.89022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95018e-08
Minuit parameter uncertainties:
  1  11.1757
  2  14.8995
  3  0.000277573
  4  0.000370875
  5  6.06608
  6  0.000127443
  7  38.2233
  8  2.81513e-07
  9  23.4272
  10  8.7248e-06
  11  4.06546e-06
  12  1.04896e-06
  13  2.05663e-07
  14  29.7324
  15  4.69132
  16  0.000111384
  17  6.52872e-06
  18  74.4211
  19  11.5379
  20  0.000119917
  21  27.9069
  22  0.000415197
  23  8.52968e-07
  24  19.9002
  25  0.000670428
  26  0.236093
  27  0.279329
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  1.114e-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.114e+00  2.793e-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:  8.587e-01  2.361e-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.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/493670/likelihoodResults_504748801_505008001_4FGL_J1320.7+3314_daily_bin1024.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) = 4387.40228274
delta logL = -0.00053358785317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4387.40174916
delta logL = -4.44106262876e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5097       1.0000          .0000       10.000    
     3 'Normalizat'    .85875       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1140       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=   4387.402     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      206 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    605.24        .90712E-02** at limit **
   2  Index         2.5110        5.0777        .50000       -.13934E-05
   3  Normalizat    .85875        .18748        .44372E-01    .49303E-06
   4  Prefactor     1.1140        .22818        .59393E-01    .45274E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.51102
  Normalizat = 0.858746
  Prefactor  = 1.11395
 **********
 **   18 **HESSE 
 **********

 FCN=   4387.402     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    95.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5110        7.7665        .50000       -.52105    
   3  Normalizat    .85875        .22289        .24258E-03   -.97925    
   4  Prefactor     1.1140        .27244        .26266E-03   -.89022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07939e-11
Minuit parameter uncertainties:
  1  1.00033e-06
  2  14.2024
  3  0.223132
  4  0.272781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493670': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4387.40174915
delta logL = 8.88576323632e-10

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  1.000e-06  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.511e+00  1.420e+01  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.114e+00  2.728e-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:  8.587e-01  2.231e-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/493670/cmap_HighResolution_504748801_505008001_4FGL_J1320.7+3314_daily_bin1024.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.70e-03', job_status='DONE', photon_flux_upper_limit='8.60e-08', time_completed='2021-09-07 13:10:28.729479', job_id='493670', GAL2='1.11', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631045428.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='8.89e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1024' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:10:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 493670: <4FGL_J1320.7+3314_daily_bin1024> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1024> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:55:48 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:56:13 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:56:13 2021
Terminated at Tue Sep  7 13:10:29 2021
Results reported at Tue Sep  7 13:10:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1024 200.185 33.2378 504748801 505008001 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 :                                   650.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            881 sec.

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

