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


Performing analysis on: 4FGL_J1312.6+4828_daily_bin1177
RA = 198.169, Dec = 48.4701
tmin = 544406401, tmax = 544665601
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='362938', job_status='RUN', time_executed='2021-09-07 05:35:11.289077', time_epoch_executed='1631018111.29' WHERE source_name='4FGL J1312.6+4828' and cadence='daily' and bin_id='1177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362938

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362938/ft1_4FGL_J1312.6+4828_daily_bin1177.fits


Retrieving the FT1 file...

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

Retrieving 36 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362938/ft2_4FGL_J1312.6+4828_daily_bin1177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362938/ft1_4FGL_J1312.6+4828_daily_bin1177.fits outfile=/scratch/kocevski/362938/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin1177.fits ra=198.169 dec=48.4701 rad=12.0 tmin=544406401.0 tmax=544665601.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 7.81
user 7.32
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/362938/ft2_4FGL_J1312.6+4828_daily_bin1177.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/362938/ft2_4FGL_J1312.6+4828_daily_bin1177.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/362938/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin1177.fits evtable="EVENTS" outfile="/scratch/kocevski/362938/ft1_filtered_4FGL_J1312.6+4828_daily_bin1177.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.53
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362938/ft1_filtered_4FGL_J1312.6+4828_daily_bin1177.fits" evtable="EVENTS" scfile=/scratch/kocevski/362938/ft2_4FGL_J1312.6+4828_daily_bin1177.fits sctable="SC_DATA" outfile=/scratch/kocevski/362938/ltcube_544406401_544665601_4FGL_J1312.6+4828_daily_bin1177.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/362938/ft2_4FGL_J1312.6+4828_daily_bin1177.fits
.....................!
real 9.15
user 8.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362938/ft1_filtered_4FGL_J1312.6+4828_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/362938/ft2_4FGL_J1312.6+4828_daily_bin1177.fits sctable="SC_DATA" expcube=/scratch/kocevski/362938/ltcube_544406401_544665601_4FGL_J1312.6+4828_daily_bin1177.fits outfile=/scratch/kocevski/362938/expmap_544406401_544665601_4FGL_J1312.6+4828_daily_bin1177.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/362938/ltcube_544406401_544665601_4FGL_J1312.6+4828_daily_bin1177.fits
.....................!
real 192.38
user 186.39
sys 4.78

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

