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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin227
RA = 349.557, Dec = 19.256
tmin = 298166401, tmax = 298425601
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='743615', job_status='RUN', time_executed='2021-09-29 11:09:18.683566', time_epoch_executed='1632938958.68' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='227'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743615

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743615/ft1_4FGL_J2318.2+1915_daily_bin227.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743615/ft2_4FGL_J2318.2+1915_daily_bin227.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743615/ft1_4FGL_J2318.2+1915_daily_bin227.fits outfile=/scratch/kocevski/743615/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin227.fits ra=349.557 dec=19.256 rad=12.0 tmin=298166401.0 tmax=298425601.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.54
user 3.33
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/743615/ft2_4FGL_J2318.2+1915_daily_bin227.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/743615/ft2_4FGL_J2318.2+1915_daily_bin227.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/743615/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin227.fits evtable="EVENTS" outfile="/scratch/kocevski/743615/ft1_filtered_4FGL_J2318.2+1915_daily_bin227.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/743615/ft1_filtered_4FGL_J2318.2+1915_daily_bin227.fits" evtable="EVENTS" scfile=/scratch/kocevski/743615/ft2_4FGL_J2318.2+1915_daily_bin227.fits sctable="SC_DATA" outfile=/scratch/kocevski/743615/ltcube_298166401_298425601_4FGL_J2318.2+1915_daily_bin227.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/743615/ft2_4FGL_J2318.2+1915_daily_bin227.fits
.....................!
real 12.18
user 11.79
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743615/ft1_filtered_4FGL_J2318.2+1915_daily_bin227.fits evtable="EVENTS" scfile=/scratch/kocevski/743615/ft2_4FGL_J2318.2+1915_daily_bin227.fits sctable="SC_DATA" expcube=/scratch/kocevski/743615/ltcube_298166401_298425601_4FGL_J2318.2+1915_daily_bin227.fits outfile=/scratch/kocevski/743615/expmap_298166401_298425601_4FGL_J2318.2+1915_daily_bin227.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/743615/ltcube_298166401_298425601_4FGL_J2318.2+1915_daily_bin227.fits
.....................!
real 190.76
user 185.17
sys 5.15

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

Setting source of interest to:
4FGL J2318.2+1915 @ 349.557 19.256

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/743615/ft1_filtered_4FGL_J2318.2+1915_daily_bin227.fits scfile=/scratch/kocevski/743615/ft2_4FGL_J2318.2+1915_daily_bin227.fits outfile=/scratch/kocevski/743615/cmap_298166401_298425601_4FGL_J2318.2+1915_daily_bin227.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=349.557 yref=19.256 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/743615/ft1_filtered_4FGL_J2318.2+1915_daily_bin227.fits scfile=/scratch/kocevski/743615/ft2_4FGL_J2318.2+1915_daily_bin227.fits outfile=/scratch/kocevski/743615/cmap_HighResolution_298166401_298425601_4FGL_J2318.2+1915_daily_bin227.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=349.557 yref=19.256 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/743615/ft1_filtered_4FGL_J2318.2+1915_daily_bin227.fits evtable="EVENTS" scfile=/scratch/kocevski/743615/ft2_4FGL_J2318.2+1915_daily_bin227.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/743615/Model_4FGL_J2318.2+1915_daily_bin227.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/743615/ft1_filtered_4FGL_J2318.2+1915_daily_bin227.fits.....................!
real 100.89
user 99.28
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/743615/ft1_filtered_4FGL_J2318.2+1915_daily_bin227.fits', '/scratch/kocevski/743615/ft2_4FGL_J2318.2+1915_daily_bin227.fits', expMap='/scratch/kocevski/743615/expmap_298166401_298425601_4FGL_J2318.2+1915_daily_bin227.fits', expCube='/scratch/kocevski/743615/ltcube_298166401_298425601_4FGL_J2318.2+1915_daily_bin227.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/743615/Model_4FGL_J2318.2+1915_daily_bin227.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2318.2+1915'

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  2.396e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.667e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  6.043e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/743615/ft1_filtered_4FGL_J2318.2+1915_daily_bin227.fits
Spacecraft file(s): /scratch/kocevski/743615/ft2_4FGL_J2318.2+1915_daily_bin227.fits
Exposure map: /scratch/kocevski/743615/expmap_298166401_298425601_4FGL_J2318.2+1915_daily_bin227.fits
Exposure cube: /scratch/kocevski/743615/ltcube_298166401_298425601_4FGL_J2318.2+1915_daily_bin227.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/743615/Model_4FGL_J2318.2+1915_daily_bin227.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) = 9002.37294519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3596       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8401       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .95505E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3428       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8799       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8786       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8185       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.581       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.7161       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.729       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3421       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0717       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93871       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9002.320     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     1762 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3602        3.1374        .76481E-07   -.21484E-04
   2  norm          1.8391        1.3118       -.11135E-07   -.70991E-04
   3  Prefactor     .10000E-03    12.608        .28260E-06** at limit **
   4  Prefactor     .13949        4.4126        .36098E-06   -.15122E-03
   5  Prefactor     .10000E-03    8.1357       -.24587E-06** at limit **
   6  Prefactor     4.3428        .33203       -.42216E-08   -.34782E-03
   7  Prefactor     3.8795        8.3299        .31702E-06   -.15641E-04
   8  Prefactor     9.8792        7.7655        .89232E-06   -.66577E-04
   9  Prefactor     5.8189        7.5485       -.53681E-07   -.96082E-05
  10  Prefactor     .10000E-03    17.636       -.59685E-06** at limit **
  11  Prefactor     13.581        17.063        .77176E-06    .29375E-04
  12  Prefactor     .10000E-03    2.3336       -.26452E-07** at limit **
  13  Prefactor     8.7172        10.242       -.13794E-05   -.87246E-04
  14  Prefactor     .10000E-03    6.9226        .33877E-06** at limit **
  15  norm          16.709        11.621        .12820E-05    .18629E-03
  16  Prefactor     1.3549        9.9698        .73350E-06   -.95703E-04
  17  norm          .10000E-03    6.6642       -.18342E-06** at limit **
  18  Prefactor     .10000E-03    2.2221        .67133E-08** at limit **
  19  Normalizat    1.0716        .20763       -.98508E-06   -.32300E-04
  20  Prefactor     .93868        .11907       -.33975E-07   -.97953E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.36023
  norm       = 1.83908
  Prefactor  = 0.0001
  Prefactor  = 0.139489
  Prefactor  = 0.0001
  Prefactor  = 4.3428
  Prefactor  = 3.87948
  Prefactor  = 9.8792
  Prefactor  = 5.81891
  Prefactor  = 0.0001
  Prefactor  = 13.5809
  Prefactor  = 0.0001
  Prefactor  = 8.71716
  Prefactor  = 0.0001
  norm       = 16.7092
  Prefactor  = 1.35493
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07164
  Prefactor  = 0.938675
 **********
 **   18 **HESSE 
 **********

 FCN=   9002.320     FROM HESSE     STATUS=OK           305 CALLS     2067 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3602        3.1465        .11291E-03   -1.5204    
   2  norm          1.8391        1.3159        .88895E-04   -1.5437    
   3  Prefactor     .10000E-03    12.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .13949        6.0108        .70537E-01   -1.5633    
   5  Prefactor     .10000E-03    8.1426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3428        .33280        .14364E-04   -1.5291    
   7  Prefactor     3.8795        8.3262        .20485E-03   -1.5314    
   8  Prefactor     9.8792        8.0109        .63747E-03   -1.5079    
   9  Prefactor     5.8189        7.5439        .16650E-03   -1.5225    
  10  Prefactor     .10000E-03    17.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.581        17.078        .10869E-03   -1.4971    
  12  Prefactor     .10000E-03    2.3476        .14151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.7172        10.363        .13577E-03   -1.5117    
  14  Prefactor     .10000E-03    6.9505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.709        12.495        .97922E-04   -1.4890    
  16  Prefactor     1.3549        12.033        .37825E-03   -1.5475    
  17  norm          .10000E-03    6.6735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.2309        .13811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0716        .24226        .35514E-03   -.90667    
  20  Prefactor     .93868        .13997        .22240E-03   -.94802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82372e-10
