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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1525
RA = 187.712, Dec = 12.3883
tmin = 634608001, tmax = 634867201
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='759508', job_status='RUN', time_executed='2021-09-05 21:44:40.422706', time_epoch_executed='1630903480.42' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/759508

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/759508/ft1_4FGL_J1230.8+1223_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/759508/ft2_4FGL_J1230.8+1223_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/759508/ft1_4FGL_J1230.8+1223_daily_bin1525.fits outfile=/scratch/kocevski/759508/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1525.fits ra=187.712 dec=12.3883 rad=12.0 tmin=634608001.0 tmax=634867201.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.12
user 2.91
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/759508/ft1_filtered_4FGL_J1230.8+1223_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/759508/ft2_4FGL_J1230.8+1223_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/759508/ltcube_634608001_634867201_4FGL_J1230.8+1223_daily_bin1525.fits outfile=/scratch/kocevski/759508/expmap_634608001_634867201_4FGL_J1230.8+1223_daily_bin1525.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/759508/ltcube_634608001_634867201_4FGL_J1230.8+1223_daily_bin1525.fits
.....................!
real 193.14
user 187.88
sys 4.76

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/759508/ft1_filtered_4FGL_J1230.8+1223_daily_bin1525.fits scfile=/scratch/kocevski/759508/ft2_4FGL_J1230.8+1223_daily_bin1525.fits outfile=/scratch/kocevski/759508/cmap_634608001_634867201_4FGL_J1230.8+1223_daily_bin1525.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/759508/ft1_filtered_4FGL_J1230.8+1223_daily_bin1525.fits scfile=/scratch/kocevski/759508/ft2_4FGL_J1230.8+1223_daily_bin1525.fits outfile=/scratch/kocevski/759508/cmap_HighResolution_634608001_634867201_4FGL_J1230.8+1223_daily_bin1525.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    62.604       1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.156       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21723E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0263       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .96594       1.0000         .10000E-03   10000.    
    14 'norm      '    35.123       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.8839       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.3421       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.712       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.924       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.604       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2404       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95775       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=   2722.244     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     3452 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.060       -.13532E-05** at limit **
   2  Prefactor     62.833        229.70        .28174E-03   -.19881E-05
   3  Prefactor     48.158        39.584       -.58517E-05   -.45640E-04
   4  Prefactor     .10000E-03    69.527        .11486E-04** at limit **
   5  Prefactor     .10000E-03    7.4716        .79070E-06** at limit **
   6  Prefactor     .10000E-03    143.88       -.38367E-04** at limit **
   7  Prefactor     .10000E-03    27.689        .15284E-04** at limit **
   8  Prefactor     .10000E-03    2.3280        .49801E-06** at limit **
   9  Prefactor     .10000E-03    3.4462        .40476E-06** at limit **
  10  Prefactor     .10000E-03    18.277        .15978E-05** at limit **
  11  norm          3.0292        8.2277        .14836E-04   -.17109E-04
  12  Prefactor     .10000E-03    32.631        .15795E-04** at limit **
  13  norm          .96595        .56508        .17727E-07   -.39738E-03
  14  norm          35.050        100.45       -.10592E-03   -.31122E-04
  15  Prefactor     .10000E-03    84.837        .48627E-04** at limit **
  16  norm          3.8838        1.5079        .11939E-05   -.16700E-02
  17  Prefactor     .10000E-03    13.075       -.35869E-06** at limit **
  18  Prefactor     .10000E-03    24.293       -.17163E-04** at limit **
  19  norm          8.3416        3.5458        .10692E-05   -.84300E-04
  20  Prefactor     24.619        67.568       -.13297E-03    .51017E-05
  21  Prefactor     .10000E-03    47.948       -.42085E-04** at limit **
  22  Prefactor     .10000E-03    4.2596        .12109E-06** at limit **
  23  Prefactor     12.921        17.462       -.52466E-07    .51111E-04
  24  Prefactor     16.606        17.208       -.10690E-06   -.76940E-05
  25  Normalizat    1.2403        .35145       -.12234E-04    .30556E-03
  26  Prefactor     .95790        .29527        .13960E-04   -.23595E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 62.8333
  Prefactor  = 48.1581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.02919
  Prefactor  = 0.0001
  norm       = 0.965945
  norm       = 35.0503
  Prefactor  = 0.0001
  norm       = 3.88382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.34161
  Prefactor  = 24.6188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.921
  Prefactor  = 16.6061
  Normalizat = 1.24033
  Prefactor  = 0.957899
 **********
 **   18 **HESSE 
 **********

 FCN=   2722.244     FROM HESSE     STATUS=OK           444 CALLS     3896 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     62.833        229.29        .25357E-03   -1.4121    
   3  Prefactor     48.158        39.605        .57784E-04   -1.4319    
   4  Prefactor     .10000E-03    69.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.4912        .13929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    143.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.3312        .77743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4793        .94579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0292        8.1103        .19302E-03   -1.5360    
  12  Prefactor     .10000E-03    32.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .96595        .56629        .28661E-04   -1.5511    
  14  norm          35.050        99.866        .67619E-04   -1.4523    
  15  Prefactor     .10000E-03    84.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8838        1.5106        .35267E-04   -1.5314    
  17  Prefactor     .10000E-03    13.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.3416        3.5450        .60550E-04   -1.5130    
  20  Prefactor     24.619        67.614        .80581E-04   -1.4715    
  21  Prefactor     .10000E-03    47.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.2623        .10517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.921        17.481        .11142E-03   -1.4989    
  24  Prefactor     16.606        17.228        .98289E-04   -1.4893    
  25  Normalizat    1.2403        .42566        .28876E-03   -.85366    
  26  Prefactor     .95790        .35548        .27877E-03   -.94146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67506e-09
