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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1397
RA = 200.185, Dec = 33.2378
tmin = 601430401, tmax = 601689601
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='495424', job_status='RUN', time_executed='2021-09-07 13:07:42.371604', time_epoch_executed='1631045262.37' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495424

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495424/ft1_4FGL_J1320.7+3314_daily_bin1397.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495424/ft2_4FGL_J1320.7+3314_daily_bin1397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/495424/ft1_4FGL_J1320.7+3314_daily_bin1397.fits outfile=/scratch/kocevski/495424/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1397.fits ra=200.185 dec=33.2378 rad=12.0 tmin=601430401.0 tmax=601689601.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.62
user 3.38
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/495424/ft1_filtered_4FGL_J1320.7+3314_daily_bin1397.fits" evtable="EVENTS" scfile=/scratch/kocevski/495424/ft2_4FGL_J1320.7+3314_daily_bin1397.fits sctable="SC_DATA" outfile=/scratch/kocevski/495424/ltcube_601430401_601689601_4FGL_J1320.7+3314_daily_bin1397.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/495424/ft2_4FGL_J1320.7+3314_daily_bin1397.fits
.....................!
real 16.07
user 15.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495424/ft1_filtered_4FGL_J1320.7+3314_daily_bin1397.fits evtable="EVENTS" scfile=/scratch/kocevski/495424/ft2_4FGL_J1320.7+3314_daily_bin1397.fits sctable="SC_DATA" expcube=/scratch/kocevski/495424/ltcube_601430401_601689601_4FGL_J1320.7+3314_daily_bin1397.fits outfile=/scratch/kocevski/495424/expmap_601430401_601689601_4FGL_J1320.7+3314_daily_bin1397.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/495424/ltcube_601430401_601689601_4FGL_J1320.7+3314_daily_bin1397.fits
.....................!
real 193.88
user 188.05
sys 5.16

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/495424/ft1_filtered_4FGL_J1320.7+3314_daily_bin1397.fits scfile=/scratch/kocevski/495424/ft2_4FGL_J1320.7+3314_daily_bin1397.fits outfile=/scratch/kocevski/495424/cmap_601430401_601689601_4FGL_J1320.7+3314_daily_bin1397.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.63
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/495424/ft1_filtered_4FGL_J1320.7+3314_daily_bin1397.fits scfile=/scratch/kocevski/495424/ft2_4FGL_J1320.7+3314_daily_bin1397.fits outfile=/scratch/kocevski/495424/cmap_HighResolution_601430401_601689601_4FGL_J1320.7+3314_daily_bin1397.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.64
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/495424/ft1_filtered_4FGL_J1320.7+3314_daily_bin1397.fits evtable="EVENTS" scfile=/scratch/kocevski/495424/ft2_4FGL_J1320.7+3314_daily_bin1397.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/495424/Model_4FGL_J1320.7+3314_daily_bin1397.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/495424/ft1_filtered_4FGL_J1320.7+3314_daily_bin1397.fits.....................!
real 54.95
user 53.31
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1698       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.625       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3138       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3171       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.4396       1.0000         .10000E-03   10000.    
     8 'norm      '    .10845E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.4537       1.0000         .10000E-03   10000.    
    11 'norm      '    8.4517       1.0000         .10000E-03   10000.    
    12 'norm      '    21.060       1.0000         .10000E-03   10000.    
    13 'norm      '    11.417       1.0000         .10000E-03   10000.    
    14 'norm      '    17.077       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.5239       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .70216E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1737       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .25192       1.0000         .10000E-03   10000.    
    24 'norm      '    .35693       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.1598       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1824       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0077       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=   6669.430     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     2831 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1697        4.4471       -.12082E-06    .71679E-05
   2  Prefactor     15.625        15.830       -.58408E-07   -.10332E-05
   3  Prefactor     .10000E-03    15.982       -.11917E-05** at limit **
   4  Prefactor     1.3123        3.3376       -.25259E-06    .47739E-04
   5  norm          1.3173        3.7624       -.18829E-06    .10276E-03
   6  Prefactor     .10000E-03    24.601       -.23773E-05** at limit **
   7  Prefactor     8.4367        15.393       -.17008E-06   -.17637E-04
   8  norm          .10000E-03    3.0673        .15879E-05** at limit **
   9  Prefactor     .10000E-03    10.245       -.33611E-07** at limit **
  10  norm          8.4525        5.4221       -.15177E-06    .19071E-04
  11  norm          8.4517        8.1785        .29432E-07    .10324E-04
  12  norm          21.060        7.9010       -.19890E-06   -.10505E-03
  13  norm          11.415        13.439       -.29260E-06   -.49570E-04
  14  norm          17.075        15.032       -.62789E-07   -.12802E-04
  15  Prefactor     .10000E-03    .68609        .11838E-06** at limit **
  16  Prefactor     .10000E-03    3.5614        .16354E-06** at limit **
  17  norm          .10000E-03    4.9879        .72751E-07** at limit **
  18  Prefactor     .10000E-03    14.987        .12976E-05** at limit **
  19  norm          6.5248        7.7576       -.18369E-06   -.16264E-04
  20  Prefactor     .10000E-03    37.041        .75415E-05** at limit **
  21  Prefactor     5.1812        14.078       -.65867E-06   -.13516E-04
  22  Prefactor     .10000E-03    59.184       -.58862E-05** at limit **
  23  Prefactor     .25605        1.8530        .32076E-06   -.21464E-03
  24  norm          .33776        8.4181       -.10337E-05    .27759E-04
  25  Prefactor     4.1587        10.950       -.43064E-05   -.22249E-04
  26  Normalizat    1.1824        .16622        .15833E-06   -.15837E-04
  27  Prefactor     1.0077        .20437        .55436E-06   -.13129E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.16969
  Prefactor  = 15.6245
  Prefactor  = 0.0001
  Prefactor  = 1.31227
  norm       = 1.31729
  Prefactor  = 0.0001
  Prefactor  = 8.43673
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 8.45248
  norm       = 8.45174
  norm       = 21.06
  norm       = 11.4153
  norm       = 17.0746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.52485
  Prefactor  = 0.000100001
  Prefactor  = 5.18117
  Prefactor  = 0.0001
  Prefactor  = 0.256048
  norm       = 0.337762
  Prefactor  = 4.15866
  Normalizat = 1.18241
  Prefactor  = 1.0077
 **********
 **   18 **HESSE 
 **********

 FCN=   6669.430     FROM HESSE     STATUS=OK           504 CALLS     3335 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1697        4.4506        .17368E-03   -1.5300    
   2  Prefactor     15.625        15.818        .10133E-03   -1.4917    
   3  Prefactor     .10000E-03    15.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3123        3.2760        .23040E-03   -1.5479    
   5  norm          1.3173        3.7207        .25163E-03   -1.5478    
   6  Prefactor     .10000E-03    24.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.4367        15.308        .13799E-03   -1.5127    
   8  norm          .10000E-03    15.226        .20581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.4525        5.4122        .13787E-03   -1.5126    
  11  norm          8.4517        8.1801        .13789E-03   -1.5126    
  12  norm          21.060        8.0258        .87280E-04   -1.4790    
  13  norm          11.415        13.647        .11857E-03   -1.5032    
  14  norm          17.075        15.005        .96919E-04   -1.4881    
  15  Prefactor     .10000E-03    .68866        .66073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.5662        .15053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.0967        .35542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.5248        7.7412        .15712E-03   -1.5197    
  20  Prefactor     .10000E-03    39.808        .35125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.1812        14.024        .17674E-03   -1.5253    
  22  Prefactor     .10000E-03    59.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .25605        6.5998        .21018E-02   -1.5607    
  24  norm          .33776        84.346        .43574E-02   -1.5592    
  25  Prefactor     4.1587        10.959        .98809E-03   -1.5300    
  26  Normalizat    1.1824        .19976        .22860E-03   -.87148    
  27  Prefactor     1.0077        .24715        .30395E-03   -.92473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19165e-08
