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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin970
RA = 349.557, Dec = 19.256
tmin = 490752001, tmax = 491011201
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='746821', job_status='RUN', time_executed='2021-09-29 11:19:35.754483', time_epoch_executed='1632939575.75' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/746821

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/746821/ft1_4FGL_J2318.2+1915_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/746821/ft2_4FGL_J2318.2+1915_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/746821/ft1_4FGL_J2318.2+1915_daily_bin970.fits outfile=/scratch/kocevski/746821/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin970.fits ra=349.557 dec=19.256 rad=12.0 tmin=490752001.0 tmax=491011201.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 5.72
user 5.47
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/746821/ft1_filtered_4FGL_J2318.2+1915_daily_bin970.fits" evtable="EVENTS" scfile=/scratch/kocevski/746821/ft2_4FGL_J2318.2+1915_daily_bin970.fits sctable="SC_DATA" outfile=/scratch/kocevski/746821/ltcube_490752001_491011201_4FGL_J2318.2+1915_daily_bin970.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/746821/ft2_4FGL_J2318.2+1915_daily_bin970.fits
.....................!
real 11.81
user 11.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/746821/ft1_filtered_4FGL_J2318.2+1915_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/746821/ft2_4FGL_J2318.2+1915_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/746821/ltcube_490752001_491011201_4FGL_J2318.2+1915_daily_bin970.fits outfile=/scratch/kocevski/746821/expmap_490752001_491011201_4FGL_J2318.2+1915_daily_bin970.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/746821/ltcube_490752001_491011201_4FGL_J2318.2+1915_daily_bin970.fits
.....................!
real 190.99
user 186.54
sys 4.07

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/746821/ft1_filtered_4FGL_J2318.2+1915_daily_bin970.fits scfile=/scratch/kocevski/746821/ft2_4FGL_J2318.2+1915_daily_bin970.fits outfile=/scratch/kocevski/746821/cmap_490752001_491011201_4FGL_J2318.2+1915_daily_bin970.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/746821/ft1_filtered_4FGL_J2318.2+1915_daily_bin970.fits scfile=/scratch/kocevski/746821/ft2_4FGL_J2318.2+1915_daily_bin970.fits outfile=/scratch/kocevski/746821/cmap_HighResolution_490752001_491011201_4FGL_J2318.2+1915_daily_bin970.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/746821/ft1_filtered_4FGL_J2318.2+1915_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/746821/ft2_4FGL_J2318.2+1915_daily_bin970.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/746821/Model_4FGL_J2318.2+1915_daily_bin970.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/746821/ft1_filtered_4FGL_J2318.2+1915_daily_bin970.fits......................!
real 51.32
user 49.99
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/746821/ft1_filtered_4FGL_J2318.2+1915_daily_bin970.fits', '/scratch/kocevski/746821/ft2_4FGL_J2318.2+1915_daily_bin970.fits', expMap='/scratch/kocevski/746821/expmap_490752001_491011201_4FGL_J2318.2+1915_daily_bin970.fits', expCube='/scratch/kocevski/746821/ltcube_490752001_491011201_4FGL_J2318.2+1915_daily_bin970.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/746821/Model_4FGL_J2318.2+1915_daily_bin970.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/746821/ft1_filtered_4FGL_J2318.2+1915_daily_bin970.fits
Spacecraft file(s): /scratch/kocevski/746821/ft2_4FGL_J2318.2+1915_daily_bin970.fits
Exposure map: /scratch/kocevski/746821/expmap_490752001_491011201_4FGL_J2318.2+1915_daily_bin970.fits
Exposure cube: /scratch/kocevski/746821/ltcube_490752001_491011201_4FGL_J2318.2+1915_daily_bin970.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/746821/Model_4FGL_J2318.2+1915_daily_bin970.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) = 3640.64989848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3764       1.0000         .10000E-03   10000.    
     2 'norm      '    .98489E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    74.767       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .52714E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1516       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.656       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21191       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5639       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.569       1.0000         .10000E-03   10000.    
    15 'norm      '    24.298       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.242       1.0000         .10000E-03   10000.    
    17 'norm      '    26.080       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .70361       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1543       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=   3640.554     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2107 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3771        5.8729       -.61107E-06    .54767E-04
   2  norm          .49491E-01    14.712       -.37543E-05    .42211E-03
   3  Prefactor     .10000E-03    56.529       -.37049E-07** at limit **
   4  Prefactor     74.857        37.128        .11865E-05    .81925E-04
   5  Prefactor     .10000E-03    354.67       -.23716E-05** at limit **
   6  Prefactor     8.1510        .80833        .38844E-07    .64695E-03
   7  Prefactor     .10000E-03    12.990       -.38331E-06** at limit **
   8  Prefactor     .10000E-03    6.2220       -.16971E-06** at limit **
   9  Prefactor     14.649        19.419       -.66874E-06   -.34535E-04
  10  Prefactor     .10000E-03    30.754       -.40608E-06** at limit **
  11  Prefactor     .10000E-03    40.541       -.14650E-05** at limit **
  12  Prefactor     .22634        96.044       -.93464E-05   -.13660E-03
  13  Prefactor     5.5589        17.893       -.15939E-05    .69492E-05
  14  Prefactor     23.562        24.127        .21600E-05   -.64791E-04
  15  norm          24.298        26.480        .39667E-06    .31645E-04
  16  Prefactor     16.242        20.811       -.61041E-06    .25526E-04
  17  norm          26.080        24.207       -.25464E-06   -.21303E-04
  18  Prefactor     .10000E-03    10.054       -.17290E-06** at limit **
  19  Normalizat    .70308        .37926        .24080E-05    .58440E-04
  20  Prefactor     1.1546        .21961        .13103E-05    .10441E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.37711
  norm       = 0.0494907
  Prefactor  = 0.0001
  Prefactor  = 74.8567
  Prefactor  = 0.000100001
  Prefactor  = 8.15102
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.226336
  Prefactor  = 5.55889
  Prefactor  = 23.562
  norm       = 24.2981
  Prefactor  = 16.2425
  norm       = 26.0799
  Prefactor  = 0.0001
  Normalizat = 0.703085
  Prefactor  = 1.15457
 **********
 **   18 **HESSE 
 **********

 FCN=   3640.554     FROM HESSE     STATUS=OK           293 CALLS     2400 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3771        5.8731        .12184E-03   -1.5165    
   2  norm          .49491E-01    68.104        .20795E-02   -1.5664    
   3  Prefactor     .10000E-03    56.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     74.857        38.012        .46435E-04   -1.3975    
   5  Prefactor     .10000E-03    365.79        .42262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.1510        .80801        .16265E-04   -1.5137    
   7  Prefactor     .10000E-03    13.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.2429        .14702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.649        19.429        .10462E-03   -1.4942    
  10  Prefactor     .10000E-03    30.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    40.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .22634        114.03        .38351E-02   -1.5613    
  13  Prefactor     5.5589        17.816        .17032E-03   -1.5236    
  14  Prefactor     23.562        24.463        .82509E-04   -1.4737    
  15  norm          24.298        26.472        .81264E-04   -1.4722    
  16  Prefactor     16.242        20.870        .99379E-04   -1.4902    
  17  norm          26.080        24.216        .78443E-04   -1.4686    
  18  Prefactor     .10000E-03    10.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .70308        .42536        .48367E-03   -1.0377    
  20  Prefactor     1.1546        .24856        .23300E-03   -.87741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92336e-09
