/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 205 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 = 7382
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1312.6+4828_daily_bin90
RA = 198.169, Dec = 48.4701
tmin = 262656001, tmax = 262915201
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='355825', job_status='RUN', time_executed='2021-09-07 05:12:41.755964', time_epoch_executed='1631016761.76' WHERE source_name='4FGL J1312.6+4828' and cadence='daily' and bin_id='90'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/355825

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/355825/ft1_4FGL_J1312.6+4828_daily_bin90.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/355825/ft2_4FGL_J1312.6+4828_daily_bin90.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/355825/ft1_4FGL_J1312.6+4828_daily_bin90.fits outfile=/scratch/kocevski/355825/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin90.fits ra=198.169 dec=48.4701 rad=12.0 tmin=262656001.0 tmax=262915201.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 1.44
user 1.25
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/355825/ft2_4FGL_J1312.6+4828_daily_bin90.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/355825/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin90.fits evtable="EVENTS" outfile="/scratch/kocevski/355825/ft1_filtered_4FGL_J1312.6+4828_daily_bin90.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/355825/ft1_filtered_4FGL_J1312.6+4828_daily_bin90.fits" evtable="EVENTS" scfile=/scratch/kocevski/355825/ft2_4FGL_J1312.6+4828_daily_bin90.fits sctable="SC_DATA" outfile=/scratch/kocevski/355825/ltcube_262656001_262915201_4FGL_J1312.6+4828_daily_bin90.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/355825/ft2_4FGL_J1312.6+4828_daily_bin90.fits
.....................!
real 16.74
user 16.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/355825/ft1_filtered_4FGL_J1312.6+4828_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/355825/ft2_4FGL_J1312.6+4828_daily_bin90.fits sctable="SC_DATA" expcube=/scratch/kocevski/355825/ltcube_262656001_262915201_4FGL_J1312.6+4828_daily_bin90.fits outfile=/scratch/kocevski/355825/expmap_262656001_262915201_4FGL_J1312.6+4828_daily_bin90.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/355825/ltcube_262656001_262915201_4FGL_J1312.6+4828_daily_bin90.fits
.....................!
real 191.22
user 186.23
sys 4.54

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/355825/ft1_filtered_4FGL_J1312.6+4828_daily_bin90.fits scfile=/scratch/kocevski/355825/ft2_4FGL_J1312.6+4828_daily_bin90.fits outfile=/scratch/kocevski/355825/cmap_262656001_262915201_4FGL_J1312.6+4828_daily_bin90.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/355825/ft1_filtered_4FGL_J1312.6+4828_daily_bin90.fits scfile=/scratch/kocevski/355825/ft2_4FGL_J1312.6+4828_daily_bin90.fits outfile=/scratch/kocevski/355825/cmap_HighResolution_262656001_262915201_4FGL_J1312.6+4828_daily_bin90.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/355825/ft1_filtered_4FGL_J1312.6+4828_daily_bin90.fits', '/scratch/kocevski/355825/ft2_4FGL_J1312.6+4828_daily_bin90.fits', expMap='/scratch/kocevski/355825/expmap_262656001_262915201_4FGL_J1312.6+4828_daily_bin90.fits', expCube='/scratch/kocevski/355825/ltcube_262656001_262915201_4FGL_J1312.6+4828_daily_bin90.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/355825/Model_4FGL_J1312.6+4828_daily_bin90.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/355825/ft1_filtered_4FGL_J1312.6+4828_daily_bin90.fits
Spacecraft file(s): /scratch/kocevski/355825/ft2_4FGL_J1312.6+4828_daily_bin90.fits
Exposure map: /scratch/kocevski/355825/expmap_262656001_262915201_4FGL_J1312.6+4828_daily_bin90.fits
Exposure cube: /scratch/kocevski/355825/ltcube_262656001_262915201_4FGL_J1312.6+4828_daily_bin90.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/355825/Model_4FGL_J1312.6+4828_daily_bin90.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) = 4314.54804512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77438       1.0000         .10000E-03   10000.    
     2 'norm      '    10.388       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .96388E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    2.6332       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.1550       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2699       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24079E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    16.353       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9056       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4105       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    14.477       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.692       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4230       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .46725       1.0000          .0000       10.000    
 **********
 **   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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4314.478     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     3442 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77274        1.8193        .52540E-06    .77794E-03
   2  norm          10.387        7.4145       -.32053E-06   -.17894E-03
   3  Prefactor     .10000E-03    14.846       -.71990E-06** at limit **
   4  Prefactor     .10069E-03    19.990        .36331E-05** at limit **
   5  norm          2.6372        2.4544       -.23868E-06   -.11010E-02
   6  Prefactor     .10000E-03    10.569        .18820E-07** at limit **
   7  norm          3.1549        2.3132       -.13245E-07   -.13784E-03
   8  Prefactor     .10000E-03    32.160       -.10477E-05** at limit **
   9  Prefactor     1.2826        36.695        .21950E-05    .15122E-03
  10  Prefactor     .10005E-03    25.555        .24341E-05** at limit **
  11  norm          .10000E-03    5.9413        .37878E-07** at limit **
  12  norm          16.354        6.3918        .25229E-06    .48259E-04
  13  Prefactor     .10000E-03    156.20        .76673E-05** at limit **
  14  Prefactor     6.9112        12.747       -.85655E-07   -.46583E-04
  15  Prefactor     .10000E-03    13.487        .65910E-06** at limit **
  16  norm          .10000E-03    2.9988        .91240E-07** at limit **
  17  Prefactor     5.3991        298.19        .56477E-05   -.51691E-06
  18  Prefactor     .10000E-03    24.245       -.25611E-06** at limit **
  19  Prefactor     .10000E-03    76.181        .18513E-05** at limit **
  20  norm          .10000E-03    1.0942        .64569E-07** at limit **
  21  norm          .10000E-03    40.952        .14557E-05** at limit **
  22  norm          .10000E-03    6.2462        .18115E-06** at limit **
  23  norm          14.473        21.345        .16264E-06   -.13115E-04
  24  Prefactor     16.724        61.036       -.20477E-05   -.23611E-04
  25  Prefactor     .10000E-03    19.225       -.18183E-06** at limit **
  26  Prefactor     .10000E-03    7.9683       -.26656E-07** at limit **
  27  Prefactor     .10000E-03    20.416        .60311E-06** at limit **
  28  Prefactor     .10000E-03    3.1100       -.12358E-05** at limit **
  29  Normalizat    1.4231        .21467       -.21654E-05   -.35358E-03
  30  Prefactor     .46741        .25079        .34147E-05   -.17490E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.772738
  norm       = 10.3873
  Prefactor  = 0.0001
  Prefactor  = 0.000100692
  norm       = 2.63722
  Prefactor  = 0.0001
  norm       = 3.15493
  Prefactor  = 0.0001
  Prefactor  = 1.28258
  Prefactor  = 0.000100053
  norm       = 0.0001
  norm       = 16.3537
  Prefactor  = 0.000100004
  Prefactor  = 6.91119
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.3991
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.4732
  Prefactor  = 16.7243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.42313
  Prefactor  = 0.46741
 **********
 **   18 **HESSE 
 **********

 FCN=   4314.478     FROM HESSE     STATUS=OK           590 CALLS     4032 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77274        1.5645        .13891E-02   -1.5532    
   2  norm          10.387        7.4113        .12432E-03   -1.5063    
   3  Prefactor     .10000E-03    14.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10069E-03    92.043        .35801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.6372        2.3557        .89711E-04   -1.5383    
   6  Prefactor     .10000E-03    10.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.1549        2.3099        .41458E-03   -1.5353    
   8  Prefactor     .10000E-03    32.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2826        40.590        .19744E-02   -1.5481    
  10  Prefactor     .10005E-03    136.12        .53164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.9453        .15637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          16.354        6.3693        .99041E-04   -1.4899    
  13  Prefactor     .10000E-03    158.61        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.9112        12.323        .15267E-03   -1.5182    
  15  Prefactor     .10000E-03    13.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.3500        .21352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3991        298.39        .17276E-03   -1.5243    
  18  Prefactor     .10000E-03    24.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    76.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.9999        .13239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    41.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.3609        .16007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          14.473        21.345        .10527E-03   -1.4947    
  24  Prefactor     16.724        60.922        .98032E-04   -1.4890    
  25  Prefactor     .10000E-03    19.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.3520        .36194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    20.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.0853        .11224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4231        .22967        .19072E-03   -.79962    
  30  Prefactor     .46741        .26239        .37458E-03   -1.1350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7149e-09
