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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin625
RA = 183.625, Dec = -23.3113
tmin = 401328001, tmax = 401587201
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='427559', job_status='RUN', time_executed='2021-09-05 04:57:41.055129', time_epoch_executed='1630843061.06' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427559

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427559/ft1_4FGL_J1214.5-2318_daily_bin625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427559/ft2_4FGL_J1214.5-2318_daily_bin625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427559/ft1_4FGL_J1214.5-2318_daily_bin625.fits outfile=/scratch/kocevski/427559/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin625.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=401328001.0 tmax=401587201.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.40
user 3.17
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/427559/ft2_4FGL_J1214.5-2318_daily_bin625.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/427559/ft2_4FGL_J1214.5-2318_daily_bin625.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/427559/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin625.fits evtable="EVENTS" outfile="/scratch/kocevski/427559/ft1_filtered_4FGL_J1214.5-2318_daily_bin625.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/427559/ft1_filtered_4FGL_J1214.5-2318_daily_bin625.fits" evtable="EVENTS" scfile=/scratch/kocevski/427559/ft2_4FGL_J1214.5-2318_daily_bin625.fits sctable="SC_DATA" outfile=/scratch/kocevski/427559/ltcube_401328001_401587201_4FGL_J1214.5-2318_daily_bin625.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/427559/ft2_4FGL_J1214.5-2318_daily_bin625.fits
.....................!
real 12.14
user 11.75
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427559/ft1_filtered_4FGL_J1214.5-2318_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/427559/ft2_4FGL_J1214.5-2318_daily_bin625.fits sctable="SC_DATA" expcube=/scratch/kocevski/427559/ltcube_401328001_401587201_4FGL_J1214.5-2318_daily_bin625.fits outfile=/scratch/kocevski/427559/expmap_401328001_401587201_4FGL_J1214.5-2318_daily_bin625.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/427559/ltcube_401328001_401587201_4FGL_J1214.5-2318_daily_bin625.fits
.....................!
real 191.17
user 186.47
sys 4.35

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

