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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin256
RA = 183.625, Dec = -23.3113
tmin = 305683201, tmax = 305942401
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='425526', job_status='RUN', time_executed='2021-09-05 04:50:45.499461', time_epoch_executed='1630842645.5' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='256'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425526

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425526/ft1_4FGL_J1214.5-2318_daily_bin256.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425526/ft2_4FGL_J1214.5-2318_daily_bin256.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425526/ft1_4FGL_J1214.5-2318_daily_bin256.fits outfile=/scratch/kocevski/425526/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin256.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=305683201.0 tmax=305942401.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 4.91
user 4.56
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425526/ft1_filtered_4FGL_J1214.5-2318_daily_bin256.fits" evtable="EVENTS" scfile=/scratch/kocevski/425526/ft2_4FGL_J1214.5-2318_daily_bin256.fits sctable="SC_DATA" outfile=/scratch/kocevski/425526/ltcube_305683201_305942401_4FGL_J1214.5-2318_daily_bin256.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/425526/ft2_4FGL_J1214.5-2318_daily_bin256.fits
.....................!
real 12.32
user 11.87
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425526/ft1_filtered_4FGL_J1214.5-2318_daily_bin256.fits evtable="EVENTS" scfile=/scratch/kocevski/425526/ft2_4FGL_J1214.5-2318_daily_bin256.fits sctable="SC_DATA" expcube=/scratch/kocevski/425526/ltcube_305683201_305942401_4FGL_J1214.5-2318_daily_bin256.fits outfile=/scratch/kocevski/425526/expmap_305683201_305942401_4FGL_J1214.5-2318_daily_bin256.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/425526/ltcube_305683201_305942401_4FGL_J1214.5-2318_daily_bin256.fits
.....................!
real 195.29
user 190.14
sys 4.20

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/425526/ft1_filtered_4FGL_J1214.5-2318_daily_bin256.fits scfile=/scratch/kocevski/425526/ft2_4FGL_J1214.5-2318_daily_bin256.fits outfile=/scratch/kocevski/425526/cmap_305683201_305942401_4FGL_J1214.5-2318_daily_bin256.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425526/ft1_filtered_4FGL_J1214.5-2318_daily_bin256.fits scfile=/scratch/kocevski/425526/ft2_4FGL_J1214.5-2318_daily_bin256.fits outfile=/scratch/kocevski/425526/cmap_HighResolution_305683201_305942401_4FGL_J1214.5-2318_daily_bin256.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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/425526/ft1_filtered_4FGL_J1214.5-2318_daily_bin256.fits evtable="EVENTS" scfile=/scratch/kocevski/425526/ft2_4FGL_J1214.5-2318_daily_bin256.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/425526/Model_4FGL_J1214.5-2318_daily_bin256.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/425526/ft1_filtered_4FGL_J1214.5-2318_daily_bin256.fits.....................!
real 73.65
user 72.27
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.6091       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3618       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    23.049       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.075       1.0000         .10000E-03   10000.    
     8 'norm      '    7.6643       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .65754       1.0000         .10000E-03   10000.    
    10 'Prefactor '    72.371       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19411E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.539       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0072       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.8871       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.0076       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11697E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3275       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0762       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=   8780.585     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2776 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.522       -.13185E-06** at limit **
   2  Prefactor     .10000E-03    25.907        .96556E-06** at limit **
   3  norm          6.6091        2.4499       -.35315E-07   -.38581E-03
   4  Prefactor     2.3625        6.1094        .58789E-05    .18761E-03
   5  Prefactor     .10000E-03    12.449        .12938E-06** at limit **
   6  norm          23.047        24.677        .73307E-07    .96128E-05
   7  Prefactor     12.070        23.777       -.82431E-06    .20723E-05
   8  norm          7.6647        7.3520        .13196E-06    .23970E-04
   9  Prefactor     .66380        2.6311       -.15463E-06    .21191E-05
  10  Prefactor     72.373        48.269       -.66475E-07    .29039E-04
  11  Prefactor     .10000E-03    24.685       -.67522E-06** at limit **
  12  Prefactor     .10000E-03    7.5517        .23004E-07** at limit **
  13  Prefactor     .10026E-03    22.369       -.72663E-05** at limit **
  14  Prefactor     28.539        27.613        .71538E-06    .13981E-03
  15  Prefactor     .10000E-03    2.8285       -.22049E-07** at limit **
  16  Prefactor     6.0071        2.2368        .23474E-07    .56343E-04
  17  Prefactor     .10000E-03    6.5629       -.20632E-07** at limit **
  18  norm          4.8872        1.2809        .21896E-07   -.12421E-03
  19  Prefactor     .10000E-03    99.279       -.23889E-06** at limit **
  20  norm          .10000E-03    8.8170       -.11546E-08** at limit **
  21  norm          6.0144        5.1982       -.21126E-06   -.53711E-03
  22  Prefactor     .10000E-03    8.4503        .46897E-06** at limit **
  23  Normalizat    1.3274        .24453       -.11348E-05    .12701E-03
  24  Prefactor     1.0762        .11730       -.48641E-07    .98963E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.60906
  Prefactor  = 2.3625
  Prefactor  = 0.0001
  norm       = 23.0471
  Prefactor  = 12.0696
  norm       = 7.66472
  Prefactor  = 0.663797
  Prefactor  = 72.3734
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100257
  Prefactor  = 28.539
  Prefactor  = 0.0001
  Prefactor  = 6.00711
  Prefactor  = 0.0001
  norm       = 4.88715
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 6.01444
  Prefactor  = 0.0001
  Normalizat = 1.32743
  Prefactor  = 1.0762
 **********
 **   18 **HESSE 
 **********

 FCN=   8780.585     FROM HESSE     STATUS=OK           407 CALLS     3183 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.6091        2.4555        .86327E-04   -1.5194    
   4  Prefactor     2.3625        6.2261        .13333E-02   -1.5401    
   5  Prefactor     .10000E-03    12.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          23.047        24.696        .83434E-04   -1.4747    
   7  Prefactor     12.070        23.719        .11528E-03   -1.5013    
   8  norm          7.6647        7.3384        .14485E-03   -1.5154    
   9  Prefactor     .66380        11.736        .28045E-02   -1.5545    
  10  Prefactor     72.373        48.229        .47192E-04   -1.4004    
  11  Prefactor     .10000E-03    24.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.5574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10026E-03    16.546        .14063       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.539        27.637        .74994E-04   -1.4639    
  15  Prefactor     .10000E-03    2.8503        .15382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.0071        2.2363        .83192E-04   -1.5218    
  17  Prefactor     .10000E-03    6.6197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.8872        1.2810        .51930E-04   -1.5266    
  19  Prefactor     .10000E-03    99.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    9.0212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.0144        5.1764        .16382E-03   -1.5217    
  22  Prefactor     .10000E-03    8.6932        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3274        .28253        .37000E-03   -.82751    
  24  Prefactor     1.0762        .13635        .20015E-03   -.90231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43824e-10
