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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin525
RA = 183.625, Dec = -23.3113
tmin = 375408001, tmax = 375667201
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='425929', job_status='RUN', time_executed='2021-09-05 04:51:21.139835', time_epoch_executed='1630842681.14' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425929

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425929/ft1_4FGL_J1214.5-2318_daily_bin525.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425929/ft2_4FGL_J1214.5-2318_daily_bin525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425929/ft1_4FGL_J1214.5-2318_daily_bin525.fits outfile=/scratch/kocevski/425929/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin525.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=375408001.0 tmax=375667201.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.57
user 3.33
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/425929/ft2_4FGL_J1214.5-2318_daily_bin525.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/425929/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin525.fits evtable="EVENTS" outfile="/scratch/kocevski/425929/ft1_filtered_4FGL_J1214.5-2318_daily_bin525.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425929/ft1_filtered_4FGL_J1214.5-2318_daily_bin525.fits" evtable="EVENTS" scfile=/scratch/kocevski/425929/ft2_4FGL_J1214.5-2318_daily_bin525.fits sctable="SC_DATA" outfile=/scratch/kocevski/425929/ltcube_375408001_375667201_4FGL_J1214.5-2318_daily_bin525.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/425929/ft2_4FGL_J1214.5-2318_daily_bin525.fits
.....................!
real 11.76
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425929/ft1_filtered_4FGL_J1214.5-2318_daily_bin525.fits evtable="EVENTS" scfile=/scratch/kocevski/425929/ft2_4FGL_J1214.5-2318_daily_bin525.fits sctable="SC_DATA" expcube=/scratch/kocevski/425929/ltcube_375408001_375667201_4FGL_J1214.5-2318_daily_bin525.fits outfile=/scratch/kocevski/425929/expmap_375408001_375667201_4FGL_J1214.5-2318_daily_bin525.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/425929/ltcube_375408001_375667201_4FGL_J1214.5-2318_daily_bin525.fits
.....................!
real 189.68
user 184.92
sys 4.32

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/425929/ft1_filtered_4FGL_J1214.5-2318_daily_bin525.fits scfile=/scratch/kocevski/425929/ft2_4FGL_J1214.5-2318_daily_bin525.fits outfile=/scratch/kocevski/425929/cmap_375408001_375667201_4FGL_J1214.5-2318_daily_bin525.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.52
user 0.38
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425929/ft1_filtered_4FGL_J1214.5-2318_daily_bin525.fits scfile=/scratch/kocevski/425929/ft2_4FGL_J1214.5-2318_daily_bin525.fits outfile=/scratch/kocevski/425929/cmap_HighResolution_375408001_375667201_4FGL_J1214.5-2318_daily_bin525.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.41
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/425929/ft1_filtered_4FGL_J1214.5-2318_daily_bin525.fits evtable="EVENTS" scfile=/scratch/kocevski/425929/ft2_4FGL_J1214.5-2318_daily_bin525.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/425929/Model_4FGL_J1214.5-2318_daily_bin525.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/425929/ft1_filtered_4FGL_J1214.5-2318_daily_bin525.fits.....................!
real 83.40
user 82.01
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7496       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.7361       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11365E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.495       1.0000         .10000E-03   10000.    
     8 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.941       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15049E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2771       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9833       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.421       1.0000         .10000E-03   10000.    
    18 'norm      '    2.4653       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.061       1.0000         .10000E-03   10000.    
    20 'norm      '    14.946       1.0000         .10000E-03   10000.    
    21 'norm      '    4.7447       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.1509       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1357       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95792       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=   10828.04     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2414 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7492        11.401        .27964E-05    .91008E-05
   2  Prefactor     .10000E-03    12.293        .18804E-06** at limit **
   3  norm          3.7361        1.4022        .13040E-07   -.19615E-04
   4  Prefactor     .10000E-03    2.4190       -.23446E-07** at limit **
   5  Prefactor     .10000E-03    8.3701       -.20196E-06** at limit **
   6  norm          .10000E-03    5.9692        .52874E-07** at limit **
   7  Prefactor     12.497        11.012        .39185E-06   -.50116E-05
   8  norm          .10000E-03    1.1612       -.73485E-07** at limit **
   9  Prefactor     .10000E-03    2.7016        .10611E-06** at limit **
  10  Prefactor     18.930        26.052        .13290E-05   -.12464E-04
  11  Prefactor     .10000E-03    72.507       -.83453E-05** at limit **
  12  Prefactor     .10000E-03    5.2957       -.23846E-06** at limit **
  13  Prefactor     .10000E-03    81.246        .98694E-05** at limit **
  14  Prefactor     2.2737        22.333        .19144E-06    .20674E-04
  15  Prefactor     .10000E-03    4.0646        .24895E-07** at limit **
  16  Prefactor     8.9833        2.2802       -.21209E-07   -.16335E-04
  17  Prefactor     11.421        8.6033       -.88155E-07   -.14856E-04
  18  norm          2.4654        .88017       -.41747E-07   -.12848E-03
  19  Prefactor     22.012        53.214        .93366E-05    .20524E-04
  20  norm          14.946        8.1003       -.90205E-07   -.97456E-05
  21  norm          4.7474        5.8311        .54746E-06   -.55683E-04
  22  Prefactor     4.1512        5.2044        .15855E-05   -.15145E-04
  23  Normalizat    1.1358        .18401       -.43865E-06    .18357E-04
  24  Prefactor     .95789        .92143E-01   -.43179E-06    .54616E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.74922
  Prefactor  = 0.0001
  norm       = 3.73609
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.4966
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.27372
  Prefactor  = 0.0001
  Prefactor  = 8.98326
  Prefactor  = 11.4211
  norm       = 2.46538
  Prefactor  = 22.0124
  norm       = 14.9462
  norm       = 4.74739
  Prefactor  = 4.15116
  Normalizat = 1.13575
  Prefactor  = 0.957885
 **********
 **   18 **HESSE 
 **********

 FCN=   10828.04     FROM HESSE     STATUS=OK           403 CALLS     2817 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7492        11.400        .92311E-03   -1.5272    
   2  Prefactor     .10000E-03    12.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.7361        1.4029        .73353E-04   -1.5321    
   4  Prefactor     .10000E-03    5.8202        .30927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.3745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.9736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.497        11.007        .11332E-03   -1.5001    
   8  norm          .10000E-03    1.1665        .10926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7752        .33370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.930        26.021        .92029E-04   -1.4838    
  11  Prefactor     .10000E-03    74.143        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.2999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    82.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2737        22.321        .27211E-03   -1.5406    
  15  Prefactor     .10000E-03    4.2123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.9833        2.2765        .38434E-03   -1.5108    
  17  Prefactor     11.421        8.6093        .11854E-03   -1.5032    
  18  norm          2.4654        .87740        .55809E-04   -1.5394    
  19  Prefactor     22.012        53.401        .85278E-04   -1.4769    
  20  norm          14.946        8.0980        .10360E-03   -1.4935    
  21  norm          4.7474        5.7783        .92360E-03   -1.5272    
  22  Prefactor     4.1512        5.1480        .98917E-03   -1.5300    
  23  Normalizat    1.1358        .21683        .33369E-03   -.88612    
  24  Prefactor     .95789        .10963        .18451E-03   -.94147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61081e-10
