/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 60 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 = 7429
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1230.8+1223_daily_bin399
RA = 187.712, Dec = 12.3883
tmin = 342748801, tmax = 343008001
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='751587', job_status='RUN', time_executed='2021-09-05 21:19:04.426886', time_epoch_executed='1630901944.43' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/751587

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/751587/ft1_4FGL_J1230.8+1223_daily_bin399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/751587/ft2_4FGL_J1230.8+1223_daily_bin399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/751587/ft1_4FGL_J1230.8+1223_daily_bin399.fits outfile=/scratch/kocevski/751587/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin399.fits ra=187.712 dec=12.3883 rad=12.0 tmin=342748801.0 tmax=343008001.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.86
user 3.32
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/751587/ft2_4FGL_J1230.8+1223_daily_bin399.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/751587/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin399.fits evtable="EVENTS" outfile="/scratch/kocevski/751587/ft1_filtered_4FGL_J1230.8+1223_daily_bin399.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 1.40
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/751587/ft1_filtered_4FGL_J1230.8+1223_daily_bin399.fits" evtable="EVENTS" scfile=/scratch/kocevski/751587/ft2_4FGL_J1230.8+1223_daily_bin399.fits sctable="SC_DATA" outfile=/scratch/kocevski/751587/ltcube_342748801_343008001_4FGL_J1230.8+1223_daily_bin399.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/751587/ft2_4FGL_J1230.8+1223_daily_bin399.fits
.....................!
real 17.07
user 15.69
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/751587/ft1_filtered_4FGL_J1230.8+1223_daily_bin399.fits evtable="EVENTS" scfile=/scratch/kocevski/751587/ft2_4FGL_J1230.8+1223_daily_bin399.fits sctable="SC_DATA" expcube=/scratch/kocevski/751587/ltcube_342748801_343008001_4FGL_J1230.8+1223_daily_bin399.fits outfile=/scratch/kocevski/751587/expmap_342748801_343008001_4FGL_J1230.8+1223_daily_bin399.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/751587/ltcube_342748801_343008001_4FGL_J1230.8+1223_daily_bin399.fits
.....................!
real 192.39
user 186.91
sys 4.68

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/751587/ft1_filtered_4FGL_J1230.8+1223_daily_bin399.fits scfile=/scratch/kocevski/751587/ft2_4FGL_J1230.8+1223_daily_bin399.fits outfile=/scratch/kocevski/751587/cmap_342748801_343008001_4FGL_J1230.8+1223_daily_bin399.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.55
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/751587/ft1_filtered_4FGL_J1230.8+1223_daily_bin399.fits scfile=/scratch/kocevski/751587/ft2_4FGL_J1230.8+1223_daily_bin399.fits outfile=/scratch/kocevski/751587/cmap_HighResolution_342748801_343008001_4FGL_J1230.8+1223_daily_bin399.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.257       1.0000         .10000E-03   10000.    
     2 'Prefactor '    147.88       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8156       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1177       1.0000         .10000E-03   10000.    
     6 'Prefactor '    105.32       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9626       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0111       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .78706       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10912       1.0000         .10000E-03   10000.    
    14 'norm      '    57.387       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .82261       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.7875       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.371       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7874       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    71.011       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5664       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .59090       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=   6947.756     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3194 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.258        16.485       -.38762E-08    .25273E-05
   2  Prefactor     147.84        124.21        .83039E-06   -.45312E-04
   3  Prefactor     .10000E-03    3.1110       -.13672E-07** at limit **
   4  Prefactor     8.8185        16.192        .28665E-06   -.18305E-04
   5  Prefactor     1.1179        3.0976        .57103E-07   -.27566E-04
   6  Prefactor     105.33        86.254       -.23922E-06    .32153E-04
   7  Prefactor     .10000E-03    16.805       -.74326E-07** at limit **
   8  Prefactor     4.9633        4.0315       -.53323E-08    .14752E-04
   9  Prefactor     6.0126        4.3415        .20297E-07   -.25413E-04
  10  Prefactor     .10000E-03    7.5588        .45402E-07** at limit **
  11  norm          .79251        3.9601       -.23704E-05   -.27877E-03
  12  Prefactor     .10000E-03    8.5194        .98396E-08** at limit **
  13  norm          .10907        .19466        .70793E-08   -.12546E-03
  14  norm          57.318        55.263        .43880E-05   -.89935E-04
  15  Prefactor     .10000E-03    56.514       -.80730E-07** at limit **
  16  norm          .82262        .55731        .25483E-07    .11167E-02
  17  Prefactor     .10000E-03    2.6045        .52041E-08** at limit **
  18  Prefactor     .10000E-03    7.4946       -.10383E-07** at limit **
  19  norm          3.7876        1.8810        .61393E-07    .22280E-03
  20  Prefactor     20.373        20.910        .13415E-07    .11652E-04
  21  Prefactor     .10000E-03    22.878        .53505E-07** at limit **
  22  Prefactor     2.7879        6.4131        .11754E-05   -.22288E-03
  23  Prefactor     .10000E-03    3.8313        .27883E-07** at limit **
  24  Prefactor     71.024        21.144       -.35601E-07    .77167E-04
  25  Normalizat    1.5659        .21304        .10245E-06    .10152E-03
  26  Prefactor     .59128        .16675       -.11729E-07    .72693E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2583
  Prefactor  = 147.84
  Prefactor  = 0.0001
  Prefactor  = 8.81852
  Prefactor  = 1.11786
  Prefactor  = 105.331
  Prefactor  = 0.0001
  Prefactor  = 4.96334
  Prefactor  = 6.01261
  Prefactor  = 0.0001
  norm       = 0.792512
  Prefactor  = 0.0001
  norm       = 0.109069
  norm       = 57.3177
  Prefactor  = 0.0001
  norm       = 0.822619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.78764
  Prefactor  = 20.3732
  Prefactor  = 0.0001
  Prefactor  = 2.78794
  Prefactor  = 0.0001
  Prefactor  = 71.0239
  Normalizat = 1.56586
  Prefactor  = 0.591278
 **********
 **   18 **HESSE 
 **********

 FCN=   6947.756     FROM HESSE     STATUS=OK           462 CALLS     3656 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.258        16.446        .11442E-03   -1.5008    
   2  Prefactor     147.84        124.73        .16570E-03   -1.3270    
   3  Prefactor     .10000E-03    3.1135        .14356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.8185        16.172        .67499E-03   -1.5114    
   5  Prefactor     1.1179        3.0189        .23137E-03   -1.5497    
   6  Prefactor     105.33        86.226        .19592E-03   -1.3652    
   7  Prefactor     .10000E-03    16.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.9633        3.9950        .12754E-03   -1.5262    
   9  Prefactor     6.0126        4.3310        .12601E-03   -1.5218    
  10  Prefactor     .10000E-03    7.5655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .79251        4.0593        .24349E-03   -1.5530    
  12  Prefactor     .10000E-03    8.5218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10907        .17778        .46233E-03   -1.5642    
  14  norm          57.318        55.468        .26478E-03   -1.4192    
  15  Prefactor     .10000E-03    56.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .82262        .53995        .46089E-03   -1.5527    
  17  Prefactor     .10000E-03    2.6077        .13137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.5018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.7876        1.8728        .75247E-04   -1.5319    
  20  Prefactor     20.373        20.911        .88741E-04   -1.4805    
  21  Prefactor     .10000E-03    22.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.7879        6.3565        .12186E-02   -1.5374    
  23  Prefactor     .10000E-03    3.8358        .15931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     71.024        21.317        .47638E-04   -1.4020    
  25  Normalizat    1.5659        .25102        .24841E-03   -.75944    
  26  Prefactor     .59128        .19409        .32396E-03   -1.0795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24113e-09
