/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 97 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 = 7463
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1230.8+1223_daily_bin439
RA = 187.712, Dec = 12.3883
tmin = 353116801, tmax = 353376001
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='751690', job_status='RUN', time_executed='2021-09-05 21:19:58.418217', time_epoch_executed='1630901998.42' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/751690

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/751690/ft1_4FGL_J1230.8+1223_daily_bin439.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/751690/ft2_4FGL_J1230.8+1223_daily_bin439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/751690/ft1_4FGL_J1230.8+1223_daily_bin439.fits outfile=/scratch/kocevski/751690/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin439.fits ra=187.712 dec=12.3883 rad=12.0 tmin=353116801.0 tmax=353376001.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.68
user 3.24
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/751690/ft1_filtered_4FGL_J1230.8+1223_daily_bin439.fits" evtable="EVENTS" scfile=/scratch/kocevski/751690/ft2_4FGL_J1230.8+1223_daily_bin439.fits sctable="SC_DATA" outfile=/scratch/kocevski/751690/ltcube_353116801_353376001_4FGL_J1230.8+1223_daily_bin439.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/751690/ft2_4FGL_J1230.8+1223_daily_bin439.fits
.....................!
real 13.86
user 13.20
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/751690/ft1_filtered_4FGL_J1230.8+1223_daily_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/751690/ft2_4FGL_J1230.8+1223_daily_bin439.fits sctable="SC_DATA" expcube=/scratch/kocevski/751690/ltcube_353116801_353376001_4FGL_J1230.8+1223_daily_bin439.fits outfile=/scratch/kocevski/751690/expmap_353116801_353376001_4FGL_J1230.8+1223_daily_bin439.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/751690/ltcube_353116801_353376001_4FGL_J1230.8+1223_daily_bin439.fits
.....................!
real 191.01
user 185.73
sys 4.88

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/751690/ft1_filtered_4FGL_J1230.8+1223_daily_bin439.fits scfile=/scratch/kocevski/751690/ft2_4FGL_J1230.8+1223_daily_bin439.fits outfile=/scratch/kocevski/751690/cmap_353116801_353376001_4FGL_J1230.8+1223_daily_bin439.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/751690/ft1_filtered_4FGL_J1230.8+1223_daily_bin439.fits scfile=/scratch/kocevski/751690/ft2_4FGL_J1230.8+1223_daily_bin439.fits outfile=/scratch/kocevski/751690/cmap_HighResolution_353116801_353376001_4FGL_J1230.8+1223_daily_bin439.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.58
user 0.42
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/751690/ft1_filtered_4FGL_J1230.8+1223_daily_bin439.fits', '/scratch/kocevski/751690/ft2_4FGL_J1230.8+1223_daily_bin439.fits', expMap='/scratch/kocevski/751690/expmap_353116801_353376001_4FGL_J1230.8+1223_daily_bin439.fits', expCube='/scratch/kocevski/751690/ltcube_353116801_353376001_4FGL_J1230.8+1223_daily_bin439.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/751690/Model_4FGL_J1230.8+1223_daily_bin439.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/751690/ft1_filtered_4FGL_J1230.8+1223_daily_bin439.fits
Spacecraft file(s): /scratch/kocevski/751690/ft2_4FGL_J1230.8+1223_daily_bin439.fits
Exposure map: /scratch/kocevski/751690/expmap_353116801_353376001_4FGL_J1230.8+1223_daily_bin439.fits
Exposure cube: /scratch/kocevski/751690/ltcube_353116801_353376001_4FGL_J1230.8+1223_daily_bin439.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/751690/Model_4FGL_J1230.8+1223_daily_bin439.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) = 6363.89488725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8982       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6644       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5267       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.460       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.249       1.0000         .10000E-03   10000.    
    11 'norm      '    .15271E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    56.684       1.0000         .10000E-03   10000.    
    13 'norm      '    .86081       1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.720       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2710       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3345       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .69384       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.721       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.110       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .87715       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0011       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=   6363.892     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3070 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3234        .14441E-06** at limit **
   2  Prefactor     .10000E-03    24.530        .69167E-06** at limit **
   3  Prefactor     2.8975        6.4704        .38273E-06   -.40532E-04
   4  Prefactor     .10000E-03    7.7917       -.48062E-06** at limit **
   5  Prefactor     .10000E-03    1.6660        .38309E-07** at limit **
   6  Prefactor     .10000E-03    41.650       -.73314E-06** at limit **
   7  Prefactor     5.6640        17.691        .29439E-06   -.16909E-04
   8  Prefactor     3.5264        2.9482       -.84756E-07   -.14380E-03
   9  Prefactor     10.460        4.2308        .28281E-06    .38149E-03
  10  Prefactor     25.248        21.752        .15461E-06   -.67680E-04
  11  norm          .10000E-03    1.4679        .24273E-06** at limit **
  12  Prefactor     56.686        35.896        .37477E-06   -.22350E-04
  13  norm          .86084        .31987        .89241E-08   -.16891E-03
  14  norm          .10000E-03    15.749       -.10792E-05** at limit **
  15  Prefactor     49.688        101.45       -.64302E-05   -.85077E-04
  16  norm          1.2711        .50747        .14448E-07   -.11448E-02
  17  Prefactor     7.3334        8.4141        .20082E-05   -.31127E-03
  18  Prefactor     .10000E-03    11.385        .64733E-06** at limit **
  19  norm          .69306        1.4585        .35360E-06   -.27738E-03
  20  Prefactor     19.721        23.505        .59734E-08   -.64731E-05
  21  Prefactor     .10000E-03    24.314        .58436E-06** at limit **
  22  Prefactor     .10000E-03    3.7085       -.80051E-07** at limit **
  23  Prefactor     .10000E-03    5.7432       -.29432E-06** at limit **
  24  Prefactor     13.111        16.569        .20942E-06   -.10726E-04
  25  Normalizat    .87700        .19521       -.94190E-06   -.83336E-04
  26  Prefactor     1.0012        .16497        .16815E-06   -.13106E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.89746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.66398
  Prefactor  = 3.52644
  Prefactor  = 10.4602
  Prefactor  = 25.2478
  norm       = 0.000100001
  Prefactor  = 56.6863
  norm       = 0.860845
  norm       = 0.0001
  Prefactor  = 49.6882
  norm       = 1.2711
  Prefactor  = 7.33339
  Prefactor  = 0.0001
  norm       = 0.693057
  Prefactor  = 19.7213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1115
  Normalizat = 0.877003
  Prefactor  = 1.00122
 **********
 **   18 **HESSE 
 **********

 FCN=   6363.892     FROM HESSE     STATUS=OK           458 CALLS     3528 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8975        6.4592        .23869E-03   -1.5368    
   4  Prefactor     .10000E-03    7.8426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.6819        .10053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    41.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.6640        17.672        .16878E-03   -1.5232    
   8  Prefactor     3.5264        2.9477        .11510E-03   -1.5332    
   9  Prefactor     10.460        4.2673        .95363E-04   -1.5061    
  10  Prefactor     25.248        21.549        .79720E-04   -1.4703    
  11  norm          .10000E-03    6.1410        .17648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     56.686        35.922        .53282E-04   -1.4201    
  13  norm          .86084        .31850        .25962E-04   -1.5522    
  14  norm          .10000E-03    15.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     49.688        106.16        .56872E-04   -1.4297    
  16  norm          1.2711        .49050        .32916E-04   -1.5482    
  17  Prefactor     7.3334        8.7425        .74050E-03   -1.5166    
  18  Prefactor     .10000E-03    11.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .69306        1.4504        .12878E-03   -1.5541    
  20  Prefactor     19.721        23.497        .90191E-04   -1.4819    
  21  Prefactor     .10000E-03    24.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.7230        .15003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.7689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.111        16.631        .11063E-03   -1.4984    
  25  Normalizat    .87700        .22412        .28023E-03   -.97273    
  26  Prefactor     1.0012        .19054        .23654E-03   -.92689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82433e-10
