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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1220
RA = 187.712, Dec = 12.3883
tmin = 555552001, tmax = 555811201
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='757846', job_status='RUN', time_executed='2021-09-05 21:38:13.835897', time_epoch_executed='1630903093.84' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1220'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757846

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757846/ft1_4FGL_J1230.8+1223_daily_bin1220.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757846/ft2_4FGL_J1230.8+1223_daily_bin1220.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757846/ft1_4FGL_J1230.8+1223_daily_bin1220.fits outfile=/scratch/kocevski/757846/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1220.fits ra=187.712 dec=12.3883 rad=12.0 tmin=555552001.0 tmax=555811201.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.05
user 2.83
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/757846/ft1_filtered_4FGL_J1230.8+1223_daily_bin1220.fits" evtable="EVENTS" scfile=/scratch/kocevski/757846/ft2_4FGL_J1230.8+1223_daily_bin1220.fits sctable="SC_DATA" outfile=/scratch/kocevski/757846/ltcube_555552001_555811201_4FGL_J1230.8+1223_daily_bin1220.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/757846/ft2_4FGL_J1230.8+1223_daily_bin1220.fits
.....................!
real 15.89
user 15.55
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757846/ft1_filtered_4FGL_J1230.8+1223_daily_bin1220.fits evtable="EVENTS" scfile=/scratch/kocevski/757846/ft2_4FGL_J1230.8+1223_daily_bin1220.fits sctable="SC_DATA" expcube=/scratch/kocevski/757846/ltcube_555552001_555811201_4FGL_J1230.8+1223_daily_bin1220.fits outfile=/scratch/kocevski/757846/expmap_555552001_555811201_4FGL_J1230.8+1223_daily_bin1220.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/757846/ltcube_555552001_555811201_4FGL_J1230.8+1223_daily_bin1220.fits
.....................!
real 157.63
user 152.88
sys 3.97

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/757846/ft1_filtered_4FGL_J1230.8+1223_daily_bin1220.fits scfile=/scratch/kocevski/757846/ft2_4FGL_J1230.8+1223_daily_bin1220.fits outfile=/scratch/kocevski/757846/cmap_555552001_555811201_4FGL_J1230.8+1223_daily_bin1220.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.75
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757846/ft1_filtered_4FGL_J1230.8+1223_daily_bin1220.fits scfile=/scratch/kocevski/757846/ft2_4FGL_J1230.8+1223_daily_bin1220.fits outfile=/scratch/kocevski/757846/cmap_HighResolution_555552001_555811201_4FGL_J1230.8+1223_daily_bin1220.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.61
user 0.35
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2036       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3808       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4527       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.488       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6019       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .24046       1.0000         .10000E-03   10000.    
    14 'norm      '    84.723       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .27317E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.162       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.238       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1000       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.1172       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1450       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1240       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=   7372.472     FROM MIGRAD    STATUS=CONVERGED    657 CALLS     3194 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6877        .47447E-07** at limit **
   2  Prefactor     .10000E-03    57.108       -.33343E-05** at limit **
   3  Prefactor     2.1984        18.163        .28339E-05   -.26950E-03
   4  Prefactor     2.3763        17.436        .31590E-05   -.23438E-03
   5  Prefactor     4.4506        4.0073       -.20598E-06   -.41117E-03
   6  Prefactor     .10000E-03    121.40        .18651E-05** at limit **
   7  Prefactor     30.527        64.580        .51391E-05   -.29961E-04
   8  Prefactor     .10000E-03    .81048        .52160E-07** at limit **
   9  Prefactor     .10000E-03    .80911       -.24077E-07** at limit **
  10  Prefactor     .10000E-03    14.204       -.14641E-06** at limit **
  11  norm          1.6030        4.1267       -.20747E-05   -.10051E-02
  12  Prefactor     .10000E-03    17.931       -.24387E-06** at limit **
  13  norm          .24030        .20737       -.51719E-07   -.22106E-02
  14  norm          84.929        67.189        .33280E-05    .72877E-05
  15  Prefactor     .10000E-03    53.580        .84385E-05** at limit **
  16  norm          .10000E-03    .30875       -.14547E-07** at limit **
  17  Prefactor     19.160        10.555        .27698E-05   -.49049E-03
  18  Prefactor     19.231        21.808       -.16637E-05    .17605E-04
  19  norm          .10000E-03    .77414       -.46873E-09** at limit **
  20  Prefactor     .10000E-03    57.420       -.54890E-05** at limit **
  21  Prefactor     .10000E-03    14.573        .84219E-07** at limit **
  22  Prefactor     1.0983        3.0238       -.87353E-06   -.12083E-02
  23  Prefactor     .10000E-03    4.7237        .22598E-06** at limit **
  24  Prefactor     6.1086        12.167       -.80653E-05    .28100E-03
  25  Normalizat    1.1454        .18672        .12071E-05    .41826E-04
  26  Prefactor     1.1239        .16215       -.28362E-06    .13139E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.19843
  Prefactor  = 2.37632
  Prefactor  = 4.45058
  Prefactor  = 0.000100001
  Prefactor  = 30.5266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.60302
  Prefactor  = 0.0001
  norm       = 0.240296
  norm       = 84.9293
  Prefactor  = 0.000100002
  norm       = 0.000100002
  Prefactor  = 19.1599
  Prefactor  = 19.231
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.09828
  Prefactor  = 0.0001
  Prefactor  = 6.10863
  Normalizat = 1.14543
  Prefactor  = 1.12386
 **********
 **   18 **HESSE 
 **********

 FCN=   7372.472     FROM HESSE     STATUS=OK           466 CALLS     3660 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    57.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.1984        17.672        .27715E-03   -1.5411    
   4  Prefactor     2.3763        16.934        .26549E-03   -1.5400    
   5  Prefactor     4.4506        4.0164        .15525E-03   -1.5286    
   6  Prefactor     .10000E-03    121.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.527        64.492        .72563E-04   -1.4602    
   8  Prefactor     .10000E-03    .82396        .75413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .81761        .75389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6030        4.2054        .22537E-03   -1.5455    
  12  Prefactor     .10000E-03    17.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .24030        .20015        .33795E-03   -1.5610    
  14  norm          84.929        67.583        .43643E-04   -1.3862    
  15  Prefactor     .10000E-03    53.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .56192        .16244E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.160        10.411        .91498E-04   -1.4832    
  18  Prefactor     19.231        21.815        .91316E-04   -1.4831    
  19  norm          .10000E-03    1.4061        .14583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    57.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.0983        2.7534        .24717E-02   -1.5498    
  23  Prefactor     .10000E-03    4.7411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.1086        12.155        .16232E-03   -1.5214    
  25  Normalizat    1.1454        .22420        .26809E-03   -.88306    
  26  Prefactor     1.1239        .19508        .24640E-03   -.88707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24095e-09
