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


Performing analysis on: 4FGL_J1318.7-1234_daily_bin306
RA = 199.694, Dec = -12.581
tmin = 318643201, tmax = 318902401
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='460429', job_status='RUN', time_executed='2021-09-07 11:09:05.865858', time_epoch_executed='1631038145.87' WHERE source_name='4FGL J1318.7-1234' and cadence='daily' and bin_id='306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460429

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460429/ft1_4FGL_J1318.7-1234_daily_bin306.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460429/ft2_4FGL_J1318.7-1234_daily_bin306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460429/ft1_4FGL_J1318.7-1234_daily_bin306.fits outfile=/scratch/kocevski/460429/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin306.fits ra=199.694 dec=-12.581 rad=12.0 tmin=318643201.0 tmax=318902401.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.44
user 3.16
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/460429/ft2_4FGL_J1318.7-1234_daily_bin306.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/460429/ft2_4FGL_J1318.7-1234_daily_bin306.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/460429/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin306.fits evtable="EVENTS" outfile="/scratch/kocevski/460429/ft1_filtered_4FGL_J1318.7-1234_daily_bin306.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.57
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460429/ft1_filtered_4FGL_J1318.7-1234_daily_bin306.fits" evtable="EVENTS" scfile=/scratch/kocevski/460429/ft2_4FGL_J1318.7-1234_daily_bin306.fits sctable="SC_DATA" outfile=/scratch/kocevski/460429/ltcube_318643201_318902401_4FGL_J1318.7-1234_daily_bin306.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/460429/ft2_4FGL_J1318.7-1234_daily_bin306.fits
.....................!
real 14.81
user 14.10
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460429/ft1_filtered_4FGL_J1318.7-1234_daily_bin306.fits evtable="EVENTS" scfile=/scratch/kocevski/460429/ft2_4FGL_J1318.7-1234_daily_bin306.fits sctable="SC_DATA" expcube=/scratch/kocevski/460429/ltcube_318643201_318902401_4FGL_J1318.7-1234_daily_bin306.fits outfile=/scratch/kocevski/460429/expmap_318643201_318902401_4FGL_J1318.7-1234_daily_bin306.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/460429/ltcube_318643201_318902401_4FGL_J1318.7-1234_daily_bin306.fits
.....................!
real 192.56
user 186.93
sys 5.09

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J1318.7-1234 @ 199.694 -12.581

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/460429/ft1_filtered_4FGL_J1318.7-1234_daily_bin306.fits scfile=/scratch/kocevski/460429/ft2_4FGL_J1318.7-1234_daily_bin306.fits outfile=/scratch/kocevski/460429/cmap_318643201_318902401_4FGL_J1318.7-1234_daily_bin306.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.694 yref=-12.581 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460429/ft1_filtered_4FGL_J1318.7-1234_daily_bin306.fits scfile=/scratch/kocevski/460429/ft2_4FGL_J1318.7-1234_daily_bin306.fits outfile=/scratch/kocevski/460429/cmap_HighResolution_318643201_318902401_4FGL_J1318.7-1234_daily_bin306.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.694 yref=-12.581 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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/460429/ft1_filtered_4FGL_J1318.7-1234_daily_bin306.fits evtable="EVENTS" scfile=/scratch/kocevski/460429/ft2_4FGL_J1318.7-1234_daily_bin306.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/460429/Model_4FGL_J1318.7-1234_daily_bin306.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/460429/ft1_filtered_4FGL_J1318.7-1234_daily_bin306.fits.....................!
real 50.16
user 48.78
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/460429/ft1_filtered_4FGL_J1318.7-1234_daily_bin306.fits', '/scratch/kocevski/460429/ft2_4FGL_J1318.7-1234_daily_bin306.fits', expMap='/scratch/kocevski/460429/expmap_318643201_318902401_4FGL_J1318.7-1234_daily_bin306.fits', expCube='/scratch/kocevski/460429/ltcube_318643201_318902401_4FGL_J1318.7-1234_daily_bin306.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/460429/Model_4FGL_J1318.7-1234_daily_bin306.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1318.7-1234'

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.941e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  2.126e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
323        Scale:  1.734e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/460429/ft1_filtered_4FGL_J1318.7-1234_daily_bin306.fits
Spacecraft file(s): /scratch/kocevski/460429/ft2_4FGL_J1318.7-1234_daily_bin306.fits
Exposure map: /scratch/kocevski/460429/expmap_318643201_318902401_4FGL_J1318.7-1234_daily_bin306.fits
Exposure cube: /scratch/kocevski/460429/ltcube_318643201_318902401_4FGL_J1318.7-1234_daily_bin306.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/460429/Model_4FGL_J1318.7-1234_daily_bin306.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) = 5853.84971527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7436       1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.118       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12865E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    54.654       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5482       1.0000         .10000E-03   10000.    
     6 'norm      '    3.3217       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .12949E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .25508       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.7766       1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.706       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2391       1.0000         .10000E-03   10000.    
    18 'norm      '    .13043E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.503       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3532       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.2238       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1117       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95768       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5853.846     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     3274 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7433        3.0399        .21242E-07    .39911E-05
   2  Prefactor     30.118        18.803        .25402E-07   -.16031E-05
   3  Prefactor     .10000E-03    164.23        .20167E-05** at limit **
   4  Prefactor     54.674        86.743       -.20456E-05    .21979E-04
   5  norm          1.5479        .35086       -.36012E-08   -.25658E-03
   6  norm          3.3216        5.7883        .22154E-05    .11462E-03
   7  norm          .10000E-03    5.0883        .77619E-06** at limit **
   8  Prefactor     .10000E-03    4.4217        .12672E-06** at limit **
   9  Prefactor     .10000E-03    87.386       -.18035E-05** at limit **
  10  norm          .10000E-03    1.6840        .53560E-07** at limit **
  11  norm          .10000E-03    3.5628       -.21816E-07** at limit **
  12  norm          .19541        7.6223       -.20096E-05    .28037E-03
  13  Prefactor     .10000E-03    4.4184        .25452E-06** at limit **
  14  Prefactor     .10000E-03    6.7154       -.38643E-08** at limit **
  15  Prefactor     9.7800        8.7764        .72100E-06   -.55974E-04
  16  Prefactor     29.705        18.834       -.91216E-07   -.15884E-04
  17  norm          2.2394        1.5827        .56223E-08    .14809E-05
  18  norm          .10000E-03    4.0745        .49111E-06** at limit **
  19  norm          13.501        8.9664       -.44383E-06    .52481E-04
  20  Prefactor     3.3490        14.161        .48114E-05    .36508E-04
  21  Prefactor     .10000E-03    8.4688        .25311E-08** at limit **
  22  norm          7.2233        5.6809        .13592E-07   -.77192E-05
  23  Prefactor     .10000E-03    2.0285        .59840E-07** at limit **
  24  Prefactor     .10000E-03    19.208        .19859E-08** at limit **
  25  norm          .10000E-03    2.1857        .59307E-08** at limit **
  26  Normalizat    1.1114        .26646        .56284E-06    .19398E-04
  27  Prefactor     .95789        .14103       -.83986E-06   -.21747E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.74333
  Prefactor  = 30.1181
  Prefactor  = 0.0001
  Prefactor  = 54.6742
  norm       = 1.54791
  norm       = 3.32159
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.195409
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.77995
  Prefactor  = 29.7048
  norm       = 2.23937
  norm       = 0.0001
  norm       = 13.5009
  Prefactor  = 3.34897
  Prefactor  = 0.0001
  norm       = 7.22331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.11145
  Prefactor  = 0.95789
 **********
 **   18 **HESSE 
 **********

 FCN=   5853.846     FROM HESSE     STATUS=OK           490 CALLS     3764 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7433        3.0396        .10293E-03   -1.5272    
   2  Prefactor     30.118        18.886        .73007E-04   -1.4610    
   3  Prefactor     .10000E-03    165.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     54.674        86.511        .54257E-04   -1.4228    
   5  norm          1.5479        .35231        .20519E-04   -1.5459    
   6  norm          3.3216        5.8065        .11105E-02   -1.5343    
   7  norm          .10000E-03    5.1920        .16903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.4462        .15677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    87.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.1630        .19250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.5697        .14104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .19541        74.986        .37556E-02   -1.5620    
  13  Prefactor     .10000E-03    4.4217        .15696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.7169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.7800        8.8012        .12816E-03   -1.5082    
  16  Prefactor     29.705        18.803        .73510E-04   -1.4617    
  17  norm          2.2394        1.5824        .77109E-04   -1.5409    
  18  norm          .10000E-03    4.1880        .30096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.501        8.9690        .10900E-03   -1.4973    
  20  Prefactor     3.3490        14.268        .11050E-02   -1.5342    
  21  Prefactor     .10000E-03    8.5050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.2233        5.6822        .14924E-03   -1.5170    
  23  Prefactor     .10000E-03    2.0368        .10640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.1892        .11046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1114        .31280        .35248E-03   -.89385    
  27  Prefactor     .95789        .16462        .20565E-03   -.94147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34467e-09
