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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1179
RA = 187.712, Dec = 12.3883
tmin = 544924801, tmax = 545184001
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='757792', job_status='RUN', time_executed='2021-09-05 21:37:51.970137', time_epoch_executed='1630903071.97' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757792

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757792/ft1_4FGL_J1230.8+1223_daily_bin1179.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757792/ft2_4FGL_J1230.8+1223_daily_bin1179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757792/ft1_4FGL_J1230.8+1223_daily_bin1179.fits outfile=/scratch/kocevski/757792/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1179.fits ra=187.712 dec=12.3883 rad=12.0 tmin=544924801.0 tmax=545184001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.20
user 3.90
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757792/ft1_filtered_4FGL_J1230.8+1223_daily_bin1179.fits evtable="EVENTS" scfile=/scratch/kocevski/757792/ft2_4FGL_J1230.8+1223_daily_bin1179.fits sctable="SC_DATA" expcube=/scratch/kocevski/757792/ltcube_544924801_545184001_4FGL_J1230.8+1223_daily_bin1179.fits outfile=/scratch/kocevski/757792/expmap_544924801_545184001_4FGL_J1230.8+1223_daily_bin1179.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/757792/ltcube_544924801_545184001_4FGL_J1230.8+1223_daily_bin1179.fits
.....................!
real 193.31
user 188.33
sys 4.60

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/757792/ft1_filtered_4FGL_J1230.8+1223_daily_bin1179.fits scfile=/scratch/kocevski/757792/ft2_4FGL_J1230.8+1223_daily_bin1179.fits outfile=/scratch/kocevski/757792/cmap_544924801_545184001_4FGL_J1230.8+1223_daily_bin1179.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757792/ft1_filtered_4FGL_J1230.8+1223_daily_bin1179.fits scfile=/scratch/kocevski/757792/ft2_4FGL_J1230.8+1223_daily_bin1179.fits outfile=/scratch/kocevski/757792/cmap_HighResolution_544924801_545184001_4FGL_J1230.8+1223_daily_bin1179.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.70
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    68.978       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4273       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8452       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.2846       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.499       1.0000         .10000E-03   10000.    
    13 'norm      '    .18943       1.0000         .10000E-03   10000.    
    14 'norm      '    157.77       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .81592       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.262       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.7024       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.959       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.638       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3146       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .76060       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=   8861.134     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     3075 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4018       -.39493E-05** at limit **
   2  Prefactor     68.970        76.864       -.10005E-04   -.98306E-05
   3  Prefactor     .10000E-03    2.5417        .22363E-09** at limit **
   4  Prefactor     7.4269        10.343       -.18679E-06   -.66942E-04
   5  Prefactor     1.8445        5.5744        .15054E-05   -.86313E-03
   6  Prefactor     .10000E-03    27.302        .90242E-05** at limit **
   7  Prefactor     .10000E-03    17.936       -.13839E-06** at limit **
   8  Prefactor     .10000E-03    1.5100       -.75345E-07** at limit **
   9  Prefactor     .10000E-03    .92605       -.85275E-08** at limit **
  10  Prefactor     .10000E-03    20.061        .87606E-05** at limit **
  11  norm          2.2857        3.3108        .28094E-05   -.74759E-03
  12  Prefactor     20.495        21.527       -.29871E-05   -.32698E-04
  13  norm          .18952        .28388       -.22383E-06   -.42320E-02
  14  norm          157.75        52.139       -.11569E-04   -.14466E-03
  15  Prefactor     .10000E-03    30.980       -.12790E-04** at limit **
  16  norm          .81578        .37043        .16781E-06   -.21189E-02
  17  Prefactor     16.261        10.188       -.11848E-06    .73835E-04
  18  Prefactor     .10000E-03    14.817       -.89524E-05** at limit **
  19  norm          5.7023        1.3181        .68580E-08   -.36919E-03
  20  Prefactor     14.959        16.363       -.25640E-06   -.15747E-04
  21  Prefactor     16.639        20.091        .18951E-06   -.86317E-05
  22  Prefactor     .10000E-03    2.4631        .10019E-07** at limit **
  23  Prefactor     .10000E-03    3.4883       -.19589E-07** at limit **
  24  Prefactor     .10000E-03    10.078        .65465E-05** at limit **
  25  Normalizat    1.3147        .16764       -.28160E-06   -.10582E-03
  26  Prefactor     .76051        .14181        .14121E-05   -.19245E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 68.9696
  Prefactor  = 0.0001
  Prefactor  = 7.42693
  Prefactor  = 1.84449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.28575
  Prefactor  = 20.4953
  norm       = 0.189524
  norm       = 157.752
  Prefactor  = 0.0001
  norm       = 0.815778
  Prefactor  = 16.2613
  Prefactor  = 0.0001
  norm       = 5.70226
  Prefactor  = 14.9593
  Prefactor  = 16.6387
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.31473
  Prefactor  = 0.760511
 **********
 **   18 **HESSE 
 **********

 FCN=   8861.134     FROM HESSE     STATUS=OK           456 CALLS     3531 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.4214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     68.970        77.076        .48330E-04   -1.4045    
   3  Prefactor     .10000E-03    2.5485        .14655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4269        10.343        .14716E-03   -1.5163    
   5  Prefactor     1.8445        5.5244        .30701E-03   -1.5436    
   6  Prefactor     .10000E-03    27.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5321        .11266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .93262        .88423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.2857        3.1991        .16049E-03   -1.5406    
  12  Prefactor     20.495        21.536        .88465E-04   -1.4802    
  13  norm          .18952        .27400        .57972E-03   -1.5621    
  14  norm          157.75        51.034        .16050E-03   -1.3189    
  15  Prefactor     .10000E-03    30.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .81578        .36447        .35534E-04   -1.5527    
  17  Prefactor     16.261        10.189        .99319E-04   -1.4901    
  18  Prefactor     .10000E-03    14.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.7023        1.3168        .49671E-04   -1.5230    
  20  Prefactor     14.959        16.359        .10356E-03   -1.4934    
  21  Prefactor     16.639        20.088        .98189E-04   -1.4892    
  22  Prefactor     .10000E-03    2.4651        .14428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.5041        .17164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3147        .19999        .25236E-03   -.83128    
  26  Prefactor     .76051        .16877        .28035E-03   -1.0120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01174e-09
