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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin587
RA = 187.712, Dec = 12.3883
tmin = 391478401, tmax = 391737601
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='754354', job_status='RUN', time_executed='2021-09-05 21:26:22.014199', time_epoch_executed='1630902382.01' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='587'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/754354

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/754354/ft1_4FGL_J1230.8+1223_daily_bin587.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/754354/ft2_4FGL_J1230.8+1223_daily_bin587.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/754354/ft1_4FGL_J1230.8+1223_daily_bin587.fits outfile=/scratch/kocevski/754354/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin587.fits ra=187.712 dec=12.3883 rad=12.0 tmin=391478401.0 tmax=391737601.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 4.45
user 4.14
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/754354/ft2_4FGL_J1230.8+1223_daily_bin587.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/754354/ft2_4FGL_J1230.8+1223_daily_bin587.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/754354/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin587.fits evtable="EVENTS" outfile="/scratch/kocevski/754354/ft1_filtered_4FGL_J1230.8+1223_daily_bin587.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.56
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/754354/ft1_filtered_4FGL_J1230.8+1223_daily_bin587.fits" evtable="EVENTS" scfile=/scratch/kocevski/754354/ft2_4FGL_J1230.8+1223_daily_bin587.fits sctable="SC_DATA" outfile=/scratch/kocevski/754354/ltcube_391478401_391737601_4FGL_J1230.8+1223_daily_bin587.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/754354/ft2_4FGL_J1230.8+1223_daily_bin587.fits
.....................!
real 15.47
user 15.05
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/754354/ft1_filtered_4FGL_J1230.8+1223_daily_bin587.fits evtable="EVENTS" scfile=/scratch/kocevski/754354/ft2_4FGL_J1230.8+1223_daily_bin587.fits sctable="SC_DATA" expcube=/scratch/kocevski/754354/ltcube_391478401_391737601_4FGL_J1230.8+1223_daily_bin587.fits outfile=/scratch/kocevski/754354/expmap_391478401_391737601_4FGL_J1230.8+1223_daily_bin587.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/754354/ltcube_391478401_391737601_4FGL_J1230.8+1223_daily_bin587.fits
.....................!
real 193.44
user 187.90
sys 5.05

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

