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


Performing analysis on: 4FGL_J1312.8-0425_daily_bin816
RA = 198.217, Dec = -4.4196
tmin = 450835201, tmax = 451094401
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='373488', job_status='RUN', time_executed='2021-09-07 06:05:56.623114', time_epoch_executed='1631019956.62' WHERE source_name='4FGL J1312.8-0425' and cadence='daily' and bin_id='816'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/373488

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/373488/ft1_4FGL_J1312.8-0425_daily_bin816.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/373488/ft2_4FGL_J1312.8-0425_daily_bin816.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/373488/ft1_4FGL_J1312.8-0425_daily_bin816.fits outfile=/scratch/kocevski/373488/ft1_filteredMKT_4FGL_J1312.8-0425_daily_bin816.fits ra=198.217 dec=-4.4196 rad=12.0 tmin=450835201.0 tmax=451094401.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.46
user 3.26
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/373488/ft2_4FGL_J1312.8-0425_daily_bin816.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/373488/ft2_4FGL_J1312.8-0425_daily_bin816.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/373488/ft1_filteredMKT_4FGL_J1312.8-0425_daily_bin816.fits evtable="EVENTS" outfile="/scratch/kocevski/373488/ft1_filtered_4FGL_J1312.8-0425_daily_bin816.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.54
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/373488/ft1_filtered_4FGL_J1312.8-0425_daily_bin816.fits" evtable="EVENTS" scfile=/scratch/kocevski/373488/ft2_4FGL_J1312.8-0425_daily_bin816.fits sctable="SC_DATA" outfile=/scratch/kocevski/373488/ltcube_450835201_451094401_4FGL_J1312.8-0425_daily_bin816.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/373488/ft2_4FGL_J1312.8-0425_daily_bin816.fits
.....................!
real 14.26
user 13.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/373488/ft1_filtered_4FGL_J1312.8-0425_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/373488/ft2_4FGL_J1312.8-0425_daily_bin816.fits sctable="SC_DATA" expcube=/scratch/kocevski/373488/ltcube_450835201_451094401_4FGL_J1312.8-0425_daily_bin816.fits outfile=/scratch/kocevski/373488/expmap_450835201_451094401_4FGL_J1312.8-0425_daily_bin816.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/373488/ltcube_450835201_451094401_4FGL_J1312.8-0425_daily_bin816.fits
.....................!
real 192.90
user 188.09
sys 4.38

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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J1312.8-0425 @ 198.217 -4.4196

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/373488/ft1_filtered_4FGL_J1312.8-0425_daily_bin816.fits scfile=/scratch/kocevski/373488/ft2_4FGL_J1312.8-0425_daily_bin816.fits outfile=/scratch/kocevski/373488/cmap_450835201_451094401_4FGL_J1312.8-0425_daily_bin816.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.217 yref=-4.4196 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.59
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/373488/ft1_filtered_4FGL_J1312.8-0425_daily_bin816.fits scfile=/scratch/kocevski/373488/ft2_4FGL_J1312.8-0425_daily_bin816.fits outfile=/scratch/kocevski/373488/cmap_HighResolution_450835201_451094401_4FGL_J1312.8-0425_daily_bin816.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.217 yref=-4.4196 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.65
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/373488/ft1_filtered_4FGL_J1312.8-0425_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/373488/ft2_4FGL_J1312.8-0425_daily_bin816.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/373488/Model_4FGL_J1312.8-0425_daily_bin816.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/373488/ft1_filtered_4FGL_J1312.8-0425_daily_bin816.fits.....................!
real 48.26
user 46.22
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/373488/ft1_filtered_4FGL_J1312.8-0425_daily_bin816.fits', '/scratch/kocevski/373488/ft2_4FGL_J1312.8-0425_daily_bin816.fits', expMap='/scratch/kocevski/373488/expmap_450835201_451094401_4FGL_J1312.8-0425_daily_bin816.fits', expCube='/scratch/kocevski/373488/ltcube_450835201_451094401_4FGL_J1312.8-0425_daily_bin816.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/373488/Model_4FGL_J1312.8-0425_daily_bin816.xml', optimizer='MINUIT')

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

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  7.815e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  2.205e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
313         beta:  1.653e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  5.956e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/373488/ft1_filtered_4FGL_J1312.8-0425_daily_bin816.fits
Spacecraft file(s): /scratch/kocevski/373488/ft2_4FGL_J1312.8-0425_daily_bin816.fits
Exposure map: /scratch/kocevski/373488/expmap_450835201_451094401_4FGL_J1312.8-0425_daily_bin816.fits
Exposure cube: /scratch/kocevski/373488/ltcube_450835201_451094401_4FGL_J1312.8-0425_daily_bin816.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/373488/Model_4FGL_J1312.8-0425_daily_bin816.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) = 5613.93962512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .25101E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.981       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    47.274       1.0000         .10000E-03   10000.    
     6 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .42060       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12379E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4319       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.219       1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.837       1.0000         .10000E-03   10000.    
    15 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .15498E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.8940       1.0000         .10000E-03   10000.    
    18 'norm      '    .10493E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.808       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1292       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91744       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5613.924     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2392 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.894       -.17224E-05** at limit **
   2  Prefactor     .10000E-03    13.172        .44078E-06** at limit **
   3  Prefactor     21.988        12.296        .13723E-05   -.37679E-04
   4  Prefactor     .10000E-03    12.414       -.29803E-05** at limit **
   5  Prefactor     47.248        75.603       -.31512E-04    .61201E-05
   6  norm          .10000E-03    10.092        .30189E-05** at limit **
   7  norm          .42057        .26253        .46757E-06   -.90208E-03
   8  Prefactor     .10000E-03    35.602        .53117E-05** at limit **
   9  norm          .10000E-03    3.9565       -.22215E-07** at limit **
  10  norm          .10000E-03    3.4378        .19059E-07** at limit **
  11  Prefactor     .10000E-03    9.3328       -.26674E-05** at limit **
  12  Prefactor     4.4270        12.722       -.82927E-06   -.85157E-04
  13  Prefactor     19.218        12.162       -.32416E-06    .30262E-04
  14  Prefactor     39.869        25.911        .23542E-05    .95354E-04
  15  norm          .10000E-03    .77829       -.12392E-06** at limit **
  16  norm          .10031E-03    3.2365       -.15257E-06** at limit **
  17  norm          5.8909        6.8499        .93129E-06   -.57870E-05
  18  norm          .10000E-03    22.257       -.11807E-04** at limit **
  19  Prefactor     10.808        8.1029       -.72364E-08   -.58311E-04
  20  Prefactor     .10000E-03    10.975        .18733E-05** at limit **
  21  Normalizat    1.1291        .23138        .85781E-06   -.12984E-05
  22  Prefactor     .91742        .15327        .65569E-06    .24754E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 21.9876
  Prefactor  = 0.0001
  Prefactor  = 47.2476
  norm       = 0.0001
  norm       = 0.420568
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.42699
  Prefactor  = 19.2185
  Prefactor  = 39.8689
  norm       = 0.0001
  norm       = 0.00010031
  norm       = 5.89094
  norm       = 0.0001
  Prefactor  = 10.808
  Prefactor  = 0.0001
  Normalizat = 1.12907
  Prefactor  = 0.917423
 **********
 **   18 **HESSE 
 **********

 FCN=   5613.924     FROM HESSE     STATUS=OK           346 CALLS     2738 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    97.326        .51875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.988        12.289        .85433E-04   -1.4770    
   4  Prefactor     .10000E-03    12.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     47.248        74.857        .58318E-04   -1.4332    
   6  norm          .10000E-03    10.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .42057        .25896        .26077E-04   -1.5578    
   8  Prefactor     .10000E-03    35.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.9711        .14554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.4397        .13568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.4210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.4270        12.716        .19129E-03   -1.5287    
  13  Prefactor     19.218        12.178        .91361E-04   -1.4831    
  14  Prefactor     39.869        23.141        .63506E-04   -1.4444    
  15  norm          .10000E-03    1.2991        .12744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10031E-03    18.346        .22201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.8909        6.7755        .16541E-03   -1.5222    
  18  norm          .10000E-03    22.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.808        8.0903        .12187E-03   -1.5050    
  20  Prefactor     .10000E-03    10.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1291        .27190        .29673E-03   -.88824    
  22  Prefactor     .91742        .18063        .22225E-03   -.95535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68557e-08
