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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin1433
RA = 183.625, Dec = -23.3113
tmin = 610761601, tmax = 611020801
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='433510', job_status='RUN', time_executed='2021-09-05 05:12:16.877246', time_epoch_executed='1630843936.88' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='1433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433510

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433510/ft1_4FGL_J1214.5-2318_daily_bin1433.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433510/ft2_4FGL_J1214.5-2318_daily_bin1433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433510/ft1_4FGL_J1214.5-2318_daily_bin1433.fits outfile=/scratch/kocevski/433510/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin1433.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=610761601.0 tmax=611020801.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.73
user 3.30
sys 0.38

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433510/ft1_filtered_4FGL_J1214.5-2318_daily_bin1433.fits" evtable="EVENTS" scfile=/scratch/kocevski/433510/ft2_4FGL_J1214.5-2318_daily_bin1433.fits sctable="SC_DATA" outfile=/scratch/kocevski/433510/ltcube_610761601_611020801_4FGL_J1214.5-2318_daily_bin1433.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/433510/ft2_4FGL_J1214.5-2318_daily_bin1433.fits
.....................!
real 12.33
user 11.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433510/ft1_filtered_4FGL_J1214.5-2318_daily_bin1433.fits evtable="EVENTS" scfile=/scratch/kocevski/433510/ft2_4FGL_J1214.5-2318_daily_bin1433.fits sctable="SC_DATA" expcube=/scratch/kocevski/433510/ltcube_610761601_611020801_4FGL_J1214.5-2318_daily_bin1433.fits outfile=/scratch/kocevski/433510/expmap_610761601_611020801_4FGL_J1214.5-2318_daily_bin1433.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/433510/ltcube_610761601_611020801_4FGL_J1214.5-2318_daily_bin1433.fits
.....................!
real 191.71
user 186.67
sys 4.43

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/433510/ft1_filtered_4FGL_J1214.5-2318_daily_bin1433.fits scfile=/scratch/kocevski/433510/ft2_4FGL_J1214.5-2318_daily_bin1433.fits outfile=/scratch/kocevski/433510/cmap_610761601_611020801_4FGL_J1214.5-2318_daily_bin1433.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/433510/ft1_filtered_4FGL_J1214.5-2318_daily_bin1433.fits scfile=/scratch/kocevski/433510/ft2_4FGL_J1214.5-2318_daily_bin1433.fits outfile=/scratch/kocevski/433510/cmap_HighResolution_610761601_611020801_4FGL_J1214.5-2318_daily_bin1433.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.58
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/433510/ft1_filtered_4FGL_J1214.5-2318_daily_bin1433.fits evtable="EVENTS" scfile=/scratch/kocevski/433510/ft2_4FGL_J1214.5-2318_daily_bin1433.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/433510/Model_4FGL_J1214.5-2318_daily_bin1433.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/433510/ft1_filtered_4FGL_J1214.5-2318_daily_bin1433.fits.....................!
real 60.11
user 57.87
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10634E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2879       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1306       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.819       1.0000         .10000E-03   10000.    
     6 'norm      '    4.7668       1.0000         .10000E-03   10000.    
     7 'Prefactor '    57.312       1.0000         .10000E-03   10000.    
     8 'norm      '    3.1691       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.833       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.573       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .24926E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0130       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.2980       1.0000         .10000E-03   10000.    
    19 'Prefactor '    134.45       1.0000         .10000E-03   10000.    
    20 'norm      '    9.7926       1.0000         .10000E-03   10000.    
    21 'norm      '    .11624E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4210       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .75469       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=   6957.646     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2724 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5415        .55660E-08** at limit **
   2  Prefactor     .10000E-03    105.64        .33358E-06** at limit **
   3  norm          1.2873        1.4494        .55572E-07   -.14313E-03
   4  Prefactor     6.1304        4.5688        .23013E-07    .87204E-05
   5  Prefactor     11.817        22.840       -.24855E-07   -.29097E-05
   6  norm          4.7660        9.5431        .23581E-05   -.38550E-03
   7  Prefactor     57.312        22.001       -.64789E-07    .18936E-04
   8  norm          3.1689        5.6236        .34072E-06   -.12729E-03
   9  Prefactor     .10000E-03    1.5850       -.17258E-07** at limit **
  10  Prefactor     16.819        31.465       -.25447E-05   -.14321E-03
  11  Prefactor     29.572        30.792       -.38083E-07    .14009E-05
  12  Prefactor     .10000E-03    5.5062       -.11984E-07** at limit **
  13  Prefactor     .10000E-03    12.788       -.24829E-07** at limit **
  14  Prefactor     .10000E-03    53.015       -.33014E-07** at limit **
  15  Prefactor     .10000E-03    5.2246        .32864E-07** at limit **
  16  Prefactor     5.0171        2.3763       -.25891E-07   -.42048E-04
  17  Prefactor     .10000E-03    7.4798       -.35520E-07** at limit **
  18  norm          3.2979        1.4459        .46089E-07   -.29863E-05
  19  Prefactor     134.43        93.900       -.35023E-05   -.17142E-03
  20  norm          9.7932        10.255        .94453E-07   -.60210E-05
  21  norm          .10000E-03    6.3530       -.23627E-06** at limit **
  22  Prefactor     .10000E-03    3.7738       -.66769E-07** at limit **
  23  Normalizat    1.4209        .23983       -.78780E-07   -.33653E-05
  24  Prefactor     .75482        .11522        .17234E-06   -.22027E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.28734
  Prefactor  = 6.1304
  Prefactor  = 11.817
  norm       = 4.76598
  Prefactor  = 57.3121
  norm       = 3.16887
  Prefactor  = 0.0001
  Prefactor  = 16.8188
  Prefactor  = 29.572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.01711
  Prefactor  = 0.0001
  norm       = 3.29792
  Prefactor  = 134.429
  norm       = 9.79319
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.42086
  Prefactor  = 0.75482
 **********
 **   18 **HESSE 
 **********

 FCN=   6957.646     FROM HESSE     STATUS=OK           399 CALLS     3123 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    106.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2873        1.4241        .10307E-03   -1.5481    
   4  Prefactor     6.1304        4.5673        .14721E-03   -1.5213    
   5  Prefactor     11.817        22.834        .11653E-03   -1.5020    
   6  norm          4.7660        10.446        .92141E-03   -1.5271    
   7  Prefactor     57.312        21.892        .52991E-04   -1.4192    
   8  norm          3.1689        5.5803        .21154E-03   -1.5352    
   9  Prefactor     .10000E-03    1.5893        .10251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.819        32.480        .97620E-04   -1.4888    
  11  Prefactor     29.572        30.798        .73675E-04   -1.4620    
  12  Prefactor     .10000E-03    5.5073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    53.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    27.211        .35479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.0171        2.2934        .82858E-04   -1.5260    
  17  Prefactor     .10000E-03    7.4994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.2979        1.4436        .62740E-04   -1.5345    
  19  Prefactor     134.43        99.358        .17366E-03   -1.3384    
  20  norm          9.7932        10.255        .12805E-03   -1.5082    
  21  norm          .10000E-03    6.4157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.8014        .15814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4209        .28612        .31467E-03   -.80027    
  24  Prefactor     .75482        .13786        .20186E-03   -1.0142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36896e-10
