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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin355
RA = 200.185, Dec = 33.2378
tmin = 331344001, tmax = 331603201
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='489279', job_status='RUN', time_executed='2021-09-07 12:42:59.379704', time_epoch_executed='1631043779.38' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='355'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/489279

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/489279/ft1_4FGL_J1320.7+3314_daily_bin355.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/489279/ft2_4FGL_J1320.7+3314_daily_bin355.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/489279/ft1_4FGL_J1320.7+3314_daily_bin355.fits outfile=/scratch/kocevski/489279/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin355.fits ra=200.185 dec=33.2378 rad=12.0 tmin=331344001.0 tmax=331603201.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.36
user 3.12
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/489279/ft1_filtered_4FGL_J1320.7+3314_daily_bin355.fits" evtable="EVENTS" scfile=/scratch/kocevski/489279/ft2_4FGL_J1320.7+3314_daily_bin355.fits sctable="SC_DATA" outfile=/scratch/kocevski/489279/ltcube_331344001_331603201_4FGL_J1320.7+3314_daily_bin355.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/489279/ft2_4FGL_J1320.7+3314_daily_bin355.fits
.....................!
real 17.74
user 17.32
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/489279/ft1_filtered_4FGL_J1320.7+3314_daily_bin355.fits evtable="EVENTS" scfile=/scratch/kocevski/489279/ft2_4FGL_J1320.7+3314_daily_bin355.fits sctable="SC_DATA" expcube=/scratch/kocevski/489279/ltcube_331344001_331603201_4FGL_J1320.7+3314_daily_bin355.fits outfile=/scratch/kocevski/489279/expmap_331344001_331603201_4FGL_J1320.7+3314_daily_bin355.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/489279/ltcube_331344001_331603201_4FGL_J1320.7+3314_daily_bin355.fits
.....................!
real 194.63
user 188.56
sys 5.51

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/489279/ft1_filtered_4FGL_J1320.7+3314_daily_bin355.fits scfile=/scratch/kocevski/489279/ft2_4FGL_J1320.7+3314_daily_bin355.fits outfile=/scratch/kocevski/489279/cmap_331344001_331603201_4FGL_J1320.7+3314_daily_bin355.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/489279/ft1_filtered_4FGL_J1320.7+3314_daily_bin355.fits scfile=/scratch/kocevski/489279/ft2_4FGL_J1320.7+3314_daily_bin355.fits outfile=/scratch/kocevski/489279/cmap_HighResolution_331344001_331603201_4FGL_J1320.7+3314_daily_bin355.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.53
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/489279/ft1_filtered_4FGL_J1320.7+3314_daily_bin355.fits evtable="EVENTS" scfile=/scratch/kocevski/489279/ft2_4FGL_J1320.7+3314_daily_bin355.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/489279/Model_4FGL_J1320.7+3314_daily_bin355.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/489279/ft1_filtered_4FGL_J1320.7+3314_daily_bin355.fits.....................!
real 44.11
user 42.48
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.087       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .24127       1.0000         .10000E-03   10000.    
    11 'norm      '    .48330E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .18221E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    14.857       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1696       1.0000         .10000E-03   10000.    
    17 'norm      '    6.8148       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.4688       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.712       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12598E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .58212       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .88240       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0518       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=   5206.107     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3417 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7746        .30044E-07** at limit **
   2  Prefactor     .10000E-03    5.8320        .11354E-08** at limit **
   3  Prefactor     32.053        60.799        .71834E-05    .27045E-04
   4  Prefactor     .10000E-03    1.4105       -.89435E-08** at limit **
   5  norm          .10000E-03    3.5633       -.52576E-07** at limit **
   6  Prefactor     .10000E-03    30.458       -.11886E-05** at limit **
   7  Prefactor     .10000E-03    15.279        .30473E-05** at limit **
   8  norm          .10000E-03    1.9238       -.21334E-07** at limit **
   9  Prefactor     .10000E-03    3.4815        .19174E-07** at limit **
  10  norm          .23965        2.1175        .17256E-07   -.88350E-04
  11  norm          .10579E-03    9.4325       -.37417E-07** at limit **
  12  norm          .10001E-03    1.8432       -.43228E-06** at limit **
  13  norm          .10000E-03    2.8868       -.91419E-08** at limit **
  14  norm          14.856        21.148       -.56190E-07   -.42340E-06
  15  Prefactor     .10000E-03    1.8492       -.45485E-07** at limit **
  16  Prefactor     5.1653        12.898        .88937E-06    .90878E-04
  17  norm          6.8148        9.4551       -.11202E-05   -.51242E-04
  18  Prefactor     .10000E-03    39.600        .13736E-05** at limit **
  19  norm          5.4686        10.659       -.91241E-06   -.33361E-04
  20  Prefactor     .10000E-03    38.372       -.49900E-06** at limit **
  21  Prefactor     .10000E-03    23.965        .90318E-06** at limit **
  22  Prefactor     15.724        70.755       -.56096E-05   -.19097E-05
  23  Prefactor     .10000E-03    1.5179        .69545E-07** at limit **
  24  norm          .10000E-03    16.497       -.22114E-05** at limit **
  25  Prefactor     .57890        4.0315        .89594E-06   -.51982E-03
  26  Normalizat    .88220        .16247       -.64161E-07    .10692E-03
  27  Prefactor     1.0521        .19883       -.16813E-07    .83986E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.0533
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.239646
  norm       = 0.000105788
  norm       = 0.000100006
  norm       = 0.0001
  norm       = 14.8558
  Prefactor  = 0.0001
  Prefactor  = 5.1653
  norm       = 6.81481
  Prefactor  = 0.0001
  norm       = 5.4686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7235
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.578898
  Normalizat = 0.882204
  Prefactor  = 1.05205
 **********
 **   18 **HESSE 
 **********

 FCN=   5206.107     FROM HESSE     STATUS=OK           504 CALLS     3921 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8134        .16933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.8356        .17018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.053        60.786        .70736E-04   -1.4575    
   4  Prefactor     .10000E-03    1.4127        .83685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.6753        .26560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.9777        .19539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4846        .13148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .23965        4.2221        .20379E-02   -1.5610    
  11  norm          .10579E-03    12.233        .74600E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    14.000        .18014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8990        .11960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          14.856        21.132        .10391E-03   -1.4937    
  15  Prefactor     .10000E-03    3.0276        .17951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.1653        12.101        .17681E-03   -1.5253    
  17  norm          6.8148        9.3724        .15370E-03   -1.5186    
  18  Prefactor     .10000E-03    39.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.4686        10.560        .17182E-03   -1.5240    
  20  Prefactor     .10000E-03    39.393        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.724        72.121        .10104E-03   -1.4915    
  23  Prefactor     .10000E-03    13.061        .17168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    16.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .57890        11.280        .12894       -1.5556    
  26  Normalizat    .88220        .19160        .21281E-03   -.97088    
  27  Prefactor     1.0521        .23601        .24977E-03   -.91014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04188e-08
