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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1528
RA = 187.712, Dec = 12.3883
tmin = 635385601, tmax = 635644801
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='759516', job_status='RUN', time_executed='2021-09-05 21:45:25.655657', time_epoch_executed='1630903525.66' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1528'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/759516

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/759516/ft1_4FGL_J1230.8+1223_daily_bin1528.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/759516/ft2_4FGL_J1230.8+1223_daily_bin1528.fits


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

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

Done.
real 2.86
user 2.63
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/759516/ft1_filtered_4FGL_J1230.8+1223_daily_bin1528.fits" evtable="EVENTS" scfile=/scratch/kocevski/759516/ft2_4FGL_J1230.8+1223_daily_bin1528.fits sctable="SC_DATA" outfile=/scratch/kocevski/759516/ltcube_635385601_635644801_4FGL_J1230.8+1223_daily_bin1528.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/759516/ft2_4FGL_J1230.8+1223_daily_bin1528.fits
.....................!
real 17.18
user 16.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/759516/ft1_filtered_4FGL_J1230.8+1223_daily_bin1528.fits evtable="EVENTS" scfile=/scratch/kocevski/759516/ft2_4FGL_J1230.8+1223_daily_bin1528.fits sctable="SC_DATA" expcube=/scratch/kocevski/759516/ltcube_635385601_635644801_4FGL_J1230.8+1223_daily_bin1528.fits outfile=/scratch/kocevski/759516/expmap_635385601_635644801_4FGL_J1230.8+1223_daily_bin1528.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/759516/ltcube_635385601_635644801_4FGL_J1230.8+1223_daily_bin1528.fits
.....................!
real 192.55
user 187.31
sys 4.74

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/759516/ft1_filtered_4FGL_J1230.8+1223_daily_bin1528.fits scfile=/scratch/kocevski/759516/ft2_4FGL_J1230.8+1223_daily_bin1528.fits outfile=/scratch/kocevski/759516/cmap_635385601_635644801_4FGL_J1230.8+1223_daily_bin1528.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.64
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/759516/ft1_filtered_4FGL_J1230.8+1223_daily_bin1528.fits scfile=/scratch/kocevski/759516/ft2_4FGL_J1230.8+1223_daily_bin1528.fits outfile=/scratch/kocevski/759516/cmap_HighResolution_635385601_635644801_4FGL_J1230.8+1223_daily_bin1528.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.66
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10814E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7349       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .39976E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.0630       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .76484       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    82.152       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2494       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.113       1.0000         .10000E-03   10000.    
    18 'Prefactor '    49.067       1.0000         .10000E-03   10000.    
    19 'norm      '    7.5858       1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.783       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5925       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.467       1.0000         .10000E-03   10000.    
    24 'Prefactor '    43.510       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .94813       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0061       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=   2759.067     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3624 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    462.58       -.89961E-06** at limit **
   2  Prefactor     .10000E-03    99.223        .89729E-08** at limit **
   3  Prefactor     .10000E-03    13.926        .71915E-07** at limit **
   4  Prefactor     .10000E-03    41.967        .32892E-06** at limit **
   5  Prefactor     5.7424        20.023        .21617E-05    .15400E-05
   6  Prefactor     .10000E-03    246.88        .97798E-06** at limit **
   7  Prefactor     .10000E-03    47.639       -.11874E-06** at limit **
   8  Prefactor     .10000E-03    6.3615       -.17573E-06** at limit **
   9  Prefactor     .10000E-03    3.2844       -.18079E-06** at limit **
  10  Prefactor     .10000E-03    21.611       -.23118E-06** at limit **
  11  norm          5.0643        6.7249        .30034E-05   -.37695E-04
  12  Prefactor     .10000E-03    21.884        .51173E-08** at limit **
  13  norm          .76481        .68253       -.73398E-07   -.80213E-04
  14  norm          .10000E-03    32.126       -.38783E-06** at limit **
  15  Prefactor     82.124        179.09       -.16157E-05   -.53395E-05
  16  norm          2.2495        1.1294       -.26055E-06   -.10191E-03
  17  Prefactor     25.136        28.001        .18602E-06    .13992E-04
  18  Prefactor     48.860        78.885       -.64823E-06   -.61631E-04
  19  norm          7.5864        3.5245       -.10346E-06   -.56696E-04
  20  Prefactor     32.775        44.176        .16303E-06   -.19484E-05
  21  Prefactor     .10000E-03    45.364       -.21833E-06** at limit **
  22  Prefactor     3.5962        14.068        .40845E-06    .52393E-06
  23  Prefactor     16.484        25.746       -.32904E-06   -.23074E-05
  24  Prefactor     43.516        32.372       -.16255E-06    .26192E-06
  25  Normalizat    .94745        .38373        .27419E-05   -.43002E-04
  26  Prefactor     1.0065        .28932       -.27043E-05    .35930E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.74243
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.06431
  Prefactor  = 0.0001
  norm       = 0.764812
  norm       = 0.0001
  Prefactor  = 82.1237
  norm       = 2.2495
  Prefactor  = 25.1358
  Prefactor  = 48.8596
  norm       = 7.58639
  Prefactor  = 32.7754
  Prefactor  = 0.0001
  Prefactor  = 3.59616
  Prefactor  = 16.4839
  Prefactor  = 43.5164
  Normalizat = 0.947451
  Prefactor  = 1.00654
 **********
 **   18 **HESSE 
 **********

 FCN=   2759.067     FROM HESSE     STATUS=OK           456 CALLS     4080 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    463.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    99.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    42.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.7424        19.977        .16772E-03   -1.5229    
   6  Prefactor     .10000E-03    247.08        .21264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    47.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3828        .12926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.2880        .92969E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.0643        6.8045        .71153E-03   -1.5258    
  12  Prefactor     .10000E-03    21.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .76481        .67086        .38762E-04   -1.5533    
  14  norm          .10000E-03    32.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     82.124        179.27        .44315E-04   -1.3893    
  16  norm          2.2495        1.1293        .27398E-04   -1.5408    
  17  Prefactor     25.136        27.999        .79937E-04   -1.4705    
  18  Prefactor     48.860        79.007        .28624E-03   -1.4309    
  19  norm          7.5864        3.5250        .61003E-04   -1.5157    
  20  Prefactor     32.775        44.183        .69985E-04   -1.4562    
  21  Prefactor     .10000E-03    45.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.5962        14.108        .21320E-03   -1.5329    
  23  Prefactor     16.484        25.951        .98700E-04   -1.4896    
  24  Prefactor     43.516        32.514        .60778E-04   -1.4388    
  25  Normalizat    .94745        .44609        .33247E-03   -.94812    
  26  Prefactor     1.0065        .33317        .26648E-03   -.92512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62022e-10
