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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin305
RA = 183.625, Dec = -23.3113
tmin = 318384001, tmax = 318643201
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='425605', job_status='RUN', time_executed='2021-09-05 04:52:46.636353', time_epoch_executed='1630842766.64' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425605

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425605/ft1_4FGL_J1214.5-2318_daily_bin305.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425605/ft2_4FGL_J1214.5-2318_daily_bin305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425605/ft1_4FGL_J1214.5-2318_daily_bin305.fits outfile=/scratch/kocevski/425605/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin305.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=318384001.0 tmax=318643201.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.29
user 3.08
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/425605/ft2_4FGL_J1214.5-2318_daily_bin305.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/425605/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin305.fits evtable="EVENTS" outfile="/scratch/kocevski/425605/ft1_filtered_4FGL_J1214.5-2318_daily_bin305.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.52
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425605/ft1_filtered_4FGL_J1214.5-2318_daily_bin305.fits" evtable="EVENTS" scfile=/scratch/kocevski/425605/ft2_4FGL_J1214.5-2318_daily_bin305.fits sctable="SC_DATA" outfile=/scratch/kocevski/425605/ltcube_318384001_318643201_4FGL_J1214.5-2318_daily_bin305.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/425605/ft2_4FGL_J1214.5-2318_daily_bin305.fits
.....................!
real 11.79
user 11.42
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425605/ft1_filtered_4FGL_J1214.5-2318_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/425605/ft2_4FGL_J1214.5-2318_daily_bin305.fits sctable="SC_DATA" expcube=/scratch/kocevski/425605/ltcube_318384001_318643201_4FGL_J1214.5-2318_daily_bin305.fits outfile=/scratch/kocevski/425605/expmap_318384001_318643201_4FGL_J1214.5-2318_daily_bin305.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/425605/ltcube_318384001_318643201_4FGL_J1214.5-2318_daily_bin305.fits
.....................!
real 189.91
user 185.21
sys 4.19

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/425605/ft1_filtered_4FGL_J1214.5-2318_daily_bin305.fits scfile=/scratch/kocevski/425605/ft2_4FGL_J1214.5-2318_daily_bin305.fits outfile=/scratch/kocevski/425605/cmap_318384001_318643201_4FGL_J1214.5-2318_daily_bin305.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425605/ft1_filtered_4FGL_J1214.5-2318_daily_bin305.fits scfile=/scratch/kocevski/425605/ft2_4FGL_J1214.5-2318_daily_bin305.fits outfile=/scratch/kocevski/425605/cmap_HighResolution_318384001_318643201_4FGL_J1214.5-2318_daily_bin305.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.54
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/425605/ft1_filtered_4FGL_J1214.5-2318_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/425605/ft2_4FGL_J1214.5-2318_daily_bin305.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/425605/Model_4FGL_J1214.5-2318_daily_bin305.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/425605/ft1_filtered_4FGL_J1214.5-2318_daily_bin305.fits.....................!
real 51.00
user 49.35
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/425605/ft1_filtered_4FGL_J1214.5-2318_daily_bin305.fits', '/scratch/kocevski/425605/ft2_4FGL_J1214.5-2318_daily_bin305.fits', expMap='/scratch/kocevski/425605/expmap_318384001_318643201_4FGL_J1214.5-2318_daily_bin305.fits', expCube='/scratch/kocevski/425605/ltcube_318384001_318643201_4FGL_J1214.5-2318_daily_bin305.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/425605/Model_4FGL_J1214.5-2318_daily_bin305.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/425605/ft1_filtered_4FGL_J1214.5-2318_daily_bin305.fits
Spacecraft file(s): /scratch/kocevski/425605/ft2_4FGL_J1214.5-2318_daily_bin305.fits
Exposure map: /scratch/kocevski/425605/expmap_318384001_318643201_4FGL_J1214.5-2318_daily_bin305.fits
Exposure cube: /scratch/kocevski/425605/ltcube_318384001_318643201_4FGL_J1214.5-2318_daily_bin305.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/425605/Model_4FGL_J1214.5-2318_daily_bin305.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) = 5891.5034061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.0646       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9258       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    21.866       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.108       1.0000         .10000E-03   10000.    
     8 'norm      '    11.140       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    83.028       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4726       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.573       1.0000         .10000E-03   10000.    
    18 'norm      '    2.9184       1.0000         .10000E-03   10000.    
    19 'Prefactor '    69.520       1.0000         .10000E-03   10000.    
    20 'norm      '    10.612       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3470       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.1767       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .73924       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0887       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=   5891.499     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2681 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.618        .18201E-06** at limit **
   2  Prefactor     .10000E-03    55.179        .24547E-04** at limit **
   3  norm          5.0643        2.3058       -.15717E-07   -.11066E-03
   4  Prefactor     1.9259        5.1641        .20476E-05   -.81568E-03
   5  Prefactor     .10000E-03    19.607        .17846E-04** at limit **
   6  norm          21.872        21.728        .62526E-06   -.56753E-07
   7  Prefactor     14.103        36.426       -.65135E-05    .50503E-04
   8  norm          11.141        12.833        .22297E-05    .22095E-04
   9  Prefactor     .10000E-03    2.8640        .58361E-07** at limit **
  10  Prefactor     .10000E-03    79.833       -.24571E-04** at limit **
  11  Prefactor     .10000E-03    27.047       -.69745E-05** at limit **
  12  Prefactor     .10000E-03    26.569       -.60741E-05** at limit **
  13  Prefactor     .10000E-03    17.652       -.10379E-04** at limit **
  14  Prefactor     83.023        43.250       -.28681E-05    .30492E-04
  15  Prefactor     .10000E-03    2.0648       -.11673E-07** at limit **
  16  Prefactor     9.4727        3.1102        .27408E-08    .60955E-05
  17  Prefactor     10.573        11.061       -.14055E-06    .12503E-04
  18  norm          2.9187        1.4791        .17939E-07    .93716E-04
  19  Prefactor     69.531        98.854        .82456E-05    .27543E-04
  20  norm          10.613        10.453       -.17899E-06    .12556E-04
  21  norm          1.3496        3.9147       -.17868E-05   -.10012E-02
  22  Prefactor     9.1781        6.7424       -.98665E-07    .74232E-04
  23  Normalizat    .73935        .27835        .45265E-06    .26917E-04
  24  Prefactor     1.0886        .13566       -.11658E-06    .89829E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.06433
  Prefactor  = 1.92591
  Prefactor  = 0.0001
  norm       = 21.8721
  Prefactor  = 14.1025
  norm       = 11.141
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 83.0226
  Prefactor  = 0.0001
  Prefactor  = 9.47273
  Prefactor  = 10.5729
  norm       = 2.91867
  Prefactor  = 69.5311
  norm       = 10.6126
  norm       = 1.34958
  Prefactor  = 9.1781
  Normalizat = 0.739351
  Prefactor  = 1.08861
 **********
 **   18 **HESSE 
 **********

 FCN=   5891.499     FROM HESSE     STATUS=OK           393 CALLS     3074 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    55.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.0643        2.3071        .75955E-04   -1.5258    
   4  Prefactor     1.9259        5.7068        .14968E-02   -1.5430    
   5  Prefactor     .10000E-03    19.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          21.872        21.732        .85657E-04   -1.4772    
   7  Prefactor     14.103        36.293        .10664E-03   -1.4957    
   8  norm          11.141        12.815        .60016E-03   -1.5040    
   9  Prefactor     .10000E-03    2.8801        .12681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    79.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     83.023        43.224        .44083E-04   -1.3883    
  15  Prefactor     .10000E-03    2.0693        .10770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.4727        3.1114        .75398E-04   -1.5092    
  17  Prefactor     10.573        11.061        .12322E-03   -1.5058    
  18  norm          2.9187        1.4755        .63255E-04   -1.5366    
  19  Prefactor     69.531        107.26        .48143E-04   -1.4038    
  20  norm          10.613        10.452        .12299E-03   -1.5056    
  21  norm          1.3496        11.623        .18861E-02   -1.5476    
  22  Prefactor     9.1781        6.8522        .13230E-03   -1.5102    
  23  Normalizat    .73935        .30631        .43510E-03   -1.0236    
  24  Prefactor     1.0886        .15202        .18283E-03   -.89831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82054e-09
