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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1101
RA = 187.712, Dec = 12.3883
tmin = 524707201, tmax = 524966401
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='757676', job_status='RUN', time_executed='2021-09-05 21:40:02.641958', time_epoch_executed='1630903202.64' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757676

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757676/ft1_4FGL_J1230.8+1223_daily_bin1101.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757676/ft2_4FGL_J1230.8+1223_daily_bin1101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757676/ft1_4FGL_J1230.8+1223_daily_bin1101.fits outfile=/scratch/kocevski/757676/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1101.fits ra=187.712 dec=12.3883 rad=12.0 tmin=524707201.0 tmax=524966401.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.70
user 3.16
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/757676/ft1_filtered_4FGL_J1230.8+1223_daily_bin1101.fits" evtable="EVENTS" scfile=/scratch/kocevski/757676/ft2_4FGL_J1230.8+1223_daily_bin1101.fits sctable="SC_DATA" outfile=/scratch/kocevski/757676/ltcube_524707201_524966401_4FGL_J1230.8+1223_daily_bin1101.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/757676/ft2_4FGL_J1230.8+1223_daily_bin1101.fits
.....................!
real 14.08
user 13.07
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757676/ft1_filtered_4FGL_J1230.8+1223_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/757676/ft2_4FGL_J1230.8+1223_daily_bin1101.fits sctable="SC_DATA" expcube=/scratch/kocevski/757676/ltcube_524707201_524966401_4FGL_J1230.8+1223_daily_bin1101.fits outfile=/scratch/kocevski/757676/expmap_524707201_524966401_4FGL_J1230.8+1223_daily_bin1101.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/757676/ltcube_524707201_524966401_4FGL_J1230.8+1223_daily_bin1101.fits
.....................!
real 191.88
user 185.52
sys 5.15

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/757676/ft1_filtered_4FGL_J1230.8+1223_daily_bin1101.fits scfile=/scratch/kocevski/757676/ft2_4FGL_J1230.8+1223_daily_bin1101.fits outfile=/scratch/kocevski/757676/cmap_524707201_524966401_4FGL_J1230.8+1223_daily_bin1101.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757676/ft1_filtered_4FGL_J1230.8+1223_daily_bin1101.fits scfile=/scratch/kocevski/757676/ft2_4FGL_J1230.8+1223_daily_bin1101.fits outfile=/scratch/kocevski/757676/cmap_HighResolution_524707201_524966401_4FGL_J1230.8+1223_daily_bin1101.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.179       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.910       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3789       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11390E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.051       1.0000         .10000E-03   10000.    
    13 'norm      '    .34561       1.0000         .10000E-03   10000.    
    14 'norm      '    56.444       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .84632       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.371       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.0476       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.035       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4442       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81185       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=   5932.914     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3072 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.180        15.500       -.25243E-06    .37919E-05
   2  Prefactor     .10000E-03    21.892       -.24138E-05** at limit **
   3  Prefactor     .10000E-03    2.7575       -.66037E-08** at limit **
   4  Prefactor     23.908        16.366       -.26380E-07    .17244E-04
   5  Prefactor     2.3782        2.6925        .14197E-05   -.10744E-02
   6  Prefactor     .10000E-03    52.943       -.15418E-05** at limit **
   7  Prefactor     .10000E-03    13.241        .38994E-07** at limit **
   8  Prefactor     .10000E-03    1.4826       -.21109E-06** at limit **
   9  Prefactor     .10000E-03    2.8395        .36444E-07** at limit **
  10  Prefactor     .10000E-03    18.468        .16650E-05** at limit **
  11  norm          .10000E-03    1.8519       -.71676E-07** at limit **
  12  Prefactor     22.052        25.967        .59534E-07    .78702E-05
  13  norm          .34561        .22161       -.95733E-08   -.35436E-03
  14  norm          56.449        44.171        .87432E-06    .11031E-03
  15  Prefactor     .10000E-03    51.064        .62223E-06** at limit **
  16  norm          .84648        .64077        .17742E-07   -.10252E-03
  17  Prefactor     15.371        11.743        .13213E-07    .51592E-05
  18  Prefactor     8.0468        27.827       -.12934E-06   -.10920E-04
  19  norm          .10000E-03    .62151       -.14687E-07** at limit **
  20  Prefactor     32.019        49.152       -.44791E-05   -.21925E-03
  21  Prefactor     .10000E-03    31.816        .19547E-05** at limit **
  22  Prefactor     .10000E-03    2.7946        .29527E-08** at limit **
  23  Prefactor     .10000E-03    3.1029        .59691E-07** at limit **
  24  Prefactor     .10000E-03    3.8654        .10855E-06** at limit **
  25  Normalizat    1.4443        .19553        .42711E-07    .53878E-04
  26  Prefactor     .81178        .17177        .80661E-07    .37125E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.1797
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 23.9082
  Prefactor  = 2.37822
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 22.0517
  norm       = 0.345608
  norm       = 56.4486
  Prefactor  = 0.0001
  norm       = 0.846484
  Prefactor  = 15.371
  Prefactor  = 8.04684
  norm       = 0.0001
  Prefactor  = 32.0194
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.44427
  Prefactor  = 0.811777
 **********
 **   18 **HESSE 
 **********

 FCN=   5932.914     FROM HESSE     STATUS=OK           454 CALLS     3526 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.180        15.509        .87033E-04   -1.4787    
   2  Prefactor     .10000E-03    22.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.7608        .12491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.908        16.386        .81920E-04   -1.4730    
   5  Prefactor     2.3782        2.8732        .69442E-03   -1.5400    
   6  Prefactor     .10000E-03    53.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.6880        .17766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.9410        .25198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.8779        .10219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.052        25.963        .85297E-04   -1.4768    
  13  norm          .34561        .21904        .27693E-04   -1.5590    
  14  norm          56.449        44.445        .53395E-04   -1.4204    
  15  Prefactor     .10000E-03    51.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .84648        .62008        .48461E-03   -1.5524    
  17  Prefactor     15.371        11.702        .10216E-03   -1.4924    
  18  Prefactor     8.0468        27.779        .14133E-03   -1.5141    
  19  norm          .10000E-03    1.0262        .11662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.019        51.742        .70794E-04   -1.4576    
  21  Prefactor     .10000E-03    32.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.8029        .12575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.1080        .13250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.8765        .14790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4443        .22427        .23669E-03   -.79357    
  26  Prefactor     .81178        .19752        .27587E-03   -.99296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6864e-09
