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


Performing analysis on: 4FGL_J1318.2+6754_daily_bin1202
RA = 199.556, Dec = 67.9152
tmin = 550886401, tmax = 551145601
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='457327', job_status='RUN', time_executed='2021-09-07 10:59:36.009201', time_epoch_executed='1631037576.01' WHERE source_name='4FGL J1318.2+6754' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/457327

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/457327/ft1_4FGL_J1318.2+6754_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/457327/ft2_4FGL_J1318.2+6754_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/457327/ft1_4FGL_J1318.2+6754_daily_bin1202.fits outfile=/scratch/kocevski/457327/ft1_filteredMKT_4FGL_J1318.2+6754_daily_bin1202.fits ra=199.556 dec=67.9152 rad=12.0 tmin=550886401.0 tmax=551145601.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.89
user 3.62
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/457327/ft2_4FGL_J1318.2+6754_daily_bin1202.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/457327/ft2_4FGL_J1318.2+6754_daily_bin1202.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/457327/ft1_filteredMKT_4FGL_J1318.2+6754_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/457327/ft1_filtered_4FGL_J1318.2+6754_daily_bin1202.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.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/457327/ft1_filtered_4FGL_J1318.2+6754_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/457327/ft2_4FGL_J1318.2+6754_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/457327/ltcube_550886401_551145601_4FGL_J1318.2+6754_daily_bin1202.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/457327/ft2_4FGL_J1318.2+6754_daily_bin1202.fits
.....................!
real 17.45
user 17.03
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/457327/ft1_filtered_4FGL_J1318.2+6754_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/457327/ft2_4FGL_J1318.2+6754_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/457327/ltcube_550886401_551145601_4FGL_J1318.2+6754_daily_bin1202.fits outfile=/scratch/kocevski/457327/expmap_550886401_551145601_4FGL_J1318.2+6754_daily_bin1202.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/457327/ltcube_550886401_551145601_4FGL_J1318.2+6754_daily_bin1202.fits
.....................!
real 194.65
user 188.62
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 230 point sources and 0 extended sources

Setting source of interest to:
4FGL J1318.2+6754 @ 199.556 67.9152

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/457327/ft1_filtered_4FGL_J1318.2+6754_daily_bin1202.fits scfile=/scratch/kocevski/457327/ft2_4FGL_J1318.2+6754_daily_bin1202.fits outfile=/scratch/kocevski/457327/cmap_550886401_551145601_4FGL_J1318.2+6754_daily_bin1202.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=199.556 yref=67.9152 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/457327/ft1_filtered_4FGL_J1318.2+6754_daily_bin1202.fits scfile=/scratch/kocevski/457327/ft2_4FGL_J1318.2+6754_daily_bin1202.fits outfile=/scratch/kocevski/457327/cmap_HighResolution_550886401_551145601_4FGL_J1318.2+6754_daily_bin1202.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=199.556 yref=67.9152 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.60
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/457327/ft1_filtered_4FGL_J1318.2+6754_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/457327/ft2_4FGL_J1318.2+6754_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/457327/Model_4FGL_J1318.2+6754_daily_bin1202.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/457327/ft1_filtered_4FGL_J1318.2+6754_daily_bin1202.fits......................!
real 29.02
user 27.55
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/457327/ft1_filtered_4FGL_J1318.2+6754_daily_bin1202.fits', '/scratch/kocevski/457327/ft2_4FGL_J1318.2+6754_daily_bin1202.fits', expMap='/scratch/kocevski/457327/expmap_550886401_551145601_4FGL_J1318.2+6754_daily_bin1202.fits', expCube='/scratch/kocevski/457327/ltcube_550886401_551145601_4FGL_J1318.2+6754_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/457327/Model_4FGL_J1318.2+6754_daily_bin1202.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1318.2+6754'

4FGL J1318.2+6754
   Spectrum: PowerLaw