Minuit parameter uncertainties:
  1  3.03967
  2  18.8893
  3  0.000515849
  4  86.711
  5  0.352306
  6  5.8075
  7  8.91929e-05
  8  5.50578e-05
  9  0.000200311
  10  4.30923e-06
  11  1.87575e-06
  12  7.66353
  13  1.62293e-05
  14  1.44474e-06
  15  8.8024
  16  18.8063
  17  1.58243
  18  5.35935e-05
  19  8.96987
  20  13.8305
  21  9.81592e-06
  22  5.68267
  23  4.09094e-06
  24  7.4896e-06
  25  7.88756e-07
  26  0.313326
  27  0.164703
Done.

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

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.000e-04  1.623e-05  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  2.126e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
323        Scale:  1.734e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  9.579e-01  1.647e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.111e+00  3.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 199.694 -12.581
Photon Flux Upper Limit: 7.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/460429/likelihoodResults_318643201_318902401_4FGL_J1318.7-1234_daily_bin306.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) = 5853.84708395
delta logL = -0.00107491657764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5853.846009
delta logL = 3.51146809408e-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.1157       1.0000          .0000       10.000    
     3 'Normalizat'    1.1114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95790       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+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=   5853.846     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10067E-03    71.960        .15763E-02** at limit **
   2  Index         2.0664        5.9081        .50000        .15679E-04
   3  Normalizat    1.1114        .26720E-01    .35248E-03   -.13740E-04
   4  Prefactor     .95789        .14685E-01    .20565E-03   -.13102E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100674
  Index      = 2.06644
  Normalizat = 1.11144
  Prefactor  = 0.95789
 **********
 **   18 **HESSE 
 **********

 FCN=   5853.846     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10067E-03    308.58        .31526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0664        5.2676        .50000       -.62699    
   3  Normalizat    1.1114        .59449E-01    .14099E-04   -.89385    
   4  Prefactor     .95789        .32652E-01    .82262E-05   -.94147    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.66171e-08
Minuit parameter uncertainties:
  1  0.028998
  2  865.542
  3  0.059453
  4  0.0326528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460429': 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) = 5853.84600885
delta logL = 1.81173163583e-07

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.007e-04  2.900e-02  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  2.066e+00  8.655e+02  0.000e+00  1.000e+01 (-1.000e+00)
323        Scale:  1.734e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  9.579e-01  3.265e-02  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.111e+00  5.945e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 199.694 -12.581

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/460429/cmap_HighResolution_318643201_318902401_4FGL_J1318.7-1234_daily_bin306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.00e-03', job_status='DONE', photon_flux_upper_limit='7.92e-08', time_completed='2021-09-07 11:21:17.428177', job_id='460429', GAL2='0.96', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1631038877.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='306' AND source_name='4FGL J1318.7-1234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 11:21:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 460429: <4FGL_J1318.7-1234_daily_bin306> in cluster <slac> Done

Job <4FGL_J1318.7-1234_daily_bin306> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 11:05:43 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 11:06:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 11:06:53 2021
Terminated at Tue Sep  7 11:21:18 2021
Results reported at Tue Sep  7 11:21:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1318.7-1234_daily_bin306 199.694 -12.581 318643201 318902401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1318.7-1234 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   729.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            935 sec.

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

