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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin1224
RA = 187.935, Dec = 28.7917
tmin = 556588801, tmax = 556848001
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='776634', job_status='RUN', time_executed='2021-09-05 22:37:08.075070', time_epoch_executed='1630906628.08' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/776634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/776634/ft1_4FGL_J1231.7+2847_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/776634/ft2_4FGL_J1231.7+2847_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/776634/ft1_4FGL_J1231.7+2847_daily_bin1224.fits outfile=/scratch/kocevski/776634/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin1224.fits ra=187.935 dec=28.7917 rad=12.0 tmin=556588801.0 tmax=556848001.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.79
user 3.51
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/776634/ft2_4FGL_J1231.7+2847_daily_bin1224.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/776634/ft2_4FGL_J1231.7+2847_daily_bin1224.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/776634/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin1224.fits evtable="EVENTS" outfile="/scratch/kocevski/776634/ft1_filtered_4FGL_J1231.7+2847_daily_bin1224.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.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/776634/ft1_filtered_4FGL_J1231.7+2847_daily_bin1224.fits" evtable="EVENTS" scfile=/scratch/kocevski/776634/ft2_4FGL_J1231.7+2847_daily_bin1224.fits sctable="SC_DATA" outfile=/scratch/kocevski/776634/ltcube_556588801_556848001_4FGL_J1231.7+2847_daily_bin1224.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/776634/ft2_4FGL_J1231.7+2847_daily_bin1224.fits
.....................!
real 14.11
user 13.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/776634/ft1_filtered_4FGL_J1231.7+2847_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/776634/ft2_4FGL_J1231.7+2847_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/776634/ltcube_556588801_556848001_4FGL_J1231.7+2847_daily_bin1224.fits outfile=/scratch/kocevski/776634/expmap_556588801_556848001_4FGL_J1231.7+2847_daily_bin1224.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/776634/ltcube_556588801_556848001_4FGL_J1231.7+2847_daily_bin1224.fits
.....................!
real 192.67
user 186.83
sys 5.10

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

