/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 93 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 = 7350
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1312.4-2156_daily_bin1603
RA = 198.111, Dec = -21.938
tmin = 654825601, tmax = 655084801
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='913910', job_status='RUN', time_executed='2021-10-05 00:04:33.826614', time_epoch_executed='1633417473.83' WHERE source_name='4FGL J1312.4-2156' and cadence='daily' and bin_id='1603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913910

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913910/ft1_4FGL_J1312.4-2156_daily_bin1603.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913910/ft2_4FGL_J1312.4-2156_daily_bin1603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913910/ft1_4FGL_J1312.4-2156_daily_bin1603.fits outfile=/scratch/kocevski/913910/ft1_filteredMKT_4FGL_J1312.4-2156_daily_bin1603.fits ra=198.111 dec=-21.938 rad=12.0 tmin=654825601.0 tmax=655084801.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.07
user 2.79
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/913910/ft2_4FGL_J1312.4-2156_daily_bin1603.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/913910/ft2_4FGL_J1312.4-2156_daily_bin1603.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/913910/ft1_filteredMKT_4FGL_J1312.4-2156_daily_bin1603.fits evtable="EVENTS" outfile="/scratch/kocevski/913910/ft1_filtered_4FGL_J1312.4-2156_daily_bin1603.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.73
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913910/ft1_filtered_4FGL_J1312.4-2156_daily_bin1603.fits" evtable="EVENTS" scfile=/scratch/kocevski/913910/ft2_4FGL_J1312.4-2156_daily_bin1603.fits sctable="SC_DATA" outfile=/scratch/kocevski/913910/ltcube_654825601_655084801_4FGL_J1312.4-2156_daily_bin1603.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/913910/ft2_4FGL_J1312.4-2156_daily_bin1603.fits
.....................!
real 13.58
user 11.84
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913910/ft1_filtered_4FGL_J1312.4-2156_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/913910/ft2_4FGL_J1312.4-2156_daily_bin1603.fits sctable="SC_DATA" expcube=/scratch/kocevski/913910/ltcube_654825601_655084801_4FGL_J1312.4-2156_daily_bin1603.fits outfile=/scratch/kocevski/913910/expmap_654825601_655084801_4FGL_J1312.4-2156_daily_bin1603.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/913910/ltcube_654825601_655084801_4FGL_J1312.4-2156_daily_bin1603.fits
.....................!
real 193.48
user 187.67
sys 4.70

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 186 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1312.4-2156 @ 198.111 -21.938

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/913910/ft1_filtered_4FGL_J1312.4-2156_daily_bin1603.fits scfile=/scratch/kocevski/913910/ft2_4FGL_J1312.4-2156_daily_bin1603.fits outfile=/scratch/kocevski/913910/cmap_654825601_655084801_4FGL_J1312.4-2156_daily_bin1603.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=198.111 yref=-21.938 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913910/ft1_filtered_4FGL_J1312.4-2156_daily_bin1603.fits scfile=/scratch/kocevski/913910/ft2_4FGL_J1312.4-2156_daily_bin1603.fits outfile=/scratch/kocevski/913910/cmap_HighResolution_654825601_655084801_4FGL_J1312.4-2156_daily_bin1603.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=198.111 yref=-21.938 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/913910/ft1_filtered_4FGL_J1312.4-2156_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/913910/ft2_4FGL_J1312.4-2156_daily_bin1603.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/913910/Model_4FGL_J1312.4-2156_daily_bin1603.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/913910/ft1_filtered_4FGL_J1312.4-2156_daily_bin1603.fits..................!
real 16.73
user 15.41
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/913910/ft1_filtered_4FGL_J1312.4-2156_daily_bin1603.fits', '/scratch/kocevski/913910/ft2_4FGL_J1312.4-2156_daily_bin1603.fits', expMap='/scratch/kocevski/913910/expmap_654825601_655084801_4FGL_J1312.4-2156_daily_bin1603.fits', expCube='/scratch/kocevski/913910/ltcube_654825601_655084801_4FGL_J1312.4-2156_daily_bin1603.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/913910/Model_4FGL_J1312.4-2156_daily_bin1603.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1312.4-2156'

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  1.303e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        alpha:  1.827e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
271         beta:  1.515e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  1.405e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/913910/ft1_filtered_4FGL_J1312.4-2156_daily_bin1603.fits
Spacecraft file(s): /scratch/kocevski/913910/ft2_4FGL_J1312.4-2156_daily_bin1603.fits
Exposure map: /scratch/kocevski/913910/expmap_654825601_655084801_4FGL_J1312.4-2156_daily_bin1603.fits
Exposure cube: /scratch/kocevski/913910/ltcube_654825601_655084801_4FGL_J1312.4-2156_daily_bin1603.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/913910/Model_4FGL_J1312.4-2156_daily_bin1603.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 211.431206917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3271       1.0000         .10000E-03   10000.    
     2 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.276       1.0000         .10000E-03   10000.    
     4 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     5 'norm      '    10000.       1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'norm      '    9999.9       1.0000         .10000E-03   10000.    
     8 'norm      '    10000.       1.0000         .10000E-03   10000.    
     9 'norm      '    4249.7       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12929E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    32.385       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.837       1.0000         .10000E-03   10000.    
    18 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    63.091       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .39791E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    .38881E-10   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   192.5901     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3584 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9484.2        .56412E-04** at limit **
   2  norm         10000.0        6427.2       -.82610E-05** at limit **
   3  Prefactor    10000.0        5150.1        .44977E-05** at limit **
   4  norm         10000.0        2075.9       -.17167E-04** at limit **
   5  norm         10000.0        7098.6        .56905E-04** at limit **
   6  Prefactor    10000.0        7261.3       -.69695E-04** at limit **
   7  norm         10000.0        8324.4        .58811E-05** at limit **
   8  norm         10000.0        920.58        .48693E-05** at limit **
   9  norm          4246.8        3397.5       -.13468E-04    .55683E-06
  10  Prefactor     .10000E-03    234.51       -.99616E-05** at limit **
  11  Prefactor     .10000E-03    105.00        .30436E-05** at limit **
  12  norm          .10000E-03    24.237       -.26391E-05** at limit **
  13  norm          32.315        37.160        .11534E-05    .21253E-04
  14  Prefactor     .10000E-03    114.82        .63723E-05** at limit **
  15  Prefactor     .10000E-03    70.676       -.61874E-06** at limit **
  16  Prefactor     .10000E-03    34.212       -.30051E-06** at limit **
  17  Prefactor     35.520        74.755        .17400E-05    .17498E-04
  18  norm          .10000E-03    12.565        .54249E-06** at limit **
  19  norm          .10000E-03    53.573        .69179E-07** at limit **
  20  Prefactor     62.646        162.03        .79486E-05    .47952E-05
  21  norm          .10000E-03    25.142       -.70136E-07** at limit **
  22  Prefactor     .10000E-03    7.4001        .80588E-09** at limit **
  23  Normalizat    .39736E-01    .62243       -.15997E-04    .58455E-05
  24  Prefactor     .10431E-11    .20246        .37558E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 10000
  norm       = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 10000
  norm       = 10000
  norm       = 4246.81
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 32.3151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.5201
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 62.6458
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.0397361
  Prefactor  = 1.04305e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   192.5901     FROM HESSE     STATUS=OK           381 CALLS     3965 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9387.4        .11096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm         10000.0        6424.8        .18290E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        5135.9        .36408E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm         10000.0        8378.6        .19660E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm         10000.0        7101.7        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        7274.2        .19046E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm         10000.0        8354.9        .19137E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm         10000.0        921.37        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4246.8        3403.3        .40458E-04   -.15121    
  10  Prefactor     .10000E-03    253.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    107.03        .14076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    24.717        .67454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          32.315        37.441        .70412E-04   -1.4570    
  14  Prefactor     .10000E-03    116.45        .14686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    72.845        .11591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    34.723        .79986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     35.520        75.332        .66944E-04   -1.4515    
  18  norm          .10000E-03    12.636        .48246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    54.772        .10053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     62.646        165.48        .50520E-04   -1.4123    
  21  norm          .10000E-03    25.375        .68426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.4320        .36970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .39736E-01    .76421        .61141E-02   -1.4616    
  24  Prefactor     .10431E-11    .24239        .40097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34866e-10