Minuit parameter uncertainties:
  1  1.94735e-06
  2  0.00044842
  3  12.2905
  4  4.48468e-06
  5  75.0068
  6  5.28931e-06
  7  0.258958
  8  1.47298e-05
  9  4.01896e-06
  10  1.17503e-06
  11  2.97344e-05
  12  12.7238
  13  12.18
  14  23.1467
  15  8.13086e-06
  16  0.00477045
  17  6.77642
  18  1.8869e-05
  19  8.09107
  20  8.54891e-06
  21  0.272242
  22  0.180748
Done.

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

Extracting fit parameters...

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  1.000e-04  4.019e-06  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  2.205e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
313         beta:  1.653e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  5.956e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  9.174e-01  1.807e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.129e+00  2.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 198.217 -4.420
Photon Flux Upper Limit: 5.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/373488/likelihoodResults_450835201_451094401_4FGL_J1312.8-0425_daily_bin816.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): 0
logL (Free Index) = 5613.92563448
delta logL = -0.00119528189043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5613.92443921
delta logL = -6.22458173893e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2044       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1291       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91743       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+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=   5613.924     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      230 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    954.29        .14555E-02** at limit **
   2  alpha         2.1854        3.5002        .16608        .58095E-06
   3  Normalizat    1.1291        .24480        .29673E-03   -.38313E-06
   4  Prefactor     .91742        .16820        .22225E-03   -.25576E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100017
  alpha      = 2.18539
  Normalizat = 1.12907
  Prefactor  = 0.917423
 **********
 **   18 **HESSE 
 **********

 FCN=   5613.924     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    3.9769        .29109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1854        2.7087        .66434E-02   -.12618    
   3  Normalizat    1.1291        .26103        .11869E-04   -.88824    
   4  Prefactor     .91742        .17936        .88900E-05   -.95535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.78767e-09
