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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1582
RA = 187.712, Dec = 12.3883
tmin = 649382401, tmax = 649641601
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='759666', job_status='RUN', time_executed='2021-09-05 21:44:46.898887', time_epoch_executed='1630903486.9' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/759666

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/759666/ft1_4FGL_J1230.8+1223_daily_bin1582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/759666/ft2_4FGL_J1230.8+1223_daily_bin1582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/759666/ft1_4FGL_J1230.8+1223_daily_bin1582.fits outfile=/scratch/kocevski/759666/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1582.fits ra=187.712 dec=12.3883 rad=12.0 tmin=649382401.0 tmax=649641601.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 2.76
user 2.56
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/759666/ft1_filtered_4FGL_J1230.8+1223_daily_bin1582.fits" evtable="EVENTS" scfile=/scratch/kocevski/759666/ft2_4FGL_J1230.8+1223_daily_bin1582.fits sctable="SC_DATA" outfile=/scratch/kocevski/759666/ltcube_649382401_649641601_4FGL_J1230.8+1223_daily_bin1582.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/759666/ft2_4FGL_J1230.8+1223_daily_bin1582.fits
.....................!
real 18.66
user 18.29
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/759666/ft1_filtered_4FGL_J1230.8+1223_daily_bin1582.fits evtable="EVENTS" scfile=/scratch/kocevski/759666/ft2_4FGL_J1230.8+1223_daily_bin1582.fits sctable="SC_DATA" expcube=/scratch/kocevski/759666/ltcube_649382401_649641601_4FGL_J1230.8+1223_daily_bin1582.fits outfile=/scratch/kocevski/759666/expmap_649382401_649641601_4FGL_J1230.8+1223_daily_bin1582.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/759666/ltcube_649382401_649641601_4FGL_J1230.8+1223_daily_bin1582.fits
.....................!
real 192.00
user 186.80
sys 4.69

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/759666/ft1_filtered_4FGL_J1230.8+1223_daily_bin1582.fits scfile=/scratch/kocevski/759666/ft2_4FGL_J1230.8+1223_daily_bin1582.fits outfile=/scratch/kocevski/759666/cmap_649382401_649641601_4FGL_J1230.8+1223_daily_bin1582.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.58
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/759666/ft1_filtered_4FGL_J1230.8+1223_daily_bin1582.fits scfile=/scratch/kocevski/759666/ft2_4FGL_J1230.8+1223_daily_bin1582.fits outfile=/scratch/kocevski/759666/cmap_HighResolution_649382401_649641601_4FGL_J1230.8+1223_daily_bin1582.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.43
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1761       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.846       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14352E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14870E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10260E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .57756E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    37.384       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .54515       1.0000         .10000E-03   10000.    
    16 'norm      '    2.4053       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.659       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.1642       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.375       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.2938       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.9101       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2809       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .92198       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8172.633     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     2613 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2425        .16528E-05** at limit **
   2  Prefactor     5.1779        1.0833        .53650E-07    .14380E-03
   3  Prefactor     .10000E-03    5.2500        .87632E-06** at limit **
   4  Prefactor     18.840        1.5125        .99993E-07   -.64738E-02
   5  Prefactor     .10000E-03    1.3859       -.56419E-06** at limit **
   6  Prefactor     .10000E-03    27.240       -.43551E-06** at limit **
   7  Prefactor     .10000E-03    83.034        .75841E-05** at limit **
   8  Prefactor     .10000E-03    1.2152       -.40934E-06** at limit **
   9  Prefactor     .10000E-03    1.0057       -.12573E-05** at limit **
  10  Prefactor     .10000E-03    13.475        .16834E-05** at limit **
  11  norm          .10000E-03    1.4284       -.17633E-05** at limit **
  12  Prefactor     .10000E-03    7.3917        .53219E-06** at limit **
  13  norm          .57538E-01    .14369       -.28713E-06   -.36264E-03
  14  norm          37.326        31.673       -.15200E-05    .10953E-02
  15  Prefactor     .11815E-03    7891.3       -.16397E-04** at limit **
  16  norm          2.4051        .59204        .35285E-07    .44935E-03
  17  Prefactor     15.654        8.7227       -.21717E-07   -.61556E-02
  18  Prefactor     .10000E-03    9.3187        .30928E-05** at limit **
  19  norm          3.1640        1.7074        .47421E-06    .47721E-03
  20  Prefactor     .10000E-03    10.777       -.37051E-05** at limit **
  21  Prefactor     27.337        10.569       -.58387E-06   -.44386E-02
  22  Prefactor     6.2920        5.9106       -.10397E-05   -.31165E-02
  23  Prefactor     .10000E-03    2.7378        .11781E-07** at limit **
  24  Prefactor     6.9107        3.7806       -.55718E-06    .10250E-01
  25  Normalizat    1.2810        .19705       -.35487E-05    .12679E-03
  26  Prefactor     .92210        .17477        .61353E-05    .21375E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.17787
  Prefactor  = 0.0001
  Prefactor  = 18.8402
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0575377
  norm       = 37.3256
  Prefactor  = 0.000118151
  norm       = 2.40514
  Prefactor  = 15.6537
  Prefactor  = 0.0001
  norm       = 3.16398
  Prefactor  = 0.0001
  Prefactor  = 27.337
  Prefactor  = 6.29197
  Prefactor  = 0.0001
  Prefactor  = 6.91071
  Normalizat = 1.28104
  Prefactor  = 0.9221
 **********
 **   18 **HESSE 
 **********

 FCN=   8172.633     FROM HESSE     STATUS=OK           516 CALLS     3129 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2322        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.1779        509.99        .44174E-02   -1.5253    
   3  Prefactor     .10000E-03    5.2064        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.840        14.651        .23065E-02   -1.4840    
   5  Prefactor     .10000E-03    1.3742        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.247        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    80.730        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.1811        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .99197        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.456        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.4083        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.3941        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .57538E-01    .14925        .93079E-02   -1.5660    
  14  norm          37.326        33.224        .16387E-02   -1.4485    
  15  Prefactor     .11815E-03    84.513        .26448       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4051        .59522        .65999E-02   -1.5398    
  17  Prefactor     15.654        9.1390        .25303E-02   -1.4916    
  18  Prefactor     .10000E-03    9.3093        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.1640        1.7224        .56961E-02   -1.5352    
  20  Prefactor     .10000E-03    10.794        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.337        34.410        .19142E-02   -1.4662    
  22  Prefactor     6.2920        5.9757        .40001E-02   -1.5206    
  23  Prefactor     .10000E-03    2.7335        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.9107        10.734        .38156E-02   -1.5182    
  25  Normalizat    1.2810        .17423        .57324E-01   -.84134    
  26  Prefactor     .92210        .15039        .45285E-01   -.95373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4763e-07