Minuit parameter uncertainties:
  1  0.000762462
  2  0.00442539
  3  0.037326
  4  0.408204
  5  0.0219377
  6  0.0333896
  7  0.0728245
  8  0.00254841
  9  3753.85
  10  0.000954772
  11  4.82891e-05
  12  3.81116e-05
  13  37.4687
  14  0.000160534
  15  4.72435e-06
  16  9.40424e-06
  17  75.5344
  18  1.0702e-05
  19  5.32594e-07
  20  166.715
  21  1.47801e-06
  22  4.44599e-08
  23  0.305957
  24  1.0096e-06
Done.

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

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  1.000e+04  2.548e-03  1.000e-04  1.000e+04 ( 1.000e-12)
270        alpha:  1.827e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
271         beta:  1.515e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  1.405e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  1.043e-12  1.010e-06  0.000e+00  1.000e+01 ( 1.000e+00)
614        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
615        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
612   Normalization:  3.974e-02  3.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.36
Ra Dec: 198.111 -21.938
Photon Index (Fixed Index): 1.83 +/- 0.00
Photon Flux (Fixed Index): 9.51e-05 +/- 2.42e-11
Energy Flux (Fixed Index): 8.89e-02 +/- 2.27e-08

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): 0
logL (Free Index) = 179.991719379
delta logL = 12.5983527728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 179.990523238
delta logL = 12.5995489134

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4372       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .13642E-07   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   179.9905     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      195 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        6203.6        .15731E-02** at limit **
   2  alpha         3.4371        .17822       -.58230E-06    .11843E-03
   3  Normalizat    .10000E-01    .38668        .19788E-07** at limit **
   4  Prefactor     .44409E-14    .99021E-01    .46153E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  alpha      = 3.43713
  Normalizat = 0.01
  Prefactor  = 4.44089e-15
 **********
 **   18 **HESSE 
 **********

 FCN=   179.9905     FROM HESSE     STATUS=OK            25 CALLS      220 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        6203.6        .18868E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.4371        .17823        .10097E-03    .38424    
   3  Normalizat    .10000E-01    .54371        .51845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .44409E-14    .10066        .13048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.32675e-11
