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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1607
RA = 187.712, Dec = 12.3883
tmin = 655862401, tmax = 656121601
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='333593', job_status='RUN', time_executed='2021-12-07 23:15:37.414304', time_epoch_executed='1638947737.41' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1607'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/333593

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/333593/ft1_4FGL_J1230.8+1223_daily_bin1607.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/333593/ft2_4FGL_J1230.8+1223_daily_bin1607.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/333593/ft1_4FGL_J1230.8+1223_daily_bin1607.fits outfile=/scratch/kocevski/333593/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1607.fits ra=187.712 dec=12.3883 rad=12.0 tmin=655862401.0 tmax=656121601.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.56
user 4.30
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/333593/ft2_4FGL_J1230.8+1223_daily_bin1607.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/333593/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1607.fits evtable="EVENTS" outfile="/scratch/kocevski/333593/ft1_filtered_4FGL_J1230.8+1223_daily_bin1607.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/333593/ft1_filtered_4FGL_J1230.8+1223_daily_bin1607.fits" evtable="EVENTS" scfile=/scratch/kocevski/333593/ft2_4FGL_J1230.8+1223_daily_bin1607.fits sctable="SC_DATA" outfile=/scratch/kocevski/333593/ltcube_655862401_656121601_4FGL_J1230.8+1223_daily_bin1607.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/333593/ft2_4FGL_J1230.8+1223_daily_bin1607.fits
.....................!
real 13.34
user 12.98
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/333593/ft1_filtered_4FGL_J1230.8+1223_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/333593/ft2_4FGL_J1230.8+1223_daily_bin1607.fits sctable="SC_DATA" expcube=/scratch/kocevski/333593/ltcube_655862401_656121601_4FGL_J1230.8+1223_daily_bin1607.fits outfile=/scratch/kocevski/333593/expmap_655862401_656121601_4FGL_J1230.8+1223_daily_bin1607.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/333593/ltcube_655862401_656121601_4FGL_J1230.8+1223_daily_bin1607.fits
.....................!
real 193.34
user 187.14
sys 5.64

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/333593/ft1_filtered_4FGL_J1230.8+1223_daily_bin1607.fits scfile=/scratch/kocevski/333593/ft2_4FGL_J1230.8+1223_daily_bin1607.fits outfile=/scratch/kocevski/333593/cmap_655862401_656121601_4FGL_J1230.8+1223_daily_bin1607.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/333593/ft1_filtered_4FGL_J1230.8+1223_daily_bin1607.fits scfile=/scratch/kocevski/333593/ft2_4FGL_J1230.8+1223_daily_bin1607.fits outfile=/scratch/kocevski/333593/cmap_HighResolution_655862401_656121601_4FGL_J1230.8+1223_daily_bin1607.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=187.712 yref=12.3883 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8079       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .35349E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0435       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .68313E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.394       1.0000         .10000E-03   10000.    
    12 'Prefactor '    64.503       1.0000         .10000E-03   10000.    
    13 'norm      '    .29865       1.0000         .10000E-03   10000.    
    14 'norm      '    52.916       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10894E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0435       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0006       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .21352E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.512       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.971       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1711       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1649       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=   6445.876     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3171 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8053        15.812        .18122E-06    .23951E-04
   2  Prefactor     .10000E-03    182.63        .58972E-06** at limit **
   3  Prefactor     .10000E-03    3.8158        .60568E-07** at limit **
   4  Prefactor     .10000E-03    69.961        .13253E-05** at limit **
   5  Prefactor     .10000E-03    2.2682       -.17448E-06** at limit **
   6  Prefactor     .10000E-03    45.686       -.93387E-08** at limit **
   7  Prefactor     .10000E-03    16.528        .39885E-06** at limit **
   8  Prefactor     1.0433        3.6297        .30095E-05    .11026E-02
   9  Prefactor     .54209E-02    2.4606       -.16053E-05    .10390E-02
  10  Prefactor     .10000E-03    7.8981        .16516E-06** at limit **
  11  norm          10.393        6.5075        .93589E-06    .14992E-03
  12  Prefactor     64.497        42.883        .15157E-06    .91124E-05
  13  norm          .29856        .30478        .86729E-07    .10926E-02
  14  norm          52.767        84.972       -.73384E-05   -.82420E-04
  15  Prefactor     .10000E-03    117.72       -.85877E-07** at limit **
  16  norm          1.0437        .82263        .38933E-06    .92487E-03
  17  Prefactor     4.0106        12.944        .52371E-06    .65281E-04
  18  Prefactor     .10000E-03    26.464       -.15351E-06** at limit **
  19  norm          .10000E-03    .80037       -.14487E-07** at limit **
  20  Prefactor     20.519        31.588       -.62098E-07    .64686E-05
  21  Prefactor     .10000E-03    36.218        .20463E-06** at limit **
  22  Prefactor     .10000E-03    5.7803        .78208E-08** at limit **
  23  Prefactor     10.973        17.764        .77786E-06   -.12031E-04
  24  Prefactor     .10000E-03    45.231       -.72374E-06** at limit **
  25  Normalizat    1.1719        .25587       -.68473E-05    .46060E-03
  26  Prefactor     1.1641        .20830        .49215E-05    .43862E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.80526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.04331
  Prefactor  = 0.00542095
  Prefactor  = 0.0001
  norm       = 10.3926
  Prefactor  = 64.4972
  norm       = 0.29856
  norm       = 52.7669
  Prefactor  = 0.0001
  norm       = 1.04371
  Prefactor  = 4.01064
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.5189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9728
  Prefactor  = 0.0001
  Normalizat = 1.17191
  Prefactor  = 1.16413
 **********
 **   18 **HESSE 
 **********

 FCN=   6445.876     FROM HESSE     STATUS=OK           462 CALLS     3633 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8053        15.793        .13506E-03   -1.5114    
   2  Prefactor     .10000E-03    183.77        .21319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.8240        .15316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    71.964        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.2950        .11809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    45.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0433        3.9334        .25264E-03   -1.5504    
   9  Prefactor     .54209E-02    8.0880        .32823E-01   -1.5693    
  10  Prefactor     .10000E-03    7.8991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.393        6.4350        .11785E-03   -1.5063    
  12  Prefactor     64.497        42.888        .49968E-04   -1.4100    
  13  norm          .29856        .29050        .41271E-03   -1.5599    
  14  norm          52.767        85.624        .55136E-04   -1.4254    
  15  Prefactor     .10000E-03    117.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0437        .79493        .53555E-04   -1.5504    
  17  Prefactor     4.0106        12.949        .20163E-03   -1.5307    
  18  Prefactor     .10000E-03    26.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.0670        .13666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.519        31.549        .88437E-04   -1.4802    
  21  Prefactor     .10000E-03    36.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.8134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.973        17.786        .12096E-03   -1.5045    
  24  Prefactor     .10000E-03    46.331        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1719        .27043        .28783E-03   -.87475    
  26  Prefactor     1.1641        .22344        .25698E-03   -.87442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31e-09