Minuit parameter uncertainties:
  1  0.000506968
  2  3.1974e-05
  3  3.26252e-06
  4  9.98995e-05
  5  19.9997
  6  0.000917969
  7  0.000143328
  8  1.38502e-05
  9  1.40178e-06
  10  7.67956e-05
  11  6.80553
  12  3.84737e-05
  13  0.670863
  14  0.000123032
  15  180.473
  16  1.12927
  17  28.0137
  18  79.1767
  19  3.52512
  20  44.2272
  21  1.60755e-05
  22  14.121
  23  25.969
  24  32.5276
  25  0.447848
  26  0.333855
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  2.514e+01  2.801e+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.007e+00  3.339e-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:  9.475e-01  4.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 6.86e-08 +/- 7.64e-08
Energy Flux (Fixed Index): 4.14e-05 +/- 4.61e-05

TS (Fixed Index): 1.79
Ra Dec: 187.712 12.388
Photon Flux Upper Limit: 2.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/759516/likelihoodResults_635385601_635644801_4FGL_J1230.8+1223_daily_bin1528.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) = 2759.06305468
delta logL = 0.00357747581938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2759.06234087
delta logL = 0.00429128809674

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.098       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0005       1.0000          .0000       10.000    
     3 'Normalizat'    .94983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0057       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=   2759.062     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      265 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.110        27.916        .78415E-04    .24864E-04
   2  Index         2.0003        .61740        .61667E-02    .10822E-03
   3  Normalizat    .95023        .39092        .33204E-03   -.28983E-04
   4  Prefactor     1.0055        .32496        .26661E-03    .56094E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.1096
  Index      = 2.0003
  Normalizat = 0.950229
  Prefactor  = 1.00549
 **********
 **   18 **HESSE 
 **********

 FCN=   2759.062     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.110        27.637        .31366E-05   -1.4686    
   2  Index         2.0003        .61117        .12333E-02   -.64343    
   3  Normalizat    .95023        .39125        .13282E-04   -.94717    
   4  Prefactor     1.0055        .32527        .10665E-04   -.92547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.33644e-11
Minuit parameter uncertainties:
  1  27.6503
  2  0.613571
  3  0.392434
  4  0.325907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/759516': 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) = 2759.0623401
delta logL = 0.00429205734372

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  2.611e+01  2.765e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.000e+00  6.136e-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.005e+00  3.259e-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:  9.502e-01  3.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.80
Ra Dec: 187.712 12.388
Photon Index (Free Index): 2.00 +/- 0.61
Photon Flux (Free Index): 6.43e-08 +/- 7.88e-08
Energy Flux (Free Index): 4.44e-05 +/- 5.65e-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/759516/cmap_HighResolution_635385601_635644801_4FGL_J1230.8+1223_daily_bin1528.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-02', comment='SUCCESS', photon_flux='6.86e-08', energy_flux2='4.44e-05', photon_flux_error='7.64e-08', dlogl='4.29e-03', energy_flux='4.14e-05', photon_flux2='6.43e-08', job_status='DONE', time_completed='2021-09-05 21:56:20.505487', photon_index_error2='0.61', photon_index2='2.00', ts='1.79', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='2.37e-07', energy_flux_error2='5.65e-05', EG='0.95', time_epoch_completed='1630904180.51', return_code='0', job_id='759516', GAL2='1.01', EG2='0.95', return_code2='0', energy_flux_error='4.61e-05', photon_flux_error2='7.88e-08', ts2='1.80', photon_index='2.06' WHERE bin_id='1528' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:56:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 759516: <4FGL_J1230.8+1223_daily_bin1528> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1528> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:40:48 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:41:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 21:41:17 2021
Terminated at Sun Sep  5 21:56:21 2021
Results reported at Sun Sep  5 21:56:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1528 187.712 12.3883 635385601 635644801 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 :                                   514.31 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             218.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            933 sec.

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