Minuit parameter uncertainties:
  1  3.58187e-06
  2  0.000201384
  3  12.4708
  4  12.6918
  5  4.01661
  6  0.000813507
  7  64.6402
  8  1.68095e-06
  9  1.2872e-06
  10  6.89365e-06
  11  4.20622
  12  1.03547e-06
  13  0.200147
  14  67.644
  15  0.000644332
  16  5.92064e-05
  17  10.4116
  18  21.8236
  19  3.45665e-06
  20  0.000429708
  21  7.19137e-06
  22  2.75371
  23  2.49635e-05
  24  12.1598
  25  0.224387
  26  0.195206
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.916e+01  1.041e+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:  1.124e+00  1.952e-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.145e+00  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.74
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 5.23e-08 +/- 2.84e-08
Energy Flux (Fixed Index): 3.15e-05 +/- 1.71e-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) = 7371.69597457
delta logL = 0.775834626709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7371.6270364
delta logL = 0.844772789362

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.272       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5874       1.0000          .0000       10.000    
     3 'Normalizat'    1.1633       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1183       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.

 FCN=   7371.627     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      219 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.291        15.208        .21218E-02   -.89684E-04
   2  Index         1.5879        .38117        .17865       -.10744E-04
   3  Normalizat    1.1634        .17621        .60215E-01    .55665E-05
   4  Prefactor     1.1184        .16077        .55863E-01    .12077E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.2906
  Index      = 1.58793
  Normalizat = 1.16337
  Prefactor  = 1.1184
 **********
 **   18 **HESSE 
 **********

 FCN=   7371.627     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .15E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.291        12.601        .42437E-03   -1.4763    
   2  Index         1.5879        .35032        .70840E-02   -.75106    
   3  Normalizat    1.1634        .21088        .26632E-03   -.87742    
   4  Prefactor     1.1184        .19326        .24701E-03   -.88881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48891e-13
Minuit parameter uncertainties:
  1  12.6029
  2  0.350859
  3  0.211034
  4  0.193377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757846': 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) = 7371.62703244
delta logL = 0.844776751931

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  2.229e+01  1.260e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.588e+00  3.509e-01  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.118e+00  1.934e-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.163e+00  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.45
Ra Dec: 187.712 12.388
Photon Index (Free Index): 1.59 +/- 0.35
Photon Flux (Free Index): 2.95e-08 +/- 2.22e-08
Energy Flux (Free Index): 6.95e-05 +/- 6.02e-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/757846/cmap_HighResolution_555552001_555811201_4FGL_J1230.8+1223_daily_bin1220.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.23e-08', energy_flux2='6.95e-05', photon_flux_error='2.84e-08', dlogl='8.45e-01', energy_flux='3.15e-05', photon_flux2='2.95e-08', job_status='DONE', time_completed='2021-09-05 21:48:38.992272', photon_index_error2='0.35', photon_index2='1.59', ts='15.74', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='6.02e-05', EG='1.15', time_epoch_completed='1630903718.99', return_code='0', job_id='757846', GAL2='1.12', EG2='1.16', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='2.22e-08', ts2='17.45', photon_index='2.06' WHERE bin_id='1220' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:48:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 757846: <4FGL_J1230.8+1223_daily_bin1220> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1220 187.712 12.3883 555552001 555811201 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 :                                   595.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            763 sec.

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