Minuit parameter uncertainties:
  1  1.5646
  2  7.41197
  3  6.37007e-05
  4  0.0159896
  5  2.35575
  6  4.2944e-07
  7  2.30997
  8  0.000163153
  9  14.4407
  10  0.00538838
  11  2.13407e-06
  12  6.36958
  13  0.00162563
  14  12.3276
  15  6.397e-05
  16  1.38451e-05
  17  80.7015
  18  3.34157e-05
  19  0.000308785
  20  1.57884e-07
  21  0.000258451
  22  7.47837e-06
  23  21.3558
  24  61.1502
  25  7.97895e-07
  26  2.15166e-06
  27  7.86972e-05
  28  3.64239e-05
  29  0.229837
  30  0.263075
Done.

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

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  1.635e+01  6.370e+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:  4.674e-01  2.631e-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.423e+00  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.69
Ra Dec: 198.169 48.470
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 9.69e-08 +/- 3.77e-08
Energy Flux (Fixed Index): 5.02e-05 +/- 1.96e-05

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) = 4314.27653338
delta logL = 0.201783920746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4314.25619371
delta logL = 0.222123587072

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.507       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8472       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45090       1.0000          .0000       10.000    
 **********
 **   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.

 FCN=   4314.256     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      199 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.507        8.0385        .23931E-02   -.15799E-02
   2  alpha         1.8473        .35210        .18811       -.39669E-05
   3  Normalizat    1.4416        .20361        .30656E-01    .42960E-04
   4  Prefactor     .45090        .24162        .85974E-01   -.31146E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.5066
  alpha      = 1.8473
  Normalizat = 1.44164
  Prefactor  = 0.450904
 **********
 **   18 **HESSE 
 **********

 FCN=   4314.256     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.507        6.9384        .95723E-04   -1.4871    
   2  alpha         1.8473        .31736        .79671E-02   -.26414    
   3  Normalizat    1.4416        .21888        .18974E-03   -.79432    
   4  Prefactor     .45090        .25850        .38093E-03   -1.1428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.70346e-10
