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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin1285
RA = 183.625, Dec = -23.3113
tmin = 572400001, tmax = 572659201
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='431902', job_status='RUN', time_executed='2021-09-05 05:06:42.968861', time_epoch_executed='1630843602.97' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='1285'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/431902

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/431902/ft1_4FGL_J1214.5-2318_daily_bin1285.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/431902/ft2_4FGL_J1214.5-2318_daily_bin1285.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/431902/ft1_4FGL_J1214.5-2318_daily_bin1285.fits outfile=/scratch/kocevski/431902/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin1285.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=572400001.0 tmax=572659201.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.69
user 3.47
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/431902/ft1_filtered_4FGL_J1214.5-2318_daily_bin1285.fits" evtable="EVENTS" scfile=/scratch/kocevski/431902/ft2_4FGL_J1214.5-2318_daily_bin1285.fits sctable="SC_DATA" outfile=/scratch/kocevski/431902/ltcube_572400001_572659201_4FGL_J1214.5-2318_daily_bin1285.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/431902/ft2_4FGL_J1214.5-2318_daily_bin1285.fits
.....................!
real 12.34
user 12.03
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/431902/ft1_filtered_4FGL_J1214.5-2318_daily_bin1285.fits evtable="EVENTS" scfile=/scratch/kocevski/431902/ft2_4FGL_J1214.5-2318_daily_bin1285.fits sctable="SC_DATA" expcube=/scratch/kocevski/431902/ltcube_572400001_572659201_4FGL_J1214.5-2318_daily_bin1285.fits outfile=/scratch/kocevski/431902/expmap_572400001_572659201_4FGL_J1214.5-2318_daily_bin1285.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/431902/ltcube_572400001_572659201_4FGL_J1214.5-2318_daily_bin1285.fits
.....................!
real 190.76
user 185.96
sys 4.36

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/431902/ft1_filtered_4FGL_J1214.5-2318_daily_bin1285.fits scfile=/scratch/kocevski/431902/ft2_4FGL_J1214.5-2318_daily_bin1285.fits outfile=/scratch/kocevski/431902/cmap_572400001_572659201_4FGL_J1214.5-2318_daily_bin1285.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/431902/ft1_filtered_4FGL_J1214.5-2318_daily_bin1285.fits scfile=/scratch/kocevski/431902/ft2_4FGL_J1214.5-2318_daily_bin1285.fits outfile=/scratch/kocevski/431902/cmap_HighResolution_572400001_572659201_4FGL_J1214.5-2318_daily_bin1285.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .19079       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3613       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.366       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.540       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10842E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.038       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1668       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.534       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.4938       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .88086       1.0000         .10000E-03   10000.    
    19 'Prefactor '    51.355       1.0000         .10000E-03   10000.    
    20 'norm      '    5.1110       1.0000         .10000E-03   10000.    
    21 'norm      '    6.7748       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .80285       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0851       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=   9160.540     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2770 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8952        .10037E-06** at limit **
   2  Prefactor     .10000E-03    32.264       -.15726E-06** at limit **
   3  norm          .19649        .84021        .83372E-07   -.50951E-03
   4  Prefactor     3.3631        4.5714        .37463E-05   -.58902E-03
   5  Prefactor     26.353        29.036       -.74846E-06   -.16913E-04
   6  norm          .10000E-03    6.0353       -.15277E-07** at limit **
   7  Prefactor     11.542        8.4368       -.10100E-06   -.35312E-04
   8  norm          .10000E-03    1.8207        .47599E-07** at limit **
   9  Prefactor     .10000E-03    2.4402       -.18084E-05** at limit **
  10  Prefactor     .10000E-03    9.9207       -.77423E-07** at limit **
  11  Prefactor     36.022        24.042        .11989E-05    .65797E-04
  12  Prefactor     .10000E-03    7.2133       -.22005E-07** at limit **
  13  Prefactor     .10000E-03    16.273        .34031E-07** at limit **
  14  Prefactor     3.1698        16.927       -.28171E-06   -.44151E-04
  15  Prefactor     11.534        5.6640        .89191E-07   -.17646E-04
  16  Prefactor     5.4938        1.9939        .11477E-07    .90247E-05
  17  Prefactor     .10000E-03    4.2074        .11997E-06** at limit **
  18  norm          .88087        .74305        .92581E-07    .38328E-03
  19  Prefactor     51.357        38.760       -.11863E-06    .26351E-06
  20  norm          5.1113        6.0097        .12941E-06   -.39318E-05
  21  norm          6.7749        4.6274        .14226E-06   -.89543E-05
  22  Prefactor     .10000E-03    2.6593       -.33594E-07** at limit **
  23  Normalizat    .80278        .19900       -.21088E-05   -.19609E-04
  24  Prefactor     1.0851        .10108        .18275E-06   -.85446E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.196491
  Prefactor  = 3.3631
  Prefactor  = 26.3528
  norm       = 0.0001
  Prefactor  = 11.5422
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 36.0221
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.16985
  Prefactor  = 11.5343
  Prefactor  = 5.49377
  Prefactor  = 0.0001
  norm       = 0.880867
  Prefactor  = 51.357
  norm       = 5.11127
  norm       = 6.77486
  Prefactor  = 0.0001
  Normalizat = 0.802779
  Prefactor  = 1.08513
 **********
 **   18 **HESSE 
 **********

 FCN=   9160.540     FROM HESSE     STATUS=OK           401 CALLS     3171 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .19649        1.6532        .16750E-02   -1.5619    
   4  Prefactor     3.3631        4.6051        .11036E-02   -1.5341    
   5  Prefactor     26.353        29.054        .78017E-04   -1.4681    
   6  norm          .10000E-03    6.0417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.542        8.4168        .11793E-03   -1.5028    
   8  norm          .10000E-03    1.8463        .12573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.6617        .15107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.9239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.022        24.084        .66758E-04   -1.4507    
  12  Prefactor     .10000E-03    7.2565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1698        16.901        .22775E-03   -1.5352    
  15  Prefactor     11.534        5.6649        .11796E-03   -1.5029    
  16  Prefactor     5.4938        1.9950        .78336E-04   -1.5239    
  17  Prefactor     .10000E-03    4.2397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .88087        .71264        .72434E-03   -1.5520    
  19  Prefactor     51.357        38.757        .55964E-04   -1.4273    
  20  norm          5.1113        6.0042        .17784E-03   -1.5256    
  21  norm          6.7749        4.6089        .15415E-03   -1.5187    
  22  Prefactor     .10000E-03    2.6846        .15183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .80278        .22627        .36996E-03   -.99966    
  24  Prefactor     1.0851        .11680        .16948E-03   -.89943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44313e-08