Setting source of interest to:
4FGL J1230.8+1223 @ 187.712 12.3883

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/754354/ft1_filtered_4FGL_J1230.8+1223_daily_bin587.fits scfile=/scratch/kocevski/754354/ft2_4FGL_J1230.8+1223_daily_bin587.fits outfile=/scratch/kocevski/754354/cmap_391478401_391737601_4FGL_J1230.8+1223_daily_bin587.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.712 yref=12.3883 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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/754354/ft1_filtered_4FGL_J1230.8+1223_daily_bin587.fits scfile=/scratch/kocevski/754354/ft2_4FGL_J1230.8+1223_daily_bin587.fits outfile=/scratch/kocevski/754354/cmap_HighResolution_391478401_391737601_4FGL_J1230.8+1223_daily_bin587.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.712 yref=12.3883 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/754354/ft1_filtered_4FGL_J1230.8+1223_daily_bin587.fits evtable="EVENTS" scfile=/scratch/kocevski/754354/ft2_4FGL_J1230.8+1223_daily_bin587.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/754354/Model_4FGL_J1230.8+1223_daily_bin587.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/754354/ft1_filtered_4FGL_J1230.8+1223_daily_bin587.fits.....................!
real 56.49
user 55.07
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/754354/ft1_filtered_4FGL_J1230.8+1223_daily_bin587.fits', '/scratch/kocevski/754354/ft2_4FGL_J1230.8+1223_daily_bin587.fits', expMap='/scratch/kocevski/754354/expmap_391478401_391737601_4FGL_J1230.8+1223_daily_bin587.fits', expCube='/scratch/kocevski/754354/ltcube_391478401_391737601_4FGL_J1230.8+1223_daily_bin587.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/754354/Model_4FGL_J1230.8+1223_daily_bin587.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1230.8+1223'

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  6.672e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.057e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/754354/ft1_filtered_4FGL_J1230.8+1223_daily_bin587.fits
Spacecraft file(s): /scratch/kocevski/754354/ft2_4FGL_J1230.8+1223_daily_bin587.fits
Exposure map: /scratch/kocevski/754354/expmap_391478401_391737601_4FGL_J1230.8+1223_daily_bin587.fits
Exposure cube: /scratch/kocevski/754354/ltcube_391478401_391737601_4FGL_J1230.8+1223_daily_bin587.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/754354/Model_4FGL_J1230.8+1223_daily_bin587.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) = 5989.05357695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1979       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5057       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2797       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.4064       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.755       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4049       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    85.989       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2785       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.437       1.0000         .10000E-03   10000.    
    19 'norm      '    .91255       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    61.597       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9977       1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.186       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0397       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86590       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5989.033     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3110 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1911        19.998        .46729E-05   -.15116E-03
   2  Prefactor     .10000E-03    78.766       -.30583E-06** at limit **
   3  Prefactor     .10000E-03    4.9885        .18115E-07** at limit **
   4  Prefactor     .10000E-03    11.505        .20876E-08** at limit **
   5  Prefactor     4.5047        5.6635       -.30887E-06   -.12222E-03
   6  Prefactor     .10000E-03    142.38        .13307E-05** at limit **
   7  Prefactor     .10000E-03    13.712       -.16240E-07** at limit **
   8  Prefactor     3.2791        3.4437        .10099E-06   -.89550E-04
   9  Prefactor     .10000E-03    1.7466       -.33293E-07** at limit **
  10  Prefactor     .10000E-03    24.233        .80331E-08** at limit **
  11  norm          4.4058        3.5575        .90087E-07   -.53146E-04
  12  Prefactor     12.754        21.462        .10998E-06   -.12194E-05
  13  norm          1.4048        .35082        .11980E-07   -.94130E-04
  14  norm          .10000E-03    33.489        .13395E-06** at limit **
  15  Prefactor     85.987        95.213       -.24054E-06   -.94748E-05
  16  norm          2.2784        .72558        .10694E-07   -.10867E-03
  17  Prefactor     .10000E-03    2.7001       -.83386E-08** at limit **
  18  Prefactor     10.438        19.250        .14905E-05   -.91427E-04
  19  norm          .91267        1.0241        .57819E-07   -.38143E-04
  20  Prefactor     .10000E-03    16.780        .20637E-07** at limit **
  21  Prefactor     61.625        40.236        .26088E-05    .30889E-03
  22  Prefactor     .10000E-03    4.2785        .47274E-07** at limit **
  23  Prefactor     2.9831        11.855       -.53670E-06   -.76195E-04
  24  Prefactor     20.190        13.949        .12179E-06    .33222E-04
  25  Normalizat    1.0399        .19653       -.69501E-06    .15662E-04
  26  Prefactor     .86574        .16122       -.22045E-06   -.15936E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.19107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.50467
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.27912
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.40575
  Prefactor  = 12.754
  norm       = 1.4048
  norm       = 0.0001
  Prefactor  = 85.9874
  norm       = 2.2784
  Prefactor  = 0.0001
  Prefactor  = 10.4379
  norm       = 0.912666
  Prefactor  = 0.0001
  Prefactor  = 61.6248
  Prefactor  = 0.0001
  Prefactor  = 2.98311
  Prefactor  = 20.19
  Normalizat = 1.03992
  Prefactor  = 0.865739
 **********
 **   18 **HESSE 
 **********

 FCN=   5989.033     FROM HESSE     STATUS=OK           458 CALLS     3568 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1911        20.791        .80625E-03   -1.5210    
   2  Prefactor     .10000E-03    78.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.0069        .16879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.5047        5.6124        .17608E-03   -1.5283    
   6  Prefactor     .10000E-03    143.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.2791        3.4003        .12971E-03   -1.5346    
   9  Prefactor     .10000E-03    1.8059        .19847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.4058        3.5610        .12071E-03   -1.5288    
  12  Prefactor     12.754        21.459        .11216E-03   -1.4994    
  13  norm          1.4048        .35310        .21453E-04   -1.5471    
  14  norm          .10000E-03    33.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     85.987        95.228        .21662E-03   -1.3851    
  16  norm          2.2784        .72381        .34370E-04   -1.5406    
  17  Prefactor     .10000E-03    2.7017        .12417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.438        19.411        .62010E-03   -1.5062    
  19  norm          .91267        .97179        .80049E-03   -1.5517    
  20  Prefactor     .10000E-03    16.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     61.625        44.035        .25563E-03   -1.4136    
  22  Prefactor     .10000E-03    4.3110        .15632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.9831        12.345        .23445E-03   -1.5363    
  24  Prefactor     20.190        13.959        .89147E-04   -1.4809    
  25  Normalizat    1.0399        .22942        .26281E-03   -.91705    
  26  Prefactor     .86574        .18678        .25428E-03   -.97349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.96758e-10