Minuit parameter uncertainties:
  1  15.8007
  2  0.000216326
  3  5.33357e-06
  4  0.000524787
  5  1.16879e-05
  6  5.40346e-05
  7  2.52261e-05
  8  3.93441
  9  0.414956
  10  4.9658e-06
  11  6.43539
  12  42.9088
  13  0.290504
  14  85.8242
  15  8.46181e-06
  16  0.794938
  17  12.9585
  18  6.68301e-07
  19  2.31443e-05
  20  31.5746
  21  9.31824e-05
  22  9.54615e-06
  23  17.795
  24  6.44323e-05
  25  0.270755
  26  0.223623
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  4.011e+00  1.296e+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.164e+00  2.236e-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.172e+00  2.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 187.712 12.388
Photon Flux Upper Limit: 9.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/333593/likelihoodResults_655862401_656121601_4FGL_J1230.8+1223_daily_bin1607.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6445.8454432
delta logL = 0.0303910664516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6445.84426353
delta logL = 0.0315707362843

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5151       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4090       1.0000          .0000       10.000    
     3 'Normalizat'    1.1643       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1668       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6445.844     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      263 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5028        13.308        .10781E-02    .24468E-03
   2  Index         2.4097        1.7204        .10499E-01    .16770E-03
   3  Normalizat    1.1645        .24672        .28864E-03   -.15361E-05
   4  Prefactor     1.1666        .21986        .25674E-03    .88563E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.5028
  Index      = 2.40966
  Normalizat = 1.16454
  Prefactor  = 1.16659
 **********
 **   18 **HESSE 
 **********

 FCN=   6445.844     FROM HESSE     STATUS=OK            27 CALLS      290 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5028        11.372        .21563E-03   -1.5334    
   2  Index         2.4097        1.4810        .20999E-02   -.54459    
   3  Normalizat    1.1645        .24626        .11545E-04   -.87706    
   4  Prefactor     1.1666        .21917        .10269E-04   -.87366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21173e-12
Minuit parameter uncertainties:
  1  11.3792
  2  1.51229
  3  0.246502
  4  0.219342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/333593': 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) = 6445.84426216
delta logL = 0.0315720997878

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  3.503e+00  1.138e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.410e+00  1.512e+00  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.167e+00  2.193e-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.165e+00  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
Ra Dec: 187.712 12.388

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/333593/cmap_HighResolution_655862401_656121601_4FGL_J1230.8+1223_daily_bin1607.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.19e-03', job_status='DONE', photon_flux_upper_limit='9.54e-08', time_completed='2021-12-07 23:28:00.503567', job_id='333593', GAL2='1.17', fit_tolerance='1e-08', EG2='1.16', EG='1.17', time_epoch_completed='1638948480.5', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='3.16e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1607' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 23:28:00 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 333593: <4FGL_J1230.8+1223_daily_bin1607> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1607> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 23:15:16 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 23:15:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 23:15:30 2021
Terminated at Tue Dec  7 23:28:01 2021
Results reported at Tue Dec  7 23:28:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1607 187.712 12.3883 655862401 656121601 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 :                                   741.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            765 sec.

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