Minuit parameter uncertainties:
  1  15.5121
  2  0.000462667
  3  1.07602e-06
  4  16.389
  5  2.87336
  6  0.000461105
  7  2.16586e-06
  8  9.85891e-05
  9  3.12629e-06
  10  0.000274699
  11  9.46819e-06
  12  25.9763
  13  0.219045
  14  44.4714
  15  0.000172937
  16  0.620081
  17  11.7039
  18  27.8241
  19  8.75341e-06
  20  51.815
  21  0.000433406
  22  9.5318e-07
  23  2.79979e-06
  24  6.6008e-06
  25  0.22442
  26  0.197697
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.537e+01  1.170e+01  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.118e-01  1.977e-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.444e+00  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.62
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 4.19e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 1.93e-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) = 5932.82570665
delta logL = 0.0878899110239

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5932.82129097
delta logL = 0.0923055908506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.851       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8357       1.0000          .0000       10.000    
     3 'Normalizat'    1.4532       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80931       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=   5932.821     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      273 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.852        12.750        .97566E-04   -.58359E-03
   2  Index         1.8358        .51684        .83232E-02   -.18374E-03
   3  Normalizat    1.4531        .21641        .23612E-03    .90075E-04
   4  Prefactor     .80934        .19610        .27631E-03    .84717E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.8519
  Index      = 1.83583
  Normalizat = 1.45314
  Prefactor  = 0.809341
 **********
 **   18 **HESSE 
 **********

 FCN=   5932.821     FROM HESSE     STATUS=OK            23 CALLS      296 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.852        12.708        .19513E-04   -1.4887    
   2  Index         1.8358        .51504        .33293E-03   -.68521    
   3  Normalizat    1.4531        .21652        .47224E-04   -.79104    
   4  Prefactor     .80934        .19625        .11052E-04   -.99385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.46516e-10
Minuit parameter uncertainties:
  1  12.7103
  2  0.516574
  3  0.216654
  4  0.196415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757676': 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) = 5932.82129092
delta logL = 0.0923056400961

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.685e+01  1.271e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.836e+00  5.166e-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:  8.093e-01  1.964e-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.453e+00  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.80
Ra Dec: 187.712 12.388
Photon Index (Free Index): 1.84 +/- 0.52
Photon Flux (Free Index): 3.15e-08 +/- 3.38e-08
Energy Flux (Free Index): 3.39e-05 +/- 3.59e-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/757676/cmap_HighResolution_524707201_524966401_4FGL_J1230.8+1223_daily_bin1101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.19e-08', energy_flux2='3.39e-05', photon_flux_error='3.19e-08', dlogl='9.23e-02', energy_flux='2.53e-05', photon_flux2='3.15e-08', job_status='DONE', time_completed='2021-09-05 21:52:20.277826', photon_index_error2='0.52', photon_index2='1.84', ts='7.62', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='3.59e-05', EG='1.44', time_epoch_completed='1630903940.28', return_code='0', job_id='757676', GAL2='0.81', EG2='1.45', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='3.38e-08', ts2='7.80', photon_index='2.06' WHERE bin_id='1101' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:52:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 757676: <4FGL_J1230.8+1223_daily_bin1101> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1101> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 21:35:43 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:36:56 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:36:56 2021
Terminated at Sun Sep  5 21:52:21 2021
Results reported at Sun Sep  5 21:52:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1101 187.712 12.3883 524707201 524966401 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 :                                   639.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            998 sec.

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