Minuit parameter uncertainties:
  1  6.9387
  2  0.318281
  3  0.219023
  4  0.259172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/355825': 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) = 4314.25619369
delta logL = 0.222123605346

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  1.751e+01  6.939e+00  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  1.847e+00  3.183e-01  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:  4.509e-01  2.592e-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.442e+00  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.17
Ra Dec: 198.169 48.470
Photon Index (Free Index): 1.85 +/- 0.32
Photon Flux (Free Index): 8.33e-08 +/- 3.85e-08
Energy Flux (Free Index): 6.65e-05 +/- 4.05e-05

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/355825/cmap_HighResolution_262656001_262915201_4FGL_J1312.6+4828_daily_bin90.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.69e-08', energy_flux2='6.65e-05', photon_flux_error='3.77e-08', dlogl='2.22e-01', energy_flux='5.02e-05', photon_flux2='8.33e-08', job_status='DONE', time_completed='2021-09-07 05:24:09.403751', photon_index_error2='0.32', photon_index2='1.85', ts='20.69', fit_tolerance='1e-08', GAL='0.47', photon_index_error='0.00', energy_flux_error2='4.05e-05', EG='1.42', time_epoch_completed='1631017449.4', return_code='0', job_id='355825', GAL2='0.45', EG2='1.44', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='3.85e-08', ts2='21.17', photon_index='2.07' WHERE bin_id='90' AND source_name='4FGL J1312.6+4828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 05:24:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 355825: <4FGL_J1312.6+4828_daily_bin90> in cluster <slac> Done

Job <4FGL_J1312.6+4828_daily_bin90> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 05:08:56 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 05:09:04 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:09:04 2021
Terminated at Tue Sep  7 05:24:10 2021
Results reported at Tue Sep  7 05:24:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.6+4828_daily_bin90 198.169 48.4701 262656001 262915201 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 :                                   631.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             252.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            914 sec.

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