Minuit parameter uncertainties:
  1  1.16364e-05
  2  9.34056e-05
  3  6.46078
  4  3.58477e-05
  5  1.70222e-06
  6  0.000126318
  7  17.6878
  8  2.94785
  9  4.26739
  10  21.5555
  11  0.000183693
  12  35.9356
  13  0.318501
  14  0.000117564
  15  106.571
  16  0.490499
  17  8.74399
  18  4.46883e-05
  19  1.45045
  20  23.5078
  21  7.83604e-05
  22  2.95757e-06
  23  1.76058e-05
  24  16.6369
  25  0.224356
  26  0.190665
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  7.333e+00  8.744e+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

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.001e+00  1.907e-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:  8.770e-01  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/751690/likelihoodResults_353116801_353376001_4FGL_J1230.8+1223_daily_bin439.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6363.73710878
delta logL = 0.154693172888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6363.73544791
delta logL = 0.156354044359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8237       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4694       1.0000          .0000       10.000    
     3 'Normalizat'    .86727       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0057       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=   6363.735     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      289 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8224        9.0794        .17763E-03    .42613E-03
   2  Index         2.4690        .91197        .74949E-02    .10671E-03
   3  Normalizat    .86749        .20999        .28183E-03   -.36695E-03
   4  Prefactor     1.0057        .18872        .23604E-03   -.53616E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.82244
  Index      = 2.46903
  Normalizat = 0.867485
  Prefactor  = 1.00565
 **********
 **   18 **HESSE 
 **********

 FCN=   6363.735     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8224        7.8339        .71050E-05   -1.5269    
   2  Index         2.4690        .78824        .29979E-03   -.53076    
   3  Normalizat    .86749        .20992        .56367E-04   -.97612    
   4  Prefactor     1.0057        .18863        .47207E-04   -.92541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40657e-10
Minuit parameter uncertainties:
  1  7.83558
  2  0.792699
  3  0.210117
  4  0.188759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/751690': 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) = 6363.73544648
delta logL = 0.156355469436

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  4.822e+00  7.836e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.469e+00  7.927e-01  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:  1.006e+00  1.888e-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:  8.675e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.28
Ra Dec: 187.712 12.388
Photon Index (Free Index): 2.47 +/- 0.79
Photon Flux (Free Index): 2.94e-08 +/- 3.32e-08
Energy Flux (Free Index): 8.85e-06 +/- 1.04e-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/751690/cmap_HighResolution_353116801_353376001_4FGL_J1230.8+1223_daily_bin439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.89e-03', comment='SUCCESS', energy_flux2='8.85e-06', dlogl='1.56e-01', photon_flux2='2.94e-08', job_status='DONE', time_completed='2021-09-05 21:32:35.558779', photon_index_error2='0.79', photon_index2='2.47', ts='0.98', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='7.82e-08', energy_flux_error2='1.04e-05', EG='0.88', time_epoch_completed='1630902755.56', return_code='0', job_id='751690', GAL2='1.01', EG2='0.87', return_code2='0', photon_flux_error2='3.32e-08', ts2='1.28', photon_index='2.06' WHERE bin_id='439' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:32:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 751690: <4FGL_J1230.8+1223_daily_bin439> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin439> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:16:16 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:16:41 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:16:41 2021
Terminated at Sun Sep  5 21:32:36 2021
Results reported at Sun Sep  5 21:32:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin439 187.712 12.3883 353116801 353376001 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 :                                   727.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            980 sec.

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