Minuit parameter uncertainties:
  1  20.8149
  2  7.9985e-05
  3  2.23216e-06
  4  1.73259e-06
  5  5.6131
  6  0.000541767
  7  1.04347e-06
  8  3.40045
  9  1.72207e-06
  10  4.76261e-06
  11  3.56117
  12  21.4715
  13  0.353097
  14  2.83208e-05
  15  95.3972
  16  0.723816
  17  1.0735e-06
  18  19.4231
  19  0.971803
  20  3.32694e-06
  21  44.0579
  22  4.3272e-06
  23  12.1409
  24  13.9613
  25  0.229638
  26  0.186914
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  1.073e-06  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.057e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  8.657e-01  1.869e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.040e+00  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.712 12.388
Photon Flux Upper Limit: 4.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/754354/likelihoodResults_391478401_391737601_4FGL_J1230.8+1223_daily_bin587.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) = 5989.03432333
delta logL = -0.00173265027479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5989.03259039
delta logL = 2.87860530079e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0349       1.0000          .0000       10.000    
     3 'Normalizat'    1.0400       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86571       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+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=   5989.033     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10241E-03    3.2298        .12664E-01** at limit **
   2  Index         1.9492        5.1213        .50000        .51019E-04
   3  Normalizat    1.0399        .49370E-02    .26281E-03    .42394E-05
   4  Prefactor     .86574        .44243E-02    .25428E-03    .29508E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102411
  Index      = 1.94923
  Normalizat = 1.03992
  Prefactor  = 0.86574
 **********
 **   18 **HESSE 
 **********

 FCN=   5989.033     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10241E-03    49.253        .12985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9492        8.4612        .50000       -.65625    
   3  Normalizat    1.0399        .19597E-01    .10512E-04   -.91705    
   4  Prefactor     .86574        .17561E-01    .10171E-04   -.97349    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.49268e-08
Minuit parameter uncertainties:
  1  0.0218144
  2  292.576
  3  0.0195967
  4  0.0175616
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/754354': 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) = 5989.0325895
delta logL = 1.18458319776e-06

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.024e-04  2.181e-02  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.949e+00  2.926e+02  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  8.657e-01  1.756e-02  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.040e+00  1.960e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.712 12.388

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/754354/cmap_HighResolution_391478401_391737601_4FGL_J1230.8+1223_daily_bin587.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.03e-03', job_status='DONE', photon_flux_upper_limit='4.02e-08', time_completed='2021-09-05 21:38:36.083452', job_id='754354', GAL2='0.87', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630903116.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='587' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:38:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 754354: <4FGL_J1230.8+1223_daily_bin587> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin587> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:25:22 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:26:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 21:26:12 2021
Terminated at Sun Sep  5 21:38:36 2021
Results reported at Sun Sep  5 21:38:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin587 187.712 12.3883 391478401 391737601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1230.8+1223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   730.11 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             331.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            794 sec.

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