Setting source of interest to:
4FGL J1231.7+2847 @ 187.935 28.7917

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/776634/ft1_filtered_4FGL_J1231.7+2847_daily_bin1224.fits scfile=/scratch/kocevski/776634/ft2_4FGL_J1231.7+2847_daily_bin1224.fits outfile=/scratch/kocevski/776634/cmap_556588801_556848001_4FGL_J1231.7+2847_daily_bin1224.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=187.935 yref=28.7917 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/776634/ft1_filtered_4FGL_J1231.7+2847_daily_bin1224.fits scfile=/scratch/kocevski/776634/ft2_4FGL_J1231.7+2847_daily_bin1224.fits outfile=/scratch/kocevski/776634/cmap_HighResolution_556588801_556848001_4FGL_J1231.7+2847_daily_bin1224.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=187.935 yref=28.7917 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.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/776634/ft1_filtered_4FGL_J1231.7+2847_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/776634/ft2_4FGL_J1231.7+2847_daily_bin1224.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/776634/Model_4FGL_J1231.7+2847_daily_bin1224.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/776634/ft1_filtered_4FGL_J1231.7+2847_daily_bin1224.fits......................!
real 18.71
user 17.00
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/776634/ft1_filtered_4FGL_J1231.7+2847_daily_bin1224.fits', '/scratch/kocevski/776634/ft2_4FGL_J1231.7+2847_daily_bin1224.fits', expMap='/scratch/kocevski/776634/expmap_556588801_556848001_4FGL_J1231.7+2847_daily_bin1224.fits', expCube='/scratch/kocevski/776634/ltcube_556588801_556848001_4FGL_J1231.7+2847_daily_bin1224.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/776634/Model_4FGL_J1231.7+2847_daily_bin1224.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1231.7+2847'

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.388e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/776634/ft1_filtered_4FGL_J1231.7+2847_daily_bin1224.fits
Spacecraft file(s): /scratch/kocevski/776634/ft2_4FGL_J1231.7+2847_daily_bin1224.fits
Exposure map: /scratch/kocevski/776634/expmap_556588801_556848001_4FGL_J1231.7+2847_daily_bin1224.fits
Exposure cube: /scratch/kocevski/776634/ltcube_556588801_556848001_4FGL_J1231.7+2847_daily_bin1224.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/776634/Model_4FGL_J1231.7+2847_daily_bin1224.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) = 668.108471104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.7653       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13155E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    225.41       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.325       1.0000         .10000E-03   10000.    
     8 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7740       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5904       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .32026       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10879E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .33372E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    100.48       1.0000         .10000E-03   10000.    
    24 'norm      '    48.977       1.0000         .10000E-03   10000.    
    25 'norm      '    2.5771       1.0000         .10000E-03   10000.    
    26 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.1092       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    2.0335       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .70947       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   668.0837     FROM MIGRAD    STATUS=CONVERGED    801 CALLS     4068 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    118.25        .55904E-07** at limit **
   2  Prefactor     5.7631        16.017       -.24966E-05   -.13321E-04
   3  Prefactor     .10000E-03    222.84        .10477E-04** at limit **
   4  norm          .10000E-03    4.0894       -.18718E-07** at limit **
   5  Prefactor     .10000E-03    19.432       -.35865E-06** at limit **
   6  Prefactor     225.38        356.44        .41507E-05    .16557E-04
   7  Prefactor     29.315        34.709       -.63111E-06   -.49398E-05
   8  norm          .10000E-03    20.068       -.95658E-06** at limit **
   9  Prefactor     .10000E-03    92.089       -.95169E-05** at limit **
  10  Prefactor     2.7798        39.694       -.96518E-05    .26940E-04
  11  Prefactor     2.5878        15.743        .54328E-06    .28092E-04
  12  Prefactor     .10000E-03    19.320       -.45180E-06** at limit **
  13  norm          .32048        1.5126       -.14229E-06    .43862E-04
  14  norm          .10000E-03    16.616       -.50218E-06** at limit **
  15  Prefactor     .10000E-03    36.481       -.29871E-05** at limit **
  16  Prefactor     .10000E-03    45.561        .35041E-05** at limit **
  17  Prefactor     .10000E-03    147.63        .96557E-05** at limit **
  18  Prefactor     .10000E-03    15.862        .10472E-05** at limit **
  19  Prefactor     .10000E-03    23.050        .10029E-05** at limit **
  20  norm          .10000E-03    14.118       -.33579E-06** at limit **
  21  Prefactor     .10000E-03    287.06        .23109E-05** at limit **
  22  norm          .10000E-03    6.7023        .36396E-07** at limit **
  23  Prefactor     100.47        101.32       -.11947E-05   -.97377E-05
  24  norm          48.982        35.917       -.29935E-06   -.94901E-05
  25  norm          2.5951        23.898       -.18887E-05   -.12676E-04
  26  norm          .10000E-03    13.056        .70470E-07** at limit **
  27  norm          .90193        1166.9       -.48580E-04    .16845E-05
  28  Prefactor     .10000E-03    8.5027        .68837E-07** at limit **
  29  Prefactor     .10000E-03    54.601        .72741E-06** at limit **
  30  Normalizat    2.0339        .80628        .22491E-05    .20627E-04
  31  Prefactor     .70942        .82021        .68458E-05    .22440E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.76306
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 225.384
  Prefactor  = 29.3149
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.77976
  Prefactor  = 2.58783
  Prefactor  = 0.0001
  norm       = 0.320483
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 100.473
  norm       = 48.9823
  norm       = 2.59507
  norm       = 0.0001
  norm       = 0.901929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 2.03387
  Prefactor  = 0.709423
 **********
 **   18 **HESSE 
 **********

 FCN=   668.0837     FROM HESSE     STATUS=OK           608 CALLS     4676 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    118.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.7631        15.997        .83557E-03   -1.5228    
   3  Prefactor     .10000E-03    222.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.0896        .51066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.431        .11133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     225.38        356.49        .26948E-04   -1.2694    
   7  Prefactor     29.315        34.178        .73985E-04   -1.4625    
   8  norm          .10000E-03    20.193        .11320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    92.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7798        40.451        .12217E-02   -1.5375    
  11  Prefactor     2.5878        15.687        .18165E-03   -1.5386    
  12  Prefactor     .10000E-03    19.330        .11101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .32048        1.4371        .55005E-04   -1.5595    
  14  norm          .10000E-03    16.655        .10293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    36.470        .15255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    45.570        .17059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    147.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.868        .10056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.069        .12124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    14.143        .94841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    287.75        .21344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.7061        .65357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     100.47        101.60        .40107E-04   -1.3700    
  24  norm          48.982        35.891        .57300E-04   -1.4307    
  25  norm          2.5951        24.641        .22391E-03   -1.5386    
  26  norm          .10000E-03    13.056        .91239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .90193        1195.7        .63443E-02   -1.5518    
  28  Prefactor     .10000E-03    8.5092        .73608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    54.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    2.0339        .94536        .26300E-03   -.63704    
  31  Prefactor     .70942        .93466        .45080E-03   -1.0316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57284e-11