Minuit parameter uncertainties:
  1  16.4524
  2  124.954
  3  5.33592e-07
  4  16.1801
  5  3.01932
  6  86.3284
  7  1.17012e-05
  8  3.99524
  9  4.33118
  10  2.52939e-08
  11  3.58737
  12  1.0759e-06
  13  0.177783
  14  55.5184
  15  8.70549e-05
  16  0.539958
  17  1.16134e-08
  18  5.80177e-06
  19  1.87282
  20  20.9182
  21  2.00853e-05
  22  6.35809
  23  7.13909e-08
  24  21.3193
  25  0.251223
  26  0.194312
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  1.161e-08  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:  5.913e-01  1.943e-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.566e+00  2.512e-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: 3.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/751587/likelihoodResults_342748801_343008001_4FGL_J1230.8+1223_daily_bin399.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) = 6947.75793382
delta logL = -0.00174943790898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6947.75618419
delta logL = 1.95311258722e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0412       1.0000          .0000       10.000    
     3 'Normalizat'    1.5659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59128       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=   6947.756     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      243 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10224E-03    3.2481        .13281E-01** at limit **
   2  Index         1.9435        5.4108        .50000        .38222E-04
   3  Normalizat    1.5659        .53343E-02    .24841E-03    .40576E-04
   4  Prefactor     .59128        .45212E-02    .32395E-03    .15160E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102237
  Index      = 1.94351
  Normalizat = 1.56586
  Prefactor  = 0.591278
 **********
 **   18 **HESSE 
 **********

 FCN=   6947.756     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10224E-03    64.646        .13593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9435        5.0747        .50000       -.65770    
   3  Normalizat    1.5659        .24359E-01    .49682E-04   -.75944    
   4  Prefactor     .59128        .20645E-01    .12958E-04   -1.0795    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.9306e-08
Minuit parameter uncertainties:
  1  0.0240789
  2  447.678
  3  0.0243591
  4  0.0206458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/751587': 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) = 6947.7561835
delta logL = 8.82915628608e-07

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.022e-04  2.408e-02  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.944e+00  4.477e+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:  5.913e-01  2.065e-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.566e+00  2.436e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/751587/cmap_HighResolution_342748801_343008001_4FGL_J1230.8+1223_daily_bin399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.88e-03', job_status='DONE', photon_flux_upper_limit='3.82e-08', time_completed='2021-09-05 21:32:23.598154', job_id='751587', GAL2='0.59', fit_tolerance='1e-08', EG2='1.57', EG='1.57', time_epoch_completed='1630902743.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='8.83e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='399' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:32:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 751587: <4FGL_J1230.8+1223_daily_bin399> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin399 187.712 12.3883 342748801 343008001 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 :                                   788.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            981 sec.

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