Minuit parameter uncertainties:
  1  2.23345e-05
  2  103.696
  3  1.12878e-05
  4  14.6537
  5  3.47654e-06
  6  0.000247859
  7  0.000740791
  8  2.52624e-06
  9  7.28758e-06
  10  7.44125e-05
  11  1.13937e-05
  12  1.45915e-05
  13  0.149248
  14  33.2403
  15  0.0784444
  16  0.595219
  17  9.13984
  18  6.22523e-05
  19  1.72247
  20  7.86245e-05
  21  34.4346
  22  5.97622
  23  3.92617e-07
  24  10.7375
  25  0.174308
  26  0.150457
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.565e+01  9.140e+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:  9.221e-01  1.505e-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.281e+00  1.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.56
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 4.27e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 2.58e-05 +/- 1.50e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8172.58895211
delta logL = 0.0440565897779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8172.58077728
delta logL = 0.0522314198261

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.731       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9224       1.0000          .0000       10.000    
     3 'Normalizat'    1.2868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91869       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=   8172.581     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      268 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.730        11.882        .95116E-04    .62100E-03
   2  Index         1.9225        .41254        .63342E-02    .17018E-03
   3  Normalizat    1.2868        .19346        .25301E-03   -.86544E-04
   4  Prefactor     .91870        .17455        .26389E-03   -.13502E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7304
  Index      = 1.92247
  Normalizat = 1.28682
  Prefactor  = 0.918702
 **********
 **   18 **HESSE 
 **********

 FCN=   8172.581     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.730        11.646        .19023E-04   -1.4866    
   2  Index         1.9225        .40431        .25337E-03   -.66303    
   3  Normalizat    1.2868        .19356        .10120E-04   -.83961    
   4  Prefactor     .91870        .17467        .10556E-04   -.95491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3963e-10
Minuit parameter uncertainties:
  1  11.6473
  2  0.40502
  3  0.19367
  4  0.174772
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/759666': 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) = 8172.58077724
delta logL = 0.0522314618283

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.773e+01  1.165e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.922e+00  4.050e-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:  9.187e-01  1.748e-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.287e+00  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.66
Ra Dec: 187.712 12.388
Photon Index (Free Index): 1.92 +/- 0.41
Photon Flux (Free Index): 3.82e-08 +/- 2.66e-08
Energy Flux (Free Index): 3.22e-05 +/- 2.96e-05

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/759666/cmap_HighResolution_649382401_649641601_4FGL_J1230.8+1223_daily_bin1582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.27e-08', energy_flux2='3.22e-05', photon_flux_error='2.49e-08', dlogl='5.22e-02', energy_flux='2.58e-05', photon_flux2='3.82e-08', job_status='DONE', time_completed='2021-09-05 21:57:05.592663', photon_index_error2='0.41', photon_index2='1.92', ts='5.56', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.96e-05', EG='1.28', time_epoch_completed='1630904225.59', return_code='0', job_id='759666', GAL2='0.92', EG2='1.29', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='2.66e-08', ts2='5.66', photon_index='2.06' WHERE bin_id='1582' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:57:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 759666: <4FGL_J1230.8+1223_daily_bin1582> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1582 187.712 12.3883 649382401 649641601 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 :                                   731.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            971 sec.

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