Minuit parameter uncertainties:
  1  2.78211e-05
  2  16.0084
  3  2.71733e-06
  4  1.43311e-06
  5  1.07111e-05
  6  360.012
  7  34.2007
  8  3.36173e-05
  9  4.23232e-06
  10  21.2249
  11  12.7477
  12  2.5712e-06
  13  1.35715
  14  1.22663e-05
  15  2.5292e-05
  16  9.99782e-07
  17  5.73442e-06
  18  1.20577e-05
  19  2.5604e-05
  20  4.74918e-06
  21  0.000296962
  22  4.28274e-06
  23  101.772
  24  35.9066
  25  16.0014
  26  3.86727e-06
  27  67.0624
  28  4.99483e-06
  29  3.98856e-06
  30  0.95432
  31  0.956642
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.000e-04  2.529e-05  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  7.094e-01  9.566e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  2.034e+00  9.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.935 28.792
Photon Flux Upper Limit: 4.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/776634/likelihoodResults_556588801_556848001_4FGL_J1231.7+2847_daily_bin1224.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 668.083870083
delta logL = -0.000120475792187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 668.083749951
delta logL = -3.43345050169e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3453       1.0000          .0000       10.000    
     3 'Normalizat'    2.0338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70952       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+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=   668.0837     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      271 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10082E-03    240.23        .13865E-02** at limit **
   2  Index         2.3056        6.2098        .50000        .54543E-05
   3  Normalizat    2.0339        .52924E-01    .26300E-03    .75214E-04
   4  Prefactor     .70943        .57803E-01    .45077E-03    .70641E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100819
  Index      = 2.3056
  Normalizat = 2.03386
  Prefactor  = 0.70943
 **********
 **   18 **HESSE 
 **********

 FCN=   668.0837     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      300 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10082E-03    1009.3        .27730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3056        6.2625        .50000       -.56911    
   3  Normalizat    2.0339        .11320        .52600E-04   -.63704    
   4  Prefactor     .70943        .12361        .90153E-04   -1.0316    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.37914e-09
Minuit parameter uncertainties:
  1  0.0585164
  2  765.208
  3  0.113215
  4  0.123655
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/776634': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 668.083749882
delta logL = -2.74972194347e-07

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.008e-04  5.852e-02  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  2.306e+00  7.652e+02  0.000e+00  1.000e+01 (-1.000e+00)
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  7.094e-01  1.237e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  2.034e+00  1.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.935 28.792

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/776634/cmap_HighResolution_556588801_556848001_4FGL_J1231.7+2847_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-02', job_status='DONE', photon_flux_upper_limit='4.08e-07', time_completed='2021-09-05 22:44:18.387735', job_id='776634', GAL2='0.71', fit_tolerance='1e-08', EG2='2.03', EG='2.03', time_epoch_completed='1630907058.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='-2.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1224' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:44:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 776634: <4FGL_J1231.7+2847_daily_bin1224> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin1224> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 22:30:42 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:32:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 22:32:26 2021
Terminated at Sun Sep  5 22:44:19 2021
Results reported at Sun Sep  5 22:44:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin1224 187.935 28.7917 556588801 556848001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1231.7+2847 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   402.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            817 sec.

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