Minuit parameter uncertainties:
  1  5.48843e-06
  2  1.9998e-06
  3  2.30713
  4  5.70838
  5  2.01408e-05
  6  21.7394
  7  36.3501
  8  12.8183
  9  6.18523e-06
  10  0.000138006
  11  5.72058e-05
  12  0.000106542
  13  9.78304e-06
  14  43.2407
  15  1.98226e-07
  16  3.11149
  17  11.0634
  18  1.47557
  19  107.564
  20  10.4535
  21  7.92288
  22  6.85275
  23  0.307021
  24  0.152076
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  9.783e-06  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:  1.089e+00  1.521e-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:  7.394e-01  3.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.625 -23.311
Photon Flux Upper Limit: 7.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425605/likelihoodResults_318384001_318643201_4FGL_J1214.5-2318_daily_bin305.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) = 5891.49945849
delta logL = -0.000269668927103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5891.49945816
delta logL = -0.00026934455127

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96141E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1242       1.0000          .0000       10.000    
     3 'Normalizat'    .73935       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0886       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5891.499     FROM MIGRAD    STATUS=FAILED        90 CALLS      236 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10290E-03    30.769        .18147E-01** at limit **
   2  Index         1.6053        5.6747        .50000        .12755E-05
   3  Normalizat    .73935        .75984E-02    .43510E-03   -.44681E-05
   4  Prefactor     1.0886        .38388E-02    .18283E-03    .14675E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5891.499     FROM SIMPLEX   STATUS=UNCHANGED    110 CALLS      346 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10290E-03    30.769        .82916E-03** at limit **
   2  Index         1.6053        5.6747        .15522E-02    .12755E-05
   3  Normalizat    .73935        .75984E-02    .10931E-04   -.44681E-05
   4  Prefactor     1.0886        .38388E-02    .39997E-05    .14675E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5891.499     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      379 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10074E-03    274.99        .36294E-02** at limit **
   2  Index         1.6590        5.7760        .50000        .20914E-05
   3  Normalizat    .73935        .23183E-01    .17404E-04   -.43113E-05
   4  Prefactor     1.0886        .11713E-01    .73133E-05    .14923E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100745
  Index      = 1.65898
  Normalizat = 0.739351
  Prefactor  = 1.08861
 **********
 **   18 **HESSE 
 **********

 FCN=   5891.499     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      408 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10074E-03    1254.0        .72587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6590        5.7887        .50000       -.73179    
   3  Normalizat    .73935        .53043E-01    .34808E-05   -1.0236    
   4  Prefactor     1.0886        .26800E-01    .14627E-05   -.89831    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.92234e-09
Minuit parameter uncertainties:
  1  0.0624711
  2  2341.07
  3  0.0530464
  4  0.0268003
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425605': 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) = 5891.4991881
delta logL = 7.2063630796e-07

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.007e-04  6.247e-02  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  1.659e+00  2.341e+03  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:  1.089e+00  2.680e-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:  7.394e-01  5.305e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.625 -23.311

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/425605/cmap_HighResolution_318384001_318643201_4FGL_J1214.5-2318_daily_bin305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.52e-03', job_status='DONE', photon_flux_upper_limit='7.29e-08', time_completed='2021-09-05 05:03:40.724959', job_id='425605', GAL2='1.09', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1630843420.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='7.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='305' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:03:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 425605: <4FGL_J1214.5-2318_daily_bin305> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin305> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 04:50:37 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:50:38 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:50:38 2021
Terminated at Sun Sep  5 05:03:41 2021
Results reported at Sun Sep  5 05:03:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin305 183.625 -23.3113 318384001 318643201 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 :                                   649.00 sec.
    Max Memory :                                 1240 MB
    Average Memory :                             339.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            784 sec.

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