Minuit parameter uncertainties:
  1  4.45099
  2  15.8225
  3  2.01659e-06
  4  3.2765
  5  3.72131
  6  1.54402e-05
  7  15.3154
  8  0.000290789
  9  3.34163e-05
  10  5.41254
  11  8.18119
  12  8.0262
  13  13.6505
  14  15.008
  15  2.99244e-06
  16  9.24382e-06
  17  3.41355e-06
  18  3.19066e-06
  19  7.74241
  20  0.00029703
  21  14.0327
  22  0.000119519
  23  2.5997
  24  10.6887
  25  10.9646
  26  0.199887
  27  0.247424
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.008e+00  2.474e-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.182e+00  1.999e-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: 4.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/495424/likelihoodResults_601430401_601689601_4FGL_J1320.7+3314_daily_bin1397.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) = 6669.43158485
delta logL = -0.00132058404688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6669.43026458
delta logL = -3.06651600113e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4854       1.0000          .0000       10.000    
     3 'Normalizat'    1.1826       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0075       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6669.430     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      262 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.768        .15377E-01** at limit **
   2  Index         1.7870        5.5998        .50000       -.65123E-06
   3  Normalizat    1.1824        .75897E-02    .22860E-03   -.19432E-03
   4  Prefactor     1.0077        .94401E-02    .30395E-03   -.14374E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.78697
  Normalizat = 1.18241
  Prefactor  = 1.0077
 **********
 **   18 **HESSE 
 **********

 FCN=   6669.430     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      289 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    164.55        .18295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7870        5.8738        .50000       -.69790    
   3  Normalizat    1.1824        .23869E-01    .45719E-04   -.87148    
   4  Prefactor     1.0077        .29689E-01    .12158E-04   -.92473    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.67208e-08
Minuit parameter uncertainties:
  1  1.89719e-05
  2  750.02
  3  0.0238696
  4  0.0296892
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495424': 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) = 6669.43025975
delta logL = 4.52203221357e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.008e+00  2.969e-02  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.182e+00  2.387e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 200.185 33.238

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/495424/cmap_HighResolution_601430401_601689601_4FGL_J1320.7+3314_daily_bin1397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-03', job_status='DONE', photon_flux_upper_limit='4.74e-08', time_completed='2021-09-07 13:20:41.481427', job_id='495424', GAL2='1.01', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1631046041.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.52e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1397' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:20:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 495424: <4FGL_J1320.7+3314_daily_bin1397> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1397> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep  7 13:05:22 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:05:24 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:05:24 2021
Terminated at Tue Sep  7 13:20:42 2021
Results reported at Tue Sep  7 13:20:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1397 200.185 33.2378 601430401 601689601 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 :                                   776.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            920 sec.

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