Minuit parameter uncertainties:
  1  5.87357
  2  3.67226
  3  9.32336e-06
  4  38.0246
  5  0.00133747
  6  0.808016
  7  2.59407e-05
  8  7.8862e-06
  9  19.4376
  10  8.16531e-05
  11  0.000284619
  12  10.178
  13  17.833
  14  24.4731
  15  26.4846
  16  20.8796
  17  24.2251
  18  2.1198e-05
  19  0.427378
  20  0.248808
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  2.263e-01  1.018e+01  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:  1.155e+00  2.488e-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:  7.031e-01  4.274e-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: 2.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.60e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/746821/likelihoodResults_490752001_491011201_4FGL_J2318.2+1915_daily_bin970.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) = 3640.55438054
delta logL = 3.27814859702e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3640.55437741
delta logL = 6.40770031168e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22634       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6607       1.0000          .0000       10.000    
     3 'Normalizat'    .70306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1546       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.

 FCN=   3640.554     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      237 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28373        51.414        .73445E-01    .19744E-03
   2  Index         2.5263        5.5037        .50000       -.33912E-05
   3  Normalizat    .70321        .20047E-01    .10903        .34024E-04
   4  Prefactor     1.1544        .12160E-01    .52711E-01    .35815E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.283727
  Index      = 2.52634
  Normalizat = 0.70321
  Prefactor  = 1.15443
 **********
 **   18 **HESSE 
 **********

 FCN=   3640.554     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28373        630.94        .39466E-02   -1.5601    
   2  Index         2.5263        6.7605        .50977E-01   -.51753    
   3  Normalizat    .70321        .40444        .48362E-03   -1.0377    
   4  Prefactor     1.1544        .25100        .23301E-03   -.87745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09123e-10
Minuit parameter uncertainties:
  1  27.0445
  2  24.1361
  3  0.406168
  4  0.251258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/746821': 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) = 3640.55429643
delta logL = 8.7388308657e-05

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  2.837e-01  2.704e+01  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.526e+00  2.414e+01  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:  1.154e+00  2.513e-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:  7.032e-01  4.062e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/746821/cmap_HighResolution_490752001_491011201_4FGL_J2318.2+1915_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-02', job_status='DONE', photon_flux_upper_limit='2.03e-07', time_completed='2021-09-29 11:28:03.041323', job_id='746821', GAL2='1.15', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1632940083.04', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='8.74e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='970' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:28:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 746821: <4FGL_J2318.2+1915_daily_bin970> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin970> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 11:15:44 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:15:45 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:15:45 2021
Terminated at Wed Sep 29 11:28:03 2021
Results reported at Wed Sep 29 11:28:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin970 349.557 19.256 490752001 491011201 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 :                                   503.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             218.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            739 sec.

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