391    Prefactor:  6.773e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
392        Index:  2.168e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/457327/ft1_filtered_4FGL_J1318.2+6754_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/457327/ft2_4FGL_J1318.2+6754_daily_bin1202.fits
Exposure map: /scratch/kocevski/457327/expmap_550886401_551145601_4FGL_J1318.2+6754_daily_bin1202.fits
Exposure cube: /scratch/kocevski/457327/ltcube_550886401_551145601_4FGL_J1318.2+6754_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/457327/Model_4FGL_J1318.2+6754_daily_bin1202.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) = 1905.40581307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    149.46       1.0000         .10000E-03   10000.    
     4 'norm      '    .93624E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.699       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.3861       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10724E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    93.863       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.687       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .46875       1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.073       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .59279E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    16.450       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .86420       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0731       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1905.371     FROM MIGRAD    STATUS=CONVERGED    799 CALLS     4254 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.673        .13439E-06** at limit **
   2  Prefactor     .10000E-03    3.9411        .13969E-06** at limit **
   3  norm          149.54        81.438       -.32431E-05   -.17678E-03
   4  norm          .10117        17.286        .18806E-05   -.13710E-03
   5  Prefactor     .10000E-03    6.1868        .22543E-06** at limit **
   6  Prefactor     .10000E-03    15.718        .16530E-06** at limit **
   7  Prefactor     .10000E-03    75.169        .30999E-06** at limit **
   8  Prefactor     .10000E-03    23.191        .46046E-06** at limit **
   9  Prefactor     .10000E-03    75.791        .32142E-06** at limit **
  10  norm          14.701        10.439        .35284E-07   -.13805E-04
  11  Prefactor     .10000E-03    13.184        .24015E-06** at limit **
  12  norm          5.3881        4.8251       -.59802E-07   -.11810E-04
  13  Prefactor     .10000E-03    91.428        .27656E-06** at limit **
  14  Prefactor     .10000E-03    24.743       -.49895E-06** at limit **
  15  Prefactor     .10000E-03    48.266        .11403E-06** at limit **
  16  Prefactor     .10000E-03    59.549        .28020E-06** at limit **
  17  Prefactor     .10000E-03    42.223        .14784E-06** at limit **
  18  Prefactor     .10000E-03    3.0144        .37346E-07** at limit **
  19  Prefactor     .10000E-03    54.605        .92616E-06** at limit **
  20  Prefactor     93.735        101.54       -.95292E-06   -.21459E-04
  21  Prefactor     13.691        13.740       -.82437E-07   -.47615E-05
  22  Prefactor     .49420        30.778       -.21481E-05    .14369E-03
  23  Prefactor     21.078        35.967       -.19337E-06   -.56496E-05
  24  Prefactor     .10000E-03    59.472        .21443E-06** at limit **
  25  Prefactor     .10001E-03    1857.9       -.32232E-05** at limit **
  26  Prefactor     .10000E-03    91.855        .39140E-07** at limit **
  27  Prefactor     .10000E-03    10.403        .73921E-08** at limit **
  28  Prefactor     .10000E-03    15.893        .40088E-07** at limit **
  29  Prefactor     16.451        19.640       -.27781E-07   -.55720E-05
  30  Prefactor     .10000E-03    35.121       -.20956E-07** at limit **
  31  Normalizat    .86322        .32908        .50123E-05   -.13092E-03
  32  Prefactor     1.0742        .35184       -.70835E-05   -.82618E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 149.539
  norm       = 0.10117
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.7008
  Prefactor  = 0.0001
  norm       = 5.38807
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 93.7346
  Prefactor  = 13.6914
  Prefactor  = 0.494197
  Prefactor  = 21.0777
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4506
  Prefactor  = 0.0001
  Normalizat = 0.863219
  Prefactor  = 1.07415
 **********
 **   18 **HESSE 
 **********

 FCN=   1905.371     FROM HESSE     STATUS=OK           651 CALLS     4905 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.681        .17928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9504        .84654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          149.54        83.642        .16483E-03   -1.3256    
   4  norm          .10117        17.505        .51838E-01   -1.5644    
   5  Prefactor     .10000E-03    6.1913        .10607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.721        .16907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    75.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    75.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.701        10.442        .10447E-03   -1.4941    
  11  Prefactor     .10000E-03    13.287        .15474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.3881        4.8319        .87440E-04   -1.5244    
  13  Prefactor     .10000E-03    91.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    48.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    59.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    42.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.0236        .74003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    55.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     93.735        101.82        .20741E-03   -1.3769    
  21  Prefactor     13.691        13.742        .10827E-03   -1.4968    
  22  Prefactor     .49420        131.33        .40808E-02   -1.5567    
  23  Prefactor     21.078        35.995        .87254E-04   -1.4789    
  24  Prefactor     .10000E-03    59.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    1855.4        .18958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    91.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.403        .13753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    15.894        .17001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     16.451        19.640        .98751E-04   -1.4897    
  30  Prefactor     .10000E-03    35.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .86322        .34635        .23900E-03   -.97765    
  32  Prefactor     1.0742        .36286        .24097E-03   -.90297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8987e-09