Minuit parameter uncertainties:
  1  1.59276e-05
  2  77.1875
  3  3.16413e-06
  4  10.3457
  5  5.52596
  6  1.84065e-07
  7  9.00343e-06
  8  5.98614e-06
  9  8.07352e-07
  10  5.87912e-05
  11  3.19933
  12  21.544
  13  0.274006
  14  51.0486
  15  1.10708e-05
  16  0.364473
  17  10.1898
  18  3.65129e-06
  19  1.31682
  20  16.3638
  21  20.0966
  22  6.04809e-07
  23  6.60401e-06
  24  5.06237e-05
  25  0.200111
  26  0.168881
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.626e+01  1.019e+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:  7.605e-01  1.689e-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.315e+00  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.50
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 4.44e-08 +/- 2.78e-08
Energy Flux (Fixed Index): 2.68e-05 +/- 1.68e-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) = 8860.77647185
delta logL = 0.357820887686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8860.76668071
delta logL = 0.367612020438

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.521       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4713       1.0000          .0000       10.000    
     3 'Normalizat'    1.2836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77526       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=   8860.767     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      285 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.520        10.831        .11803E-03    .24870E-03
   2  Index         2.4714        .55367        .56259E-02    .86387E-04
   3  Normalizat    1.2837        .19796        .25489E-03   -.16283E-03
   4  Prefactor     .77521        .16948        .27786E-03   -.21218E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5203
  Index      = 2.47137
  Normalizat = 1.28366
  Prefactor  = 0.775212
 **********
 **   18 **HESSE 
 **********

 FCN=   8860.767     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.520        9.8296        .47211E-05   -1.5029    
   2  Index         2.4714        .50179        .22504E-03   -.53022    
   3  Normalizat    1.2837        .19729        .50978E-04   -.84055    
   4  Prefactor     .77521        .16917        .11115E-04   -1.0065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.2057e-11
Minuit parameter uncertainties:
  1  9.83097
  2  0.502928
  3  0.197405
  4  0.169279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757792': 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) = 8860.76668062
delta logL = 0.367612111322

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.152e+01  9.831e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.471e+00  5.029e-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:  7.752e-01  1.693e-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.284e+00  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.19
Ra Dec: 187.712 12.388
Photon Index (Free Index): 2.47 +/- 0.50
Photon Flux (Free Index): 7.07e-08 +/- 4.89e-08
Energy Flux (Free Index): 2.12e-05 +/- 1.26e-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/757792/cmap_HighResolution_544924801_545184001_4FGL_J1230.8+1223_daily_bin1179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.44e-08', energy_flux2='2.12e-05', photon_flux_error='2.78e-08', dlogl='3.68e-01', energy_flux='2.68e-05', photon_flux2='7.07e-08', job_status='DONE', time_completed='2021-09-05 21:51:01.487298', photon_index_error2='0.50', photon_index2='2.47', ts='4.50', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.26e-05', EG='1.31', time_epoch_completed='1630903861.49', return_code='0', job_id='757792', GAL2='0.78', EG2='1.28', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='4.89e-08', ts2='5.19', photon_index='2.06' WHERE bin_id='1179' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:51:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 757792: <4FGL_J1230.8+1223_daily_bin1179> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1179 187.712 12.3883 544924801 545184001 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 :                                   781.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            910 sec.

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