Minuit parameter uncertainties:
  1  2.63197e-06
  2  8.71551e-05
  3  1.42409
  4  4.5676
  5  22.8505
  6  10.4499
  7  21.8954
  8  5.5812
  9  8.76435e-07
  10  32.5137
  11  30.8145
  12  3.43754e-06
  13  2.51586e-06
  14  4.43089e-05
  15  3.52098e-05
  16  2.29348
  17  4.12867e-06
  18  1.44365
  19  99.482
  20  10.2569
  21  5.14158e-05
  22  1.68621e-05
  23  0.286446
  24  0.137921
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.516e-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:  7.548e-01  1.379e-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.421e+00  2.864e-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.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433510/likelihoodResults_610761601_611020801_4FGL_J1214.5-2318_daily_bin1433.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) = 6957.64634536
delta logL = -0.000371726859157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6957.64597405
delta logL = -4.10482243751e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11061E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0990       1.0000          .0000       10.000    
     3 'Normalizat'    1.4210       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75477       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6957.646     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      244 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10171E-03    114.55        .18142E-02** at limit **
   2  Index         2.0351        7.3405        .50000        .13250E-04
   3  Normalizat    1.4209        .17381E-01    .31467E-03   -.30854E-04
   4  Prefactor     .75482        .84715E-02    .20186E-03   -.44717E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010171
  Index      = 2.03515
  Normalizat = 1.42086
  Prefactor  = 0.75482
 **********
 **   18 **HESSE 
 **********

 FCN=   6957.646     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10171E-03    497.94        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0351        5.6556        .50000       -.63474    
   3  Normalizat    1.4209        .37649E-01    .12587E-04   -.80027    
   4  Prefactor     .75482        .18350E-01    .80745E-05   -1.0142    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.67843e-08
Minuit parameter uncertainties:
  1  0.0588634
  2  714.274
  3  0.0376494
  4  0.0183499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433510': 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) = 6957.64597338
delta logL = 2.54321093962e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  7.548e-01  1.835e-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.421e+00  3.765e-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/433510/cmap_HighResolution_610761601_611020801_4FGL_J1214.5-2318_daily_bin1433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.25e-03', job_status='DONE', photon_flux_upper_limit='5.61e-08', time_completed='2021-09-05 05:24:33.704292', job_id='433510', GAL2='0.75', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1630844673.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='2.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1433' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:24:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 433510: <4FGL_J1214.5-2318_daily_bin1433> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin1433> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 05:10:41 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:10:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 05:10:43 2021
Terminated at Sun Sep  5 05:24:34 2021
Results reported at Sun Sep  5 05:24:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin1433 183.625 -23.3113 610761601 611020801 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 :                                   726.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            833 sec.

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