Minuit parameter uncertainties:
  1  1.38175e-05
  2  6.24705e-06
  3  83.7088
  4  2.66101
  5  9.36001e-06
  6  6.9489e-06
  7  0.000101617
  8  5.06545e-05
  9  6.39454e-05
  10  10.4435
  11  1.06401e-05
  12  4.83224
  13  1.2555e-05
  14  4.34782e-05
  15  1.52757e-05
  16  9.35838e-05
  17  7.3054e-06
  18  2.54095e-06
  19  0.00017634
  20  102.015
  21  13.745
  22  16.1468
  23  36.032
  24  8.82022e-05
  25  0.00930641
  26  8.31485e-06
  27  6.62395e-07
  28  1.40634e-06
  29  19.6476
  30  2.73518e-05
  31  0.347243
  32  0.363693
Done.

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

Extracting fit parameters...

4FGL J1318.2+6754
   Spectrum: PowerLaw
391    Prefactor:  1.000e-04  1.528e-05  1.000e-04  1.000e+04 ( 1.000e-14)
392        Index:  2.168e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  1.074e+00  3.637e-01  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  8.632e-01  3.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 199.556 67.915
Photon Flux Upper Limit: 9.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/457327/likelihoodResults_550886401_551145601_4FGL_J1318.2+6754_daily_bin1202.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) = 1905.37110874
delta logL = -9.70974197116e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1905.37101169
delta logL = -5.63927642361e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1905.371     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      228 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    208.60        .90712E-02** at limit **
   2  Index         2.2038        5.3986        .50000        .38728E-05
   3  Normalizat    .86322        .27161        .44430E-01    .46514E-05
   4  Prefactor     1.0742        .30370        .38662E-01    .29396E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.20379
  Normalizat = 0.863221
  Prefactor  = 1.07415
 **********
 **   18 **HESSE 
 **********

 FCN=   1905.371     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2038        6.1012        .50000       -.59347    
   3  Normalizat    .86322        .30886        .23899E-03   -.97765    
   4  Prefactor     1.0742        .34548        .24098E-03   -.90297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59609e-11
Minuit parameter uncertainties:
  1  0.000408392
  2  4.1518
  3  0.309493
  4  0.346206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/457327': 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) = 1905.37101167
delta logL = -3.24828306475e-08

Extracting fit parameters...

4FGL J1318.2+6754
   Spectrum: PowerLaw
391    Prefactor:  1.000e-04  4.084e-04  1.000e-04  1.000e+04 ( 1.000e-14)
392        Index:  2.204e+00  4.152e+00  0.000e+00  1.000e+01 (-1.000e+00)
393        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  1.074e+00  3.462e-01  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  8.632e-01  3.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 199.556 67.915

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/457327/cmap_HighResolution_550886401_551145601_4FGL_J1318.2+6754_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.47e-03', job_status='DONE', photon_flux_upper_limit='9.82e-08', time_completed='2021-09-07 11:09:23.673716', job_id='457327', GAL2='1.07', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631038163.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='-3.25e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1202' AND source_name='4FGL J1318.2+6754' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 11:09:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 457327: <4FGL_J1318.2+6754_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1318.2+6754_daily_bin1202> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 10:55:38 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:56:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 10:56:08 2021
Terminated at Tue Sep  7 11:09:24 2021
Results reported at Tue Sep  7 11:09:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1318.2+6754_daily_bin1202 199.556 67.9152 550886401 551145601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1318.2+6754 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   586.54 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             260.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            826 sec.

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