Minuit parameter uncertainties:
  1  2.81222e-05
  2  3.66609e-05
  3  1.13966
  4  4.6056
  5  29.0693
  6  1.68525e-06
  7  8.41763
  8  4.69434e-06
  9  0.000200773
  10  3.7528e-06
  11  24.0903
  12  1.55735e-05
  13  2.92502e-05
  14  14.6449
  15  5.66515
  16  1.99506
  17  1.68322e-05
  18  0.712649
  19  38.7759
  20  6.00491
  21  4.60911
  22  3.42909e-06
  23  0.226536
  24  0.116826
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.925e-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:  1.085e+00  1.168e-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:  8.028e-01  2.265e-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: 4.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/431902/likelihoodResults_572400001_572659201_4FGL_J1214.5-2318_daily_bin1285.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) = 9160.54074404
delta logL = -0.000291488560833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9160.54045222
delta logL = 3.24169377564e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0631       1.0000          .0000       10.000    
     3 'Normalizat'    .80273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0852       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=   9160.540     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      249 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10124E-03    67.814        .18142E-02** at limit **
   2  Index         1.9938        8.5430        .50000        .19031E-04
   3  Normalizat    .80278        .84064E-02    .36996E-03    .49351E-04
   4  Prefactor     1.0851        .44462E-02    .16948E-03   -.56549E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101243
  Index      = 1.99382
  Normalizat = 0.802784
  Prefactor  = 1.08513
 **********
 **   18 **HESSE 
 **********

 FCN=   9160.540     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10124E-03    301.77        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9938        5.9701        .50000       -.64505    
   3  Normalizat    .80278        .18003E-01    .14798E-04   -.99966    
   4  Prefactor     1.0851        .95219E-02    .33895E-04   -.89943    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.601e-09
Minuit parameter uncertainties:
  1  0.0389312
  2  199.11
  3  0.018003
  4  0.00952194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/431902': 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) = 9160.5404518
delta logL = 7.51144398237e-07

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.012e-04  3.893e-02  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  1.994e+00  1.991e+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:  1.085e+00  9.522e-03  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:  8.028e-01  1.800e-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/431902/cmap_HighResolution_572400001_572659201_4FGL_J1214.5-2318_daily_bin1285.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.32e-03', job_status='DONE', photon_flux_upper_limit='4.38e-08', time_completed='2021-09-05 05:21:26.601885', job_id='431902', GAL2='1.09', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630844486.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='7.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1285' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:21:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 431902: <4FGL_J1214.5-2318_daily_bin1285> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin1285 183.625 -23.3113 572400001 572659201 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 :                                   876.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            956 sec.

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