Minuit parameter uncertainties:
  1  2.64804e-06
  2  4.56947e-07
  3  60.9039
  4  2.77882e-07
  5  3.14173e-05
  6  1.70318e-05
  7  1.9914e-05
  8  1.32951e-06
  9  7.88099e-08
  10  2.01153
  11  0.0168334
  12  0.00056025
  13  2.89763e-07
  14  21.1424
  15  2.00188e-05
  16  12.1069
  17  9.37444
  18  1.83951e-05
  19  10.5633
  20  1.41172e-05
  21  3.17012e-05
  22  67.4841
  23  0.0001225
  24  1.05463e-05
  25  5.11132
  26  0.191749
  27  0.236242
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  5.165e+00  1.211e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.508e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.052e+00  2.362e-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.822e-01  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.21
Ra Dec: 200.185 33.238
Photon Flux Upper Limit: 8.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/489279/likelihoodResults_331344001_331603201_4FGL_J1320.7+3314_daily_bin355.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5206.09290975
delta logL = 0.0142520685013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5206.08196857
delta logL = 0.0251932491692

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0685       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9683       1.0000          .0000       10.000    
     3 'Normalizat'    .87374       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0599       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5206.082     FROM MIGRAD    STATUS=FAILED        87 CALLS      243 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0668        2213.3        .23157E-03   -.88743E-03
   2  Index         2.9683        6.0022        .86876E-02   -.22672E-03
   3  Normalizat    .87371        .37375        .21376E-03    .98203E-03
   4  Prefactor     1.0599        .48430        .24911E-03    .89473E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5206.082     FROM SIMPLEX   STATUS=UNCHANGED    104 CALLS      347 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0668        2213.3        .26025E-03   -1.5358    
   2  Index         2.9683        6.0022        .16097E-02   -.41843    
   3  Normalizat    .87371        .37375        .15306E-03   -.97390    
   4  Prefactor     1.0599        .48430        .11779E-03   -.90758    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5206.082     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      375 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0661        15.167        .92627E-05   -.12536E-02
   2  Index         2.9685        2.3487        .34751E-03   -.18109E-03
   3  Normalizat    .87370        .18793        .42752E-04    .93935E-03
   4  Prefactor     1.0599        .23486        .49821E-04    .87022E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.06612
  Index      = 2.96848
  Normalizat = 0.873704
  Prefactor  = 1.05991
 **********
 **   18 **HESSE 
 **********

 FCN=   5206.082     FROM HESSE     STATUS=OK            23 CALLS      398 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0661        14.787        .18525E-05   -1.5358    
   2  Index         2.9685        2.3211        .69501E-04   -.41841    
   3  Normalizat    .87370        .18793        .85503E-05   -.97390    
   4  Prefactor     1.0599        .23485        .99643E-05   -.90758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93638e-09
Minuit parameter uncertainties:
  1  13.4722
  2  2.43468
  3  0.188068
  4  0.235074
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/489279': 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) = 5206.08196853
delta logL = 0.0251932952751

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  3.066e+00  1.347e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.968e+00  2.435e+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.060e+00  2.351e-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.737e-01  1.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
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/489279/cmap_HighResolution_331344001_331603201_4FGL_J1320.7+3314_daily_bin355.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-03', job_status='DONE', photon_flux_upper_limit='8.70e-08', time_completed='2021-09-07 12:55:09.918083', job_id='489279', GAL2='1.06', fit_tolerance='1e-08', EG2='0.87', EG='0.88', time_epoch_completed='1631044509.92', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.52e-02', ts2='0.27', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='355' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:55:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 489279: <4FGL_J1320.7+3314_daily_bin355> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin355> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 12:40:35 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:42:50 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:42:50 2021
Terminated at Tue Sep  7 12:55:10 2021
Results reported at Tue Sep  7 12:55:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin355 200.185 33.2378 331344001 331603201 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 :                                   729.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            875 sec.

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