Minuit parameter uncertainties:
  1  2.17573e-05
  2  0.000187179
  3  2.4555
  4  6.22781
  5  1.66215e-05
  6  24.7065
  7  23.7376
  8  7.33922
  9  5.58306
  10  48.2554
  11  0.000290262
  12  2.64038e-05
  13  0.00412935
  14  27.6497
  15  2.05665e-06
  16  2.23632
  17  5.91578e-06
  18  1.28102
  19  0.000728588
  20  1.05192e-05
  21  5.17677
  22  7.54909e-05
  23  0.282863
  24  0.136395
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.003e-04  4.129e-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:  1.076e+00  1.364e-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.327e+00  2.829e-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: 5.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425526/likelihoodResults_305683201_305942401_4FGL_J1214.5-2318_daily_bin256.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) = 8780.58536763
delta logL = -2.94897927233e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8780.58536763
delta logL = -2.94894434774e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96354E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1242       1.0000          .0000       10.000    
     3 'Normalizat'    1.3274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0762       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=   8780.585     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      251 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    .20536        .15519    ** at limit **
   2  Index         2.0212        6.5389        .50000        .18239E-05
   3  Normalizat    1.3274        .64502E-03    .83574E-01    .20274E-03
   4  Prefactor     1.0762        .31989E-03    .38570E-01    .26575E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100057
  Index      = 2.02124
  Normalizat = 1.32743
  Prefactor  = 1.0762
 **********
 **   18 **HESSE 
 **********

 FCN=   8780.585     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      292 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    .21341        .15159       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0212        6.6008        .50000       -.63820    
   3  Normalizat    1.3274        .65000E-03    .37000E-03   -.82751    
   4  Prefactor     1.0762        .32291E-03    .20015E-03   -.90231    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.73282e-11
Minuit parameter uncertainties:
  1  0.000219718
  2  10.2323
  3  0.000649997
  4  0.000322908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425526': 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) = 8780.58533805
delta logL = 8.80845618667e-08

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.001e-04  2.197e-04  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.021e+00  1.023e+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:  1.076e+00  3.229e-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.327e+00  6.500e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/425526/cmap_HighResolution_305683201_305942401_4FGL_J1214.5-2318_daily_bin256.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.53e-03', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2021-09-05 05:05:24.240740', job_id='425526', GAL2='1.08', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630843524.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='8.81e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='256' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:05:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 425526: <4FGL_J1214.5-2318_daily_bin256> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin256 183.625 -23.3113 305683201 305942401 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 :                                   873.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            893 sec.

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

