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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1075
RA = 200.185, Dec = 33.2378
tmin = 517968001, tmax = 518227201
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='493748', job_status='RUN', time_executed='2021-09-07 12:58:31.280548', time_epoch_executed='1631044711.28' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1075'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493748

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493748/ft1_4FGL_J1320.7+3314_daily_bin1075.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493748/ft2_4FGL_J1320.7+3314_daily_bin1075.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493748/ft1_4FGL_J1320.7+3314_daily_bin1075.fits outfile=/scratch/kocevski/493748/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1075.fits ra=200.185 dec=33.2378 rad=12.0 tmin=517968001.0 tmax=518227201.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.84
user 3.56
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493748/ft1_filtered_4FGL_J1320.7+3314_daily_bin1075.fits" evtable="EVENTS" scfile=/scratch/kocevski/493748/ft2_4FGL_J1320.7+3314_daily_bin1075.fits sctable="SC_DATA" outfile=/scratch/kocevski/493748/ltcube_517968001_518227201_4FGL_J1320.7+3314_daily_bin1075.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/493748/ft2_4FGL_J1320.7+3314_daily_bin1075.fits
.....................!
real 17.63
user 17.05
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493748/ft1_filtered_4FGL_J1320.7+3314_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/493748/ft2_4FGL_J1320.7+3314_daily_bin1075.fits sctable="SC_DATA" expcube=/scratch/kocevski/493748/ltcube_517968001_518227201_4FGL_J1320.7+3314_daily_bin1075.fits outfile=/scratch/kocevski/493748/expmap_517968001_518227201_4FGL_J1320.7+3314_daily_bin1075.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/493748/ltcube_517968001_518227201_4FGL_J1320.7+3314_daily_bin1075.fits
.....................!
real 193.61
user 187.74
sys 4.59

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/493748/ft1_filtered_4FGL_J1320.7+3314_daily_bin1075.fits scfile=/scratch/kocevski/493748/ft2_4FGL_J1320.7+3314_daily_bin1075.fits outfile=/scratch/kocevski/493748/cmap_517968001_518227201_4FGL_J1320.7+3314_daily_bin1075.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493748/ft1_filtered_4FGL_J1320.7+3314_daily_bin1075.fits scfile=/scratch/kocevski/493748/ft2_4FGL_J1320.7+3314_daily_bin1075.fits outfile=/scratch/kocevski/493748/cmap_HighResolution_517968001_518227201_4FGL_J1320.7+3314_daily_bin1075.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.61
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0102       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3833       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14347E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.7206       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.410       1.0000         .10000E-03   10000.    
    10 'norm      '    .53909       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2409       1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    93.086       1.0000         .10000E-03   10000.    
    19 'norm      '    1.5865       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6710       1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.879       1.0000         .10000E-03   10000.    
    22 'Prefactor '    116.82       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.083       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4104       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .55113       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=   5514.174     FROM MIGRAD    STATUS=CONVERGED    663 CALLS     3386 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0099        7.1294        .96316E-08   -.14144E-04
   2  Prefactor     3.3874        11.996       -.15411E-05   -.97930E-04
   3  Prefactor     .10000E-03    48.697        .17606E-05** at limit **
   4  Prefactor     .10025E-03    8.1328        .27294E-05** at limit **
   5  norm          5.7207        4.2546       -.27004E-07   -.11717E-03
   6  Prefactor     .10000E-03    31.425       -.12349E-05** at limit **
   7  Prefactor     .10000E-03    8.3742       -.66187E-07** at limit **
   8  norm          .10000E-03    1.5817       -.12244E-07** at limit **
   9  Prefactor     27.465        23.197       -.28216E-05   -.36631E-03
  10  norm          .53552        1.9266        .61386E-06   -.21778E-02
  11  norm          .10000E-03    13.338        .18421E-05** at limit **
  12  norm          .10000E-03    2.8081        .95566E-07** at limit **
  13  norm          .10000E-03    4.8793        .66288E-07** at limit **
  14  norm          .10000E-03    12.298       -.20270E-05** at limit **
  15  Prefactor     .10000E-03    2.1962        .26295E-06** at limit **
  16  Prefactor     5.2301        15.434        .11545E-06   -.74496E-04
  17  norm          .10000E-03    2.1997        .10853E-07** at limit **
  18  Prefactor     93.062        66.314       -.22209E-05   -.11297E-03
  19  norm          1.5856        4.9753       -.20070E-06   -.95896E-03
  20  Prefactor     1.6351        23.748       -.32688E-06   -.30450E-03
  21  Prefactor     29.907        23.569        .73901E-06    .55391E-04
  22  Prefactor     116.81        87.550       -.14098E-06   -.30152E-04
  23  Prefactor     .10000E-03    2.5454       -.11098E-07** at limit **
  24  norm          .10000E-03    9.4612        .57185E-06** at limit **
  25  Prefactor     14.082        16.121        .69643E-07   -.12433E-05
  26  Normalizat    1.4101        .18953       -.34003E-06   -.27330E-03
  27  Prefactor     .55147        .21412       -.25141E-07   -.15850E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.0099
  Prefactor  = 3.38736
  Prefactor  = 0.0001
  Prefactor  = 0.000100247
  norm       = 5.72074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.4646
  norm       = 0.53552
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.23014
  norm       = 0.0001
  Prefactor  = 93.0621
  norm       = 1.5856
  Prefactor  = 1.6351
  Prefactor  = 29.9069
  Prefactor  = 116.813
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.0822
  Normalizat = 1.41013
  Prefactor  = 0.551472
 **********
 **   18 **HESSE 
 **********

 FCN=   5514.174     FROM HESSE     STATUS=OK           490 CALLS     3876 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0099        7.1163        .20138E-03   -1.5307    
   2  Prefactor     3.3874        12.056        .21997E-03   -1.5340    
   3  Prefactor     .10000E-03    48.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10025E-03    10.285        .55074E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.7207        4.2514        .12757E-03   -1.5230    
   6  Prefactor     .10000E-03    31.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.3793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6006        .91184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.465        28.099        .76520E-04   -1.4659    
  10  norm          .53552        9.2361        .20196E-02   -1.5562    
  11  norm          .10000E-03    13.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.8980        .24232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.9308        .15996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    12.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3207        .19935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.2301        14.434        .17558E-03   -1.5251    
  17  norm          .10000E-03    2.2036        .10754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     93.062        66.361        .20827E-03   -1.3776    
  19  norm          1.5856        5.1611        .14851E-02   -1.5456    
  20  Prefactor     1.6351        24.687        .16305E-02   -1.5452    
  21  Prefactor     29.907        23.495        .73297E-04   -1.4614    
  22  Prefactor     116.81        87.890        .37227E-04   -1.3542    
  23  Prefactor     .10000E-03    2.6058        .11563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    9.5282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     14.082        16.118        .10673E-03   -1.4957    
  26  Normalizat    1.4101        .22211        .20786E-03   -.80336    
  27  Prefactor     .55147        .24768        .36354E-03   -1.0967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81577e-08