Setting source of interest to:
4FGL J1214.5-2318 @ 183.625 -23.3113

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/427559/ft1_filtered_4FGL_J1214.5-2318_daily_bin625.fits scfile=/scratch/kocevski/427559/ft2_4FGL_J1214.5-2318_daily_bin625.fits outfile=/scratch/kocevski/427559/cmap_401328001_401587201_4FGL_J1214.5-2318_daily_bin625.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=183.625 yref=-23.3113 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427559/ft1_filtered_4FGL_J1214.5-2318_daily_bin625.fits scfile=/scratch/kocevski/427559/ft2_4FGL_J1214.5-2318_daily_bin625.fits outfile=/scratch/kocevski/427559/cmap_HighResolution_401328001_401587201_4FGL_J1214.5-2318_daily_bin625.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=183.625 yref=-23.3113 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.64
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/427559/ft1_filtered_4FGL_J1214.5-2318_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/427559/ft2_4FGL_J1214.5-2318_daily_bin625.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/427559/Model_4FGL_J1214.5-2318_daily_bin625.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/427559/ft1_filtered_4FGL_J1214.5-2318_daily_bin625.fits.....................!
real 53.36
user 51.43
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/427559/ft1_filtered_4FGL_J1214.5-2318_daily_bin625.fits', '/scratch/kocevski/427559/ft2_4FGL_J1214.5-2318_daily_bin625.fits', expMap='/scratch/kocevski/427559/expmap_401328001_401587201_4FGL_J1214.5-2318_daily_bin625.fits', expCube='/scratch/kocevski/427559/ltcube_401328001_401587201_4FGL_J1214.5-2318_daily_bin625.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/427559/Model_4FGL_J1214.5-2318_daily_bin625.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1214.5-2318'

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  3.118e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.124e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  2.541e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/427559/ft1_filtered_4FGL_J1214.5-2318_daily_bin625.fits
Spacecraft file(s): /scratch/kocevski/427559/ft2_4FGL_J1214.5-2318_daily_bin625.fits
Exposure map: /scratch/kocevski/427559/expmap_401328001_401587201_4FGL_J1214.5-2318_daily_bin625.fits
Exposure cube: /scratch/kocevski/427559/ltcube_401328001_401587201_4FGL_J1214.5-2318_daily_bin625.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/427559/Model_4FGL_J1214.5-2318_daily_bin625.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) = 5801.32016726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.922       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.852       1.0000         .10000E-03   10000.    
     3 'norm      '    6.4061       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2491       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.245       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.383       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.454       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7976       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.2182       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.2801       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    19.442       1.0000         .10000E-03   10000.    
    21 'norm      '    5.8942       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3483       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6104       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72624       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5801.314     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2671 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.928        25.198        .55138E-05   -.37390E-04
   2  Prefactor     26.841        56.638       -.18176E-04   -.52010E-05
   3  norm          6.4064        2.6458        .42074E-06   -.98251E-04
   4  Prefactor     .10000E-03    13.299        .26655E-05** at limit **
   5  Prefactor     .10000E-03    32.813       -.43926E-05** at limit **
   6  norm          .10000E-03    12.288       -.11266E-06** at limit **
   7  Prefactor     .10000E-03    6.2313       -.28235E-06** at limit **
   8  norm          .10000E-03    1.6571       -.18883E-07** at limit **
   9  Prefactor     2.2491        5.5872        .27817E-05   -.71749E-03
  10  Prefactor     .10000E-03    19.252       -.33797E-05** at limit **
  11  Prefactor     14.245        34.997        .39052E-07   -.56394E-04
  12  Prefactor     .10001E-03    16.811       -.64438E-05** at limit **
  13  Prefactor     11.422        59.610        .98167E-04    .16911E-04
  14  Prefactor     14.448        25.474       -.64597E-05   -.38962E-04
  15  Prefactor     3.7976        5.7234       -.72322E-06   -.31125E-03
  16  Prefactor     9.2181        3.0950        .18768E-06    .16981E-04
  17  Prefactor     .10000E-03    3.5765       -.10937E-06** at limit **
  18  norm          2.2801        1.1740        .12396E-06   -.16642E-03
  19  Prefactor     .10000E-03    25.050        .94889E-05** at limit **
  20  norm          19.441        15.715        .10864E-06   -.40198E-04
  21  norm          5.8943        9.4615        .13337E-06   -.20737E-03
  22  Prefactor     3.3483        6.6931       -.13132E-05   -.36206E-03
  23  Normalizat    1.6102        .27067       -.34370E-05   -.45673E-04
  24  Prefactor     .72631        .12540       -.19781E-05   -.11345E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.9281
  Prefactor  = 26.8408
  norm       = 6.40641
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.24908
  Prefactor  = 0.0001
  Prefactor  = 14.2447
  Prefactor  = 0.000100013
  Prefactor  = 11.4224
  Prefactor  = 14.4481
  Prefactor  = 3.79762
  Prefactor  = 9.21811
  Prefactor  = 0.0001
  norm       = 2.28009
  Prefactor  = 0.0001
  norm       = 19.4407
  norm       = 5.89426
  Prefactor  = 3.34834
  Normalizat = 1.61023
  Prefactor  = 0.726305
 **********
 **   18 **HESSE 
 **********

 FCN=   5801.314     FROM HESSE     STATUS=OK           403 CALLS     3074 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.928        25.293        .78681E-04   -1.4689    
   2  Prefactor     26.841        56.639        .77310E-04   -1.4671    
   3  norm          6.4064        2.6486        .75870E-04   -1.5202    
   4  Prefactor     .10000E-03    13.798        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    12.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.2460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6635        .95740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2491        5.4953        .25650E-03   -1.5408    
  10  Prefactor     .10000E-03    19.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.245        34.765        .10612E-03   -1.4953    
  12  Prefactor     .10001E-03    16.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.422        59.654        .11874E-03   -1.5032    
  14  Prefactor     14.448        25.494        .10535E-03   -1.4948    
  15  Prefactor     3.7976        5.7220        .20714E-03   -1.5318    
  16  Prefactor     9.2181        3.0941        .74502E-04   -1.5101    
  17  Prefactor     .10000E-03    3.5783        .14068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.2801        1.1732        .57026E-04   -1.5406    
  19  Prefactor     .10000E-03    25.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          19.441        15.711        .90835E-04   -1.4826    
  21  norm          5.8943        9.3203        .16541E-03   -1.5222    
  22  Prefactor     3.3483        6.5910        .22118E-03   -1.5342    
  23  Normalizat    1.6102        .31908        .31492E-03   -.74726    
  24  Prefactor     .72631        .14752        .21024E-03   -1.0250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70909e-09