Minuit parameter uncertainties:
  1  1.02694e-05
  2  232.632
  3  39.6262
  4  0.000228405
  5  3.52323e-06
  6  0.000223743
  7  0.000172304
  8  3.81554e-07
  9  8.04398e-06
  10  6.80531e-05
  11  8.11327
  12  8.0997e-05
  13  0.566293
  14  100.347
  15  2.78313e-05
  16  1.51063
  17  2.70124e-05
  18  6.79247e-06
  19  3.54509
  20  67.8254
  21  7.34114e-06
  22  1.68114e-06
  23  17.488
  24  17.2331
  25  0.426865
  26  0.356346
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  2.701e-05  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:  9.579e-01  3.563e-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.240e+00  4.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.712 12.388
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/759508/likelihoodResults_634608001_634867201_4FGL_J1230.8+1223_daily_bin1525.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): 102
logL (Free Index) = 2722.24481185
delta logL = -0.000362407261036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2722.24444944
delta logL = 3.4360709833e-09

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 'Index     '    2.0521       1.0000          .0000       10.000    
     3 'Normalizat'    1.2403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95793       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=   2722.244     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.324        .90712E-02** at limit **
   2  Index         2.0471        5.4008        .50000        .29605E-05
   3  Normalizat    1.2403        .10373E-01    .65278E-01    .47212E-05
   4  Prefactor     .95792        .89768E-02    .45739E-01    .66672E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.04714
  Normalizat = 1.2403
  Prefactor  = 0.95792
 **********
 **   18 **HESSE 
 **********

 FCN=   2722.244     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    154.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0471        7.0310        .50000       -.63177    
   3  Normalizat    1.2403        .28926E-01    .28877E-03   -.85366    
   4  Prefactor     .95792        .25047E-01    .27876E-03   -.94146    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.3038e-07
Minuit parameter uncertainties:
  1  1.14465e-05
  2  492.721
  3  0.0289264
  4  0.0250472
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/759508': 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): 102
logL (Free Index) = 2722.24444944
delta logL = 9.81617631624e-09

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  1.145e-05  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.047e+00  4.927e+02  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:  9.579e-01  2.505e-02  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.240e+00  2.893e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/759508/cmap_HighResolution_634608001_634867201_4FGL_J1230.8+1223_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.49e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-05 21:57:02.654657', job_id='759508', GAL2='0.96', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630904222.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='9.82e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1525' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:57:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 759508: <4FGL_J1230.8+1223_daily_bin1525> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1525> 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) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:41:15 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:15 2021
Terminated at Sun Sep  5 21:57:03 2021
Results reported at Sun Sep  5 21:57:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1525 187.712 12.3883 634608001 634867201 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 :                                   516.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             222.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            975 sec.

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

