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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin306
RA = 183.625, Dec = -23.3113
tmin = 318643201, tmax = 318902401
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='425606', job_status='RUN', time_executed='2021-09-05 04:53:29.488781', time_epoch_executed='1630842809.49' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425606

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425606/ft1_4FGL_J1214.5-2318_daily_bin306.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425606/ft2_4FGL_J1214.5-2318_daily_bin306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425606/ft1_4FGL_J1214.5-2318_daily_bin306.fits outfile=/scratch/kocevski/425606/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin306.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=318643201.0 tmax=318902401.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.95
user 3.23
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425606/ft1_filtered_4FGL_J1214.5-2318_daily_bin306.fits" evtable="EVENTS" scfile=/scratch/kocevski/425606/ft2_4FGL_J1214.5-2318_daily_bin306.fits sctable="SC_DATA" outfile=/scratch/kocevski/425606/ltcube_318643201_318902401_4FGL_J1214.5-2318_daily_bin306.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/425606/ft2_4FGL_J1214.5-2318_daily_bin306.fits
.....................!
real 11.80
user 11.28
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425606/ft1_filtered_4FGL_J1214.5-2318_daily_bin306.fits evtable="EVENTS" scfile=/scratch/kocevski/425606/ft2_4FGL_J1214.5-2318_daily_bin306.fits sctable="SC_DATA" expcube=/scratch/kocevski/425606/ltcube_318643201_318902401_4FGL_J1214.5-2318_daily_bin306.fits outfile=/scratch/kocevski/425606/expmap_318643201_318902401_4FGL_J1214.5-2318_daily_bin306.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/425606/ltcube_318643201_318902401_4FGL_J1214.5-2318_daily_bin306.fits
.....................!
real 194.68
user 184.94
sys 3.98

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/425606/ft1_filtered_4FGL_J1214.5-2318_daily_bin306.fits scfile=/scratch/kocevski/425606/ft2_4FGL_J1214.5-2318_daily_bin306.fits outfile=/scratch/kocevski/425606/cmap_318643201_318902401_4FGL_J1214.5-2318_daily_bin306.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425606/ft1_filtered_4FGL_J1214.5-2318_daily_bin306.fits scfile=/scratch/kocevski/425606/ft2_4FGL_J1214.5-2318_daily_bin306.fits outfile=/scratch/kocevski/425606/cmap_HighResolution_318643201_318902401_4FGL_J1214.5-2318_daily_bin306.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/425606/ft1_filtered_4FGL_J1214.5-2318_daily_bin306.fits evtable="EVENTS" scfile=/scratch/kocevski/425606/ft2_4FGL_J1214.5-2318_daily_bin306.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/425606/Model_4FGL_J1214.5-2318_daily_bin306.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/425606/ft1_filtered_4FGL_J1214.5-2318_daily_bin306.fits.....................!
real 54.85
user 53.43
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.875       1.0000         .10000E-03   10000.    
     3 'norm      '    4.5083       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    47.550       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.459       1.0000         .10000E-03   10000.    
     8 'norm      '    6.3716       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.683       1.0000         .10000E-03   10000.    
    10 'Prefactor '    90.798       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.069       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .37564E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.9915       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0517       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.2839       1.0000         .10000E-03   10000.    
    19 'Prefactor '    56.780       1.0000         .10000E-03   10000.    
    20 'norm      '    3.0937       1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3387       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89615       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=   6060.493     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2705 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.491        .62447E-07** at limit **
   2  Prefactor     28.881        45.056        .20653E-06    .15786E-04
   3  norm          4.5083        2.3609        .27743E-07   -.77725E-05
   4  Prefactor     .10000E-03    4.8814        .19536E-07** at limit **
   5  Prefactor     .10000E-03    11.743       -.49724E-09** at limit **
   6  norm          47.559        35.288        .27284E-06    .41749E-04
   7  Prefactor     23.456        20.997       -.11838E-05   -.28995E-05
   8  norm          6.3718        6.0314        .13811E-05   -.50019E-05
   9  Prefactor     26.684        12.133       -.10960E-06    .24459E-04
  10  Prefactor     90.806        67.240       -.22968E-05    .38537E-04
  11  Prefactor     11.076        88.391       -.75060E-07    .98356E-05
  12  Prefactor     .10000E-03    22.059       -.29868E-06** at limit **
  13  Prefactor     .10001E-03    430.85       -.10285E-04** at limit **
  14  Prefactor     .10000E-03    38.695        .18170E-06** at limit **
  15  Prefactor     9.9916        7.1570        .45257E-07   -.23737E-05
  16  Prefactor     5.0516        2.8339        .30089E-07   -.28347E-05
  17  Prefactor     .10000E-03    5.2558        .63128E-08** at limit **
  18  norm          1.2839        1.2488        .10178E-06    .32832E-04
  19  Prefactor     56.789        85.966        .25720E-06    .34248E-05
  20  norm          3.0936        5.8765        .28836E-06   -.46936E-05
  21  norm          .10000E-03    4.3480        .27871E-06** at limit **
  22  Prefactor     .10000E-03    3.0675        .12890E-06** at limit **
  23  Normalizat    1.3386        .28045       -.39021E-06   -.12202E-04
  24  Prefactor     .89618        .13228       -.44726E-06    .55280E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.881
  norm       = 4.50829
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 47.5587
  Prefactor  = 23.4564
  norm       = 6.37182
  Prefactor  = 26.6844
  Prefactor  = 90.8055
  Prefactor  = 11.0759
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 9.99162
  Prefactor  = 5.05164
  Prefactor  = 0.0001
  norm       = 1.2839
  Prefactor  = 56.789
  norm       = 3.09356
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.33862
  Prefactor  = 0.896179
 **********
 **   18 **HESSE 
 **********

 FCN=   6060.493     FROM HESSE     STATUS=OK           397 CALLS     3102 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.567        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.881        45.076        .74557E-04   -1.4633    
   3  norm          4.5083        2.3626        .83498E-04   -1.5283    
   4  Prefactor     .10000E-03    4.9336        .16793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          47.559        35.346        .58149E-04   -1.4328    
   7  Prefactor     23.456        21.014        .82702E-04   -1.4739    
   8  norm          6.3718        6.0853        .79506E-03   -1.5203    
   9  Prefactor     26.684        12.058        .77553E-04   -1.4674    
  10  Prefactor     90.806        66.937        .21085E-03   -1.3799    
  11  Prefactor     11.076        87.205        .12042E-03   -1.5042    
  12  Prefactor     .10000E-03    22.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    444.53        .42584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    38.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.9916        7.1644        .12677E-03   -1.5076    
  16  Prefactor     5.0516        2.8348        .92399E-04   -1.5258    
  17  Prefactor     .10000E-03    5.2656        .17430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.2839        1.2325        .81344E-04   -1.5481    
  19  Prefactor     56.789        85.672        .53237E-04   -1.4199    
  20  norm          3.0936        5.8589        .23057E-03   -1.5356    
  21  norm          .10000E-03    4.3784        .15813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.0851        .13304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3386        .33153        .35664E-03   -.82421    
  24  Prefactor     .89618        .15627        .20327E-03   -.96275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38259e-11