Minuit parameter uncertainties:
  1  25.3035
  2  56.7523
  3  2.64867
  4  7.74294e-05
  5  3.95408e-05
  6  1.56741e-05
  7  4.64939e-05
  8  1.3652e-05
  9  5.49654
  10  0.000164022
  11  34.8141
  12  0.000940111
  13  52.2887
  14  25.5133
  15  5.72283
  16  3.09414
  17  6.46156e-07
  18  1.17317
  19  2.31569e-05
  20  15.7141
  21  9.32256
  22  6.59238
  23  0.319484
  24  0.147603
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.142e+01  5.229e+01  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.124e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  2.541e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  7.263e-01  1.476e-01  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  1.610e+00  3.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 183.625 -23.311
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/427559/likelihoodResults_401328001_401587201_4FGL_J1214.5-2318_daily_bin625.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) = 5800.52969214
delta logL = 0.783872190305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5800.20993344
delta logL = 1.10363089103

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     '    7.0528       1.0000          .0000       10.000    
     3 'Normalizat'    1.4648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77357       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+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=   5800.210     FROM MIGRAD    STATUS=CONVERGED    268 CALLS      652 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .86062E-04    .20690E-03** at limit **
   2  Index         7.0527        .23382        .88752E-01   -.24154E-03
   3  Normalizat    1.4646        .32303        .31475E-02   -.84903E-04
   4  Prefactor     .77372        .15015        .20983E-02   -.72375E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.05272
  Normalizat = 1.46458
  Prefactor  = 0.773718
 **********
 **   18 **HESSE 
 **********

 FCN=   5800.210     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      689 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .17145E-01    .16761E-03   -7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.0527        3.0798        .33437E-02   -41.264    
   3  Normalizat    1.4646        .17647        .12590E-03   -2.3538    
   4  Prefactor     .77372        .82344E-01    .83931E-04   -2.1345    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.96071e-09
Minuit parameter uncertainties:
  1  3.49325e-08
  2  3.38138
  3  0.176547
  4  0.0823567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427559': 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) = 5800.20993124
delta logL = 1.10363309472

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.493e-08  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  7.053e+00  3.381e+00  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  2.541e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  7.737e-01  8.236e-02  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  1.465e+00  1.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.43
Ra Dec: 183.625 -23.311
Photon Index (Free Index): 7.05 +/- 3.38
Photon Flux (Free Index): 1.36e-07 +/- 1.39e-06
Energy Flux (Free Index): 1.62e-05 +/- 1.65e-04

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/427559/cmap_HighResolution_401328001_401587201_4FGL_J1214.5-2318_daily_bin625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.45e-03', comment='SUCCESS', energy_flux2='1.62e-05', dlogl='1.10e+00', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-09-05 05:09:08.080609', photon_index_error2='3.38', photon_index2='7.05', ts='0.05', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.65e-04', EG='1.61', time_epoch_completed='1630843748.08', return_code='0', job_id='427559', GAL2='0.77', EG2='1.46', return_code2='102', photon_flux_error2='1.39e-06', ts2='2.43', photon_index='2.12' WHERE bin_id='625' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:09:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 427559: <4FGL_J1214.5-2318_daily_bin625> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin625> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 04:55:34 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:55:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 04:55:35 2021
Terminated at Sun Sep  5 05:09:08 2021
Results reported at Sun Sep  5 05:09:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin625 183.625 -23.3113 401328001 401587201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1214.5-2318 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   675.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            814 sec.

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