Setting source of interest to:
4FGL J1312.6+4828 @ 198.169 48.4701

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/362938/ft1_filtered_4FGL_J1312.6+4828_daily_bin1177.fits scfile=/scratch/kocevski/362938/ft2_4FGL_J1312.6+4828_daily_bin1177.fits outfile=/scratch/kocevski/362938/cmap_544406401_544665601_4FGL_J1312.6+4828_daily_bin1177.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.169 yref=48.4701 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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362938/ft1_filtered_4FGL_J1312.6+4828_daily_bin1177.fits scfile=/scratch/kocevski/362938/ft2_4FGL_J1312.6+4828_daily_bin1177.fits outfile=/scratch/kocevski/362938/cmap_HighResolution_544406401_544665601_4FGL_J1312.6+4828_daily_bin1177.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.169 yref=48.4701 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/362938/ft1_filtered_4FGL_J1312.6+4828_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/362938/ft2_4FGL_J1312.6+4828_daily_bin1177.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/362938/Model_4FGL_J1312.6+4828_daily_bin1177.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/362938/ft1_filtered_4FGL_J1312.6+4828_daily_bin1177.fits..!
real 13.82
user 12.51
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/362938/ft1_filtered_4FGL_J1312.6+4828_daily_bin1177.fits', '/scratch/kocevski/362938/ft2_4FGL_J1312.6+4828_daily_bin1177.fits', expMap='/scratch/kocevski/362938/expmap_544406401_544665601_4FGL_J1312.6+4828_daily_bin1177.fits', expCube='/scratch/kocevski/362938/ltcube_544406401_544665601_4FGL_J1312.6+4828_daily_bin1177.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/362938/Model_4FGL_J1312.6+4828_daily_bin1177.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1312.6+4828'

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  4.452e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
362         beta:  6.200e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
363           Eb:  7.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/362938/ft1_filtered_4FGL_J1312.6+4828_daily_bin1177.fits
Spacecraft file(s): /scratch/kocevski/362938/ft2_4FGL_J1312.6+4828_daily_bin1177.fits
Exposure map: /scratch/kocevski/362938/expmap_544406401_544665601_4FGL_J1312.6+4828_daily_bin1177.fits
Exposure cube: /scratch/kocevski/362938/ltcube_544406401_544665601_4FGL_J1312.6+4828_daily_bin1177.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/362938/Model_4FGL_J1312.6+4828_daily_bin1177.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 31.3736265689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 31.1889254469

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7286       1.0000         .10000E-03   10000.    
     2 'norm      '    3.4797       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3500       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1042       1.0000         .10000E-03   10000.    
     5 'norm      '    3.6111       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2273       1.0000         .10000E-03   10000.    
     7 'norm      '    3.0027       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3085       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9880       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .72911       1.0000         .10000E-03   10000.    
    11 'norm      '    7.0159       1.0000         .10000E-03   10000.    
    12 'norm      '    4.4517       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.4615       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6048       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.0629       1.0000         .10000E-03   10000.    
    16 'norm      '    2.5428       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.7312       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.321       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5055       1.0000         .10000E-03   10000.    
    20 'norm      '    .10775E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    3.8570       1.0000         .10000E-03   10000.    
    22 'norm      '    2.0332       1.0000         .10000E-03   10000.    
    23 'norm      '    .43762E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.2109       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.5551       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.3385       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.2429       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.3063       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    2.0425       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   30.93536     FROM MIGRAD    STATUS=CONVERGED    139 CALLS      224 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7286        1.0179         .0000         .0000    
   2  norm          3.4797        1.0107         .0000         .0000    
   3  Prefactor     7.3500        1.0023         .0000         .0000    
   4  Prefactor     1.1042        1.1851         .0000         .0000    
   5  norm          3.6111        1.0099         .0000         .0000    
   6  Prefactor     3.2273        1.0125         .0000         .0000    
   7  norm          3.0027        1.0146         .0000         .0000    
   8  Prefactor     4.3085        1.0069         .0000         .0000    
   9  Prefactor     1.9880        1.0358         .0000         .0000    
  10  Prefactor     .10000E-03    189.96       -.55814E-05** at limit **
  11  norm          .10000E-03    1033.6        .11493E-04** at limit **
  12  norm          4.4517        1.0064         .0000         .0000    
  13  Prefactor     9.4615        1.0014         .0000         .0000    
  14  Prefactor     4.6048        1.0060         .0000         .0000    
  15  Prefactor     8.0629        1.0019         .0000         .0000    
  16  norm          2.5428        1.0208         .0000         .0000    
  17  Prefactor     7.7312        1.0021         .0000         .0000    
  18  Prefactor     524.19        846.85        .25415E-05    .21684E-05
  19  Prefactor     4.5055        1.0063         .0000         .0000    
  20  norm          .10000E-03    73.882        .38943E-05** at limit **
  21  norm          3.8570        1.0087         .0000         .0000    
  22  norm          2.0332        1.0340         .0000         .0000    
  23  norm          .10000E-03    137.44       -.24276E-05** at limit **
  24  Prefactor     5.2109        1.0047         .0000         .0000    
  25  Prefactor     5.5551        1.0041         .0000         .0000    
  26  Prefactor     1.3385        1.0961         .0000         .0000    
  27  Prefactor     .10001E-03    604.09        .34307E-04** at limit **
  28  Prefactor     2.3063        1.0257         .0000         .0000    
  29  Normalizat    .10000E-01    1.3192       -.73109E-04** at limit **
  30  Prefactor     1.3389        1.4944        .25837E-04    .11907E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.72859
  norm       = 3.47972
  Prefactor  = 7.34996
  Prefactor  = 1.10422
  norm       = 3.61115
  Prefactor  = 3.22733
  norm       = 3.00268
  Prefactor  = 4.30848
  Prefactor  = 1.98797
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 4.45174
  Prefactor  = 9.46154
  Prefactor  = 4.60476
  Prefactor  = 8.06286
  norm       = 2.54278
  Prefactor  = 7.73116
  Prefactor  = 524.194
  Prefactor  = 4.50549
  norm       = 0.0001
  norm       = 3.85705
  norm       = 2.03325
  norm       = 0.0001
  Prefactor  = 5.21088
  Prefactor  = 5.55506
  Prefactor  = 1.33853
  Prefactor  = 0.000100007
  Prefactor  = 2.30629
  Normalizat = 0.01
  Prefactor  = 1.33885
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   30.93536     FROM HESSE     STATUS=FAILED         9 CALLS      233 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          558.03        555.21         .0000       -1.5378    
   2  norm          3.4797        1.0107         .0000       -1.5335    
   3  Prefactor     7.3500        1.0023         .0000       -1.5166    
   4  Prefactor     1.1042        1.1851         .0000       -1.5498    
   5  norm          3.6111        1.0099         .0000       -1.5328    
   6  Prefactor     3.2273        1.0125         .0000       -1.5349    
   7  norm          3.0027        1.0146         .0000       -1.5361    
   8  Prefactor     4.3085        1.0069         .0000       -1.5293    
   9  Prefactor     1.9880        1.0358         .0000       -1.5426    
  10  Prefactor     .10000E-03    .37045       -.55814E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .35842E-01    .11493E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.4517        1.0064         .0000       -1.5286    
  13  Prefactor     9.4615        1.0014         .0000       -1.5093    
  14  Prefactor     4.6048        1.0060         .0000       -1.5279    
  15  Prefactor     8.0629        1.0019         .0000       -1.5140    
  16  norm          2.5428        1.0208         .0000       -1.5389    
  17  Prefactor     7.7312        1.0021         .0000       -1.5152    
  18  Prefactor     524.19        6.6340        .25415E-05   -1.1088    
  19  Prefactor     4.5055        1.0063         .0000       -1.5283    
  20  norm          .10000E-03    .20597        .38943E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.8570        1.0087         .0000       -1.5315    
  22  norm          2.0332        1.0340         .0000       -1.5423    
  23  norm          .10000E-03    .21342       -.24276E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.2109        1.0047         .0000       -1.5251    
  25  Prefactor     5.5551        1.0041         .0000       -1.5237    
  26  Prefactor     1.3385        1.0961         .0000       -1.5477    
  27  Prefactor     .10001E-03    .25247        .34307E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.3063        1.0257         .0000       -1.5404    
  29  Normalizat    .10000E-01    .25505       -.73109E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.3389        .86062        .25837E-04   -.82159    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.50946e-11