Minuit parameter uncertainties:
  1  5.10031e-05
  2  45.1292
  3  2.36266
  4  8.34104e-06
  5  2.34666e-06
  6  35.3613
  7  21.0203
  8  6.08594
  9  12.0589
  10  66.9925
  11  62.2823
  12  3.66723e-05
  13  0.00374397
  14  3.41038e-05
  15  7.16502
  16  2.83483
  17  2.02503e-06
  18  1.23254
  19  85.8584
  20  5.85996
  21  1.10549e-06
  22  2.91053e-07
  23  0.332059
  24  0.156344
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.744e-03  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:  8.962e-01  1.563e-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.339e+00  3.321e-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: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425606/likelihoodResults_318643201_318902401_4FGL_J1214.5-2318_daily_bin306.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) = 6060.49348693
delta logL = -1.05823801277e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6060.49348693
delta logL = -1.05817180156e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96362E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1242       1.0000          .0000       10.000    
     3 'Normalizat'    1.3386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89618       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.

 FCN=   6060.493     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      226 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17900E-02    .68395        .13417    ** at limit **
   2  Index         2.2786        3.4609        .50000       -.86248E-04
   3  Normalizat    1.3386        .81809E-03    .80568E-01   -.92885E-04
   4  Prefactor     .89618        .39261E-03    .44956E-01   -.26398E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00179
  Index      = 2.27862
  Normalizat = 1.33862
  Prefactor  = 0.89618
 **********
 **   18 **HESSE 
 **********

 FCN=   6060.493     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      269 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17900E-02    .57443        .14652       -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2786        3.4214        .50000       -.57553    
   3  Normalizat    1.3386        .80264E-03    .35664E-03   -.82421    
   4  Prefactor     .89618        .38568E-03    .20327E-03   -.96275    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.52475e-09
Minuit parameter uncertainties:
  1  0.0623158
  2  4.00119
  3  0.00080264
  4  0.000385682
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425606': 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) = 6060.49347499
delta logL = 1.35884783958e-06

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.790e-03  6.232e-02  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.279e+00  4.001e+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:  8.962e-01  3.857e-04  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.339e+00  8.026e-04  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/425606/cmap_HighResolution_318643201_318902401_4FGL_J1214.5-2318_daily_bin306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.23e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-05 05:04:40.242622', job_id='425606', GAL2='0.90', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1630843480.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.36e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='306' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:04:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 425606: <4FGL_J1214.5-2318_daily_bin306> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin306> 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) <bullet0065>, 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:04:41 2021
Results reported at Sun Sep  5 05:04:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin306 183.625 -23.3113 318643201 318902401 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 :                                   661.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            844 sec.

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