Minuit parameter uncertainties:
  1  11.4053
  2  1.6068e-06
  3  1.40289
  4  2.68855e-05
  5  1.68396e-07
  6  2.00266e-06
  7  11.009
  8  2.4239e-06
  9  8.5551e-06
  10  26.0367
  11  0.000317488
  12  5.07236e-06
  13  7.35937e-05
  14  14.2546
  15  5.14971e-06
  16  2.27652
  17  8.61019
  18  0.877403
  19  53.5173
  20  8.0986
  21  5.77897
  22  5.14854
  23  0.216998
  24  0.109659
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  7.359e-05  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:  9.579e-01  1.097e-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.136e+00  2.170e-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: 6.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425929/likelihoodResults_375408001_375667201_4FGL_J1214.5-2318_daily_bin525.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) = 10828.0371922
delta logL = -5.78033996135e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10827.4518714
delta logL = 0.585262978775

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     '    6.7123       1.0000          .0000       10.000    
     3 'Normalizat'    1.0703       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97862       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10828.04     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      399 TOTAL
                     EDM=   .54E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.293        .28974E-05** at limit **
   2  Index         1.5750        .32882       -.35464E-06   -.78078E-05
   3  Normalizat    1.1358        .21025       -.28331E-05   -.17516E-04
   4  Prefactor     .95788        .10869        .30621E-05   -.10918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.575
  Normalizat = 1.13575
  Prefactor  = 0.957885
 **********
 **   18 **HESSE 
 **********

 FCN=   10828.04     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      436 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6171.2        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5750        8.8503        .50000       -.75460    
   3  Normalizat    1.1358        .50741E-01    .75402E-01   -.88612    
   4  Prefactor     .95788        .26151E-01    .45999E-01   -.94147    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.19997e-09
Minuit parameter uncertainties:
  1  0.000217439
  2  35.3195
  3  0.0507428
  4  0.0261513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425929': 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) = 10828.0371356
delta logL = -1.21420998767e-06

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.174e-04  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  1.575e+00  3.532e+01  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:  9.579e-01  2.615e-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.136e+00  5.074e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/425929/cmap_HighResolution_375408001_375667201_4FGL_J1214.5-2318_daily_bin525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', job_status='DONE', photon_flux_upper_limit='6.30e-08', time_completed='2021-09-05 05:07:35.474903', job_id='425929', GAL2='0.96', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630843655.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-1.21e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='525' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:07:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 425929: <4FGL_J1214.5-2318_daily_bin525> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin525 183.625 -23.3113 375408001 375667201 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 :                                   960.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