Minuit parameter uncertainties:
  1  0.000661453
  2  0.178407
  3  1.94933e-07
  4  4.32185e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913910': 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): 0
logL (Free Index) = 179.990521937
delta logL = 12.5995502147

Extracting fit parameters...

4FGL J1312.4-2156
   Spectrum: LogParabola
269         norm:  1.000e+04  6.615e-04  1.000e-04  1.000e+04 ( 1.000e-12)
270        alpha:  3.437e+00  1.784e-01  0.000e+00  5.000e+00 ( 1.000e+00)
271         beta:  1.515e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  1.405e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  4.441e-15  4.322e-08  0.000e+00  1.000e+01 ( 1.000e+00)
614        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
615        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
612   Normalization:  1.000e-02  1.949e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 44.08
Ra Dec: 198.111 -21.938
Photon Index (Free Index): 3.44 +/- 0.18
Photon Flux (Free Index): 1.71e-03 +/- 6.47e-04
Energy Flux (Free Index): 3.37e-01 +/- 1.05e-01

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/913910/cmap_HighResolution_654825601_655084801_4FGL_J1312.4-2156_daily_bin1603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.51e-05', energy_flux2='3.37e-01', photon_flux_error='2.42e-11', dlogl='1.26e+01', energy_flux='8.89e-02', photon_flux2='1.71e-03', job_status='DONE', time_completed='2021-10-05 00:10:12.511038', photon_index_error2='0.18', photon_index2='3.44', ts='16.36', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', energy_flux_error2='1.05e-01', EG='0.04', time_epoch_completed='1633417812.51', return_code='0', job_id='913910', GAL2='0.00', EG2='0.01', return_code2='0', energy_flux_error='2.27e-08', photon_flux_error2='6.47e-04', ts2='44.08', photon_index='1.83' WHERE bin_id='1603' AND source_name='4FGL J1312.4-2156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct  5 00:10:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 913910: <4FGL_J1312.4-2156_daily_bin1603> in cluster <slac> Done

Job <4FGL_J1312.4-2156_daily_bin1603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct  5 00:02:34 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct  5 00:02:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct  5 00:02:35 2021
Terminated at Tue Oct  5 00:10:13 2021
Results reported at Tue Oct  5 00:10:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.4-2156_daily_bin1603 198.111 -21.938 654825601 655084801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1312.4-2156 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   338.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             381.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   457 sec.
    Turnaround time :                            459 sec.

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