Minuit parameter uncertainties:
  1  0.000515612
  2  296.503
  3  0.261331
  4  0.179475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/373488': 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) = 5613.92443919
delta logL = 4.81031747768e-09

Extracting fit parameters...

4FGL J1312.8-0425
   Spectrum: LogParabola
311         norm:  1.000e-04  5.156e-04  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  2.185e+00  2.965e+02  0.000e+00  5.000e+00 ( 1.000e+00)
313         beta:  1.653e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  5.956e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  9.174e-01  1.795e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.129e+00  2.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 198.217 -4.420

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/373488/cmap_HighResolution_450835201_451094401_4FGL_J1312.8-0425_daily_bin816.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.15e-05', job_status='DONE', photon_flux_upper_limit='5.81e-08', time_completed='2021-09-07 06:16:04.755488', job_id='373488', GAL2='0.92', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1631020564.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='4.81e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='816' AND source_name='4FGL J1312.8-0425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:16:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 373488: <4FGL_J1312.8-0425_daily_bin816> in cluster <slac> Done

Job <4FGL_J1312.8-0425_daily_bin816> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 06:05:28 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:05:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 06:05:43 2021
Terminated at Tue Sep  7 06:16:05 2021
Results reported at Tue Sep  7 06:16:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.8-0425_daily_bin816 198.217 -4.4196 450835201 451094401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1312.8-0425 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   604.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   622 sec.
    Turnaround time :                            637 sec.

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