Minuit parameter uncertainties:
  1  1.01786
  2  1.01071
  3  1.00233
  4  1.18513
  5  1.00992
  6  1.01253
  7  1.01458
  8  1.0069
  9  1.03576
  10  1.81201e-05
  11  8.83252e-06
  12  1.00645
  13  1.0014
  14  1.00602
  15  1.00193
  16  1.02077
  17  1.00211
  18  6.63402
  19  1.00629
  20  9.16317e-06
  21  1.00866
  22  1.03398
  23  8.9537e-06
  24  1.00468
  25  1.00411
  26  1.0961
  27  8.48808e-05
  28  1.02568
  29  3.5844e-06
  30  0.870051
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 30.9353647586

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  4.452e+00  1.006e+00  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
362         beta:  6.200e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
363           Eb:  7.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  1.339e+00  8.701e-01  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  1.000e-02  3.584e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 3.5527136788e-15

TS (Fixed Index): 0.00
Ra Dec: 198.169 48.470
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -5.18e+02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362938/likelihoodResults_544406401_544665601_4FGL_J1312.6+4828_daily_bin1177.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): 101
logL (Free Index) = 30.935501103
delta logL = -0.000136344394303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 30.935501103
delta logL = -0.000136344394303

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'alpha     '    2.0662       1.0000          .0000       5.0000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   30.93550     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       62 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    alpha       2.0662        1.0031        .41963         .0000    
                               ERR DEF=  .500    
Final values: 
  alpha      = 2.06623
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   30.93550     FROM HESSE     STATUS=FAILED         7 CALLS       69 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    alpha       .91950        1.1844        .41963       -.17439    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 0
Minuit parameter uncertainties:
  1  1.03316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362938': 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): 101
logL (Free Index) = 30.935501103
delta logL = -0.000136344394303

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  4.452e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12) fixed
361        alpha:  2.066e+00  1.033e+00  0.000e+00  5.000e+00 ( 1.000e+00)
362         beta:  6.200e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
363           Eb:  7.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  1.339e+00  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 0.00
Ra Dec: 198.169 48.470

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/362938/cmap_HighResolution_544406401_544665601_4FGL_J1312.6+4828_daily_bin1177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-5.18e+02', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-07 05:41:00.765775', job_id='362938', GAL2='1.34', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631018460.77', return_code2='101', ts='0.00', comment='SUCCESS', return_code='101', GAL='1.34', dlogl='-1.36e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1177' AND source_name='4FGL J1312.6+4828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 05:41:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 362938: <4FGL_J1312.6+4828_daily_bin1177> in cluster <slac> Done

Job <4FGL_J1312.6+4828_daily_bin1177> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 05:30:59 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 05:34:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 05:34:53 2021
Terminated at Tue Sep  7 05:41:01 2021
Results reported at Tue Sep  7 05:41:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.6+4828_daily_bin1177 198.169 48.4701 544406401 544665601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1312.6+4828 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   344.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             516.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   368 sec.
    Turnaround time :                            602 sec.

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