Minuit parameter uncertainties:
  1  3.1466
  2  1.31591
  3  1.13564e-05
  4  1.83087
  5  6.88472e-06
  6  0.3328
  7  8.32872
  8  8.01178
  9  7.54511
  10  1.20712e-05
  11  17.0838
  12  7.70211e-07
  13  10.3647
  14  1.10892e-05
  15  12.4968
  16  8.07762
  17  3.43177e-06
  18  1.32193e-06
  19  0.242506
  20  0.140025
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  7.702e-07  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.667e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  6.043e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  9.387e-01  1.400e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.072e+00  2.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 349.557 19.256
Photon Flux Upper Limit: 7.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/743615/likelihoodResults_298166401_298425601_4FGL_J2318.2+1915_daily_bin227.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) = 9002.32153567
delta logL = -0.00202638416704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9002.31950926
delta logL = 2.15131876757e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6609       1.0000          .0000       10.000    
     3 'Normalizat'    1.0716       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93869       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+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=   9002.320     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      226 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.434        .14172E-02** at limit **
   2  Index         2.3624        7.9428        .92030E-01   -.14577E-07
   3  Normalizat    1.0716        .23267        .35514E-03    .25078E-03
   4  Prefactor     .93868        .13832        .22240E-03    .50746E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.36245
  Normalizat = 1.07164
  Prefactor  = 0.938677
 **********
 **   18 **HESSE 
 **********

 FCN=   9002.320     FROM HESSE     STATUS=OK            23 CALLS      249 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4451        .28344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3624        5.8676        .36812E-02   -.55567    
   3  Normalizat    1.0716        .23287        .14206E-04   -.90667    
   4  Prefactor     .93868        .13844        .44480E-04   -.94802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51539e-10
Minuit parameter uncertainties:
  1  6.99179e-08
  2  219.977
  3  0.233095
  4  0.138495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743615': 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) = 9002.31950844
delta logL = 8.45164322527e-07

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  6.992e-08  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.362e+00  2.200e+02  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  6.043e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  9.387e-01  1.385e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.072e+00  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 349.557 19.256

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/743615/cmap_HighResolution_298166401_298425601_4FGL_J2318.2+1915_daily_bin227.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.66e-03', job_status='DONE', photon_flux_upper_limit='7.21e-08', time_completed='2021-09-29 11:21:18.385583', job_id='743615', GAL2='0.94', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632939678.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='8.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='227' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:21:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 743615: <4FGL_J2318.2+1915_daily_bin227> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin227> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 11:05:22 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:05:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 11:05:23 2021
Terminated at Wed Sep 29 11:21:18 2021
Results reported at Wed Sep 29 11:21:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin227 349.557 19.256 298166401 298425601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2318.2+1915 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   716.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            956 sec.

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