Minuit parameter uncertainties:
  1  7.11781
  2  12.0646
  3  0.000197072
  4  0.00318735
  5  4.25167
  6  0.000102595
  7  3.58879e-06
  8  1.32201e-06
  9  28.1127
  10  4.44836
  11  9.8558e-05
  12  2.64762e-06
  13  1.08843e-06
  14  9.83118e-05
  15  4.54081e-05
  16  14.4434
  17  1.31454e-06
  18  66.4135
  19  5.16255
  20  12.7127
  21  23.5025
  22  87.9882
  23  3.00331e-06
  24  3.10332e-05
  25  16.123
  26  0.222258
  27  0.248172
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  5.230e+00  1.444e+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:  5.515e-01  2.482e-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.410e+00  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 200.185 33.238
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/493748/likelihoodResults_517968001_518227201_4FGL_J1320.7+3314_daily_bin1075.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) = 5514.1694223
delta logL = 0.00430178868373

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5514.16650409
delta logL = 0.00722000324458

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0002       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7401       1.0000          .0000       10.000    
     3 'Normalizat'    1.4066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55495       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5514.167     FROM MIGRAD    STATUS=FAILED       103 CALLS      265 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9846        82.372        .10082E-02   -.12731E-04
   2  Index         2.7447        6.3723        .12534E-01    .18268E-03
   3  Normalizat    1.4068        .22046        .20806E-03   -.57919E-05
   4  Prefactor     .55472        .25350        .36256E-03   -.13797E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5514.167     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      354 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9846        82.372        .39479E-03   -1.5309    
   2  Index         2.7447        6.3723        .18958E-02   -.46795    
   3  Normalizat    1.4068        .22046        .27417E-03   -.80432    
   4  Prefactor     .55472        .25350        .49669E-03   -1.0953    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5514.167     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      385 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9846        19.010        .40329E-04   -.27344E-04
   2  Index         2.7447        2.2545        .25068E-02   -.33016E-05
   3  Normalizat    1.4068        .21751        .83225E-05   -.54640E-05
   4  Prefactor     .55472        .24727        .14502E-04   -.11132E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.98455
  Index      = 2.7447
  Normalizat = 1.40679
  Prefactor  = 0.554721
 **********
 **   18 **HESSE 
 **********

 FCN=   5514.167     FROM HESSE     STATUS=OK            23 CALLS      408 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9846        17.004        .16132E-05   -1.5309    
   2  Index         2.7447        2.1427        .10027E-03   -.46795    
   3  Normalizat    1.4068        .21742        .16645E-05   -.80432    
   4  Prefactor     .55472        .24705        .29005E-05   -1.0953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81572e-12
Minuit parameter uncertainties:
  1  16.4702
  2  2.23494
  3  0.21756
  4  0.247536
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493748': 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) = 5514.16650049
delta logL = 0.00722360156851

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  5.547e-01  2.475e-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.407e+00  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
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/493748/cmap_HighResolution_517968001_518227201_4FGL_J1320.7+3314_daily_bin1075.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.85e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-07 13:10:54.215884', job_id='493748', GAL2='0.55', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1631045454.22', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='7.22e-03', ts2='0.18', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1075' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:10:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 493748: <4FGL_J1320.7+3314_daily_bin1075> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1075 200.185 33.2378 517968001 518227201 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 :                                   739.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            901 sec.

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

