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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1064
RA = 187.712, Dec = 12.3883
tmin = 515116801, tmax = 515376001
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='757618', job_status='RUN', time_executed='2021-09-05 21:36:51.007248', time_epoch_executed='1630903011.01' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1064'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757618

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757618/ft1_4FGL_J1230.8+1223_daily_bin1064.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757618/ft2_4FGL_J1230.8+1223_daily_bin1064.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757618/ft1_4FGL_J1230.8+1223_daily_bin1064.fits outfile=/scratch/kocevski/757618/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1064.fits ra=187.712 dec=12.3883 rad=12.0 tmin=515116801.0 tmax=515376001.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.93
user 2.73
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/757618/ft1_filtered_4FGL_J1230.8+1223_daily_bin1064.fits" evtable="EVENTS" scfile=/scratch/kocevski/757618/ft2_4FGL_J1230.8+1223_daily_bin1064.fits sctable="SC_DATA" outfile=/scratch/kocevski/757618/ltcube_515116801_515376001_4FGL_J1230.8+1223_daily_bin1064.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/757618/ft2_4FGL_J1230.8+1223_daily_bin1064.fits
.....................!
real 14.41
user 14.09
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757618/ft1_filtered_4FGL_J1230.8+1223_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/757618/ft2_4FGL_J1230.8+1223_daily_bin1064.fits sctable="SC_DATA" expcube=/scratch/kocevski/757618/ltcube_515116801_515376001_4FGL_J1230.8+1223_daily_bin1064.fits outfile=/scratch/kocevski/757618/expmap_515116801_515376001_4FGL_J1230.8+1223_daily_bin1064.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/757618/ltcube_515116801_515376001_4FGL_J1230.8+1223_daily_bin1064.fits
.....................!
real 156.85
user 152.57
sys 3.31

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/757618/ft1_filtered_4FGL_J1230.8+1223_daily_bin1064.fits scfile=/scratch/kocevski/757618/ft2_4FGL_J1230.8+1223_daily_bin1064.fits outfile=/scratch/kocevski/757618/cmap_515116801_515376001_4FGL_J1230.8+1223_daily_bin1064.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.49
user 0.35
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757618/ft1_filtered_4FGL_J1230.8+1223_daily_bin1064.fits scfile=/scratch/kocevski/757618/ft2_4FGL_J1230.8+1223_daily_bin1064.fits outfile=/scratch/kocevski/757618/cmap_HighResolution_515116801_515376001_4FGL_J1230.8+1223_daily_bin1064.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.52
user 0.35
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.424       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4860       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.9404       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .30821       1.0000         .10000E-03   10000.    
    14 'norm      '    .13978E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    135.73       1.0000         .10000E-03   10000.    
    16 'norm      '    .51471       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .20279E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.143       1.0000         .10000E-03   10000.    
    24 'Prefactor '    32.619       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1686       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91953       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=   5481.063     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3212 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.070        .15066E-07** at limit **
   2  Prefactor     .10000E-03    34.325       -.61507E-05** at limit **
   3  Prefactor     .10000E-03    4.8401       -.11924E-07** at limit **
   4  Prefactor     14.421        13.002       -.95244E-07    .17607E-04
   5  Prefactor     .10000E-03    3.4068       -.25510E-07** at limit **
   6  Prefactor     .10000E-03    44.199       -.86028E-05** at limit **
   7  Prefactor     .10000E-03    18.221        .90595E-07** at limit **
   8  Prefactor     2.4855        2.1975       -.52920E-07   -.92203E-04
   9  Prefactor     .10000E-03    .78826        .17657E-08** at limit **
  10  Prefactor     .10000E-03    12.888       -.11599E-07** at limit **
  11  norm          5.9451        4.6485        .25180E-06   -.55610E-03
  12  Prefactor     .10000E-03    64.053        .26664E-05** at limit **
  13  norm          .30818        .21224       -.26473E-07   -.93333E-03
  14  norm          .10000E-03    397.33        .13688E-04** at limit **
  15  Prefactor     135.69        120.32       -.27913E-04   -.54176E-05
  16  norm          .51494        .58676       -.67536E-07   -.13359E-02
  17  Prefactor     .10000E-03    3.7261       -.10840E-08** at limit **
  18  Prefactor     .10000E-03    9.7525       -.13226E-07** at limit **
  19  norm          .10000E-03    .62545        .97036E-07** at limit **
  20  Prefactor     .10501E-03    27.285       -.22687E-05** at limit **
  21  Prefactor     .10000E-03    37.769        .12866E-04** at limit **
  22  Prefactor     .10000E-03    2.8257       -.12548E-07** at limit **
  23  Prefactor     18.142        17.488       -.36832E-06   -.90684E-04
  24  Prefactor     32.617        17.452       -.78702E-08   -.25478E-04
  25  Normalizat    1.1687        .20537        .36239E-06   -.30102E-04
  26  Prefactor     .91956        .17743        .46501E-06   -.16429E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.4211
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.48551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.94509
  Prefactor  = 0.000100001
  norm       = 0.308178
  norm       = 0.000100001
  Prefactor  = 135.686
  norm       = 0.514945
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000105006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1419
  Prefactor  = 32.6174
  Normalizat = 1.16868
  Prefactor  = 0.919559
 **********
 **   18 **HESSE 
 **********

 FCN=   5481.063     FROM HESSE     STATUS=OK           462 CALLS     3674 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.8548        .15906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.421        13.014        .10546E-03   -1.4948    
   5  Prefactor     .10000E-03    3.5147        .26659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    44.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4855        2.1966        .99185E-04   -1.5393    
   9  Prefactor     .10000E-03    .79088        .64156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.9451        4.5479        .12243E-03   -1.5220    
  12  Prefactor     .10000E-03    66.260        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .30818        .20700        .27061E-04   -1.5597    
  14  norm          .10000E-03    407.41        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     135.69        120.09        .17285E-03   -1.3373    
  16  norm          .51494        .55144        .53546E-03   -1.5564    
  17  Prefactor     .10000E-03    3.7373        .13956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.7821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .89819        .11289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10501E-03    29.158        .13457       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    37.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.8355        .12153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     18.142        17.542        .94029E-04   -1.4856    
  24  Prefactor     32.617        17.468        .70159E-04   -1.4565    
  25  Normalizat    1.1687        .24354        .24993E-03   -.87576    
  26  Prefactor     .91956        .20972        .25230E-03   -.95461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.50294e-10
Minuit parameter uncertainties:
  1  5.48717e-06
  2  1.45495e-06
  3  8.14459e-07
  4  13.0166
  5  4.286e-06
  6  2.91975e-06
  7  1.42779e-06
  8  2.19668
  9  3.15452e-07
  10  6.16508e-06
  11  4.54814
  12  0.000449289
  13  0.207005
  14  0.00131827
  15  120.306
  16  0.55145
  17  8.56406e-08
  18  1.69006e-06
  19  8.54745e-06
  20  0.024176
  21  1.97133e-06
  22  1.24887e-06
  23  17.5465
  24  17.4706
  25  0.243777
  26  0.209907
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  8.564e-08  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.196e-01  2.099e-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.169e+00  2.438e-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: 4.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/757618/likelihoodResults_515116801_515376001_4FGL_J1230.8+1223_daily_bin1064.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) = 5481.06386814
delta logL = -0.00126648921014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5481.06260149
delta logL = 1.66656718648e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0329       1.0000          .0000       10.000    
     3 'Normalizat'    1.1687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91956       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=   5481.063     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10127E-03    39.946        .14278E-02** at limit **
   2  Index         1.9782        5.8120        .50000        .41148E-04
   3  Normalizat    1.1687        .15738E-01    .24993E-03   -.11918E-04
   4  Prefactor     .91956        .14355E-01    .25230E-03   -.16852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101271
  Index      = 1.97824
  Normalizat = 1.16868
  Prefactor  = 0.919559
 **********
 **   18 **HESSE 
 **********

 FCN=   5481.063     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10127E-03    166.41        .28556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9782        7.9439        .50000       -.64895    
   3  Normalizat    1.1687        .33381E-01    .99974E-05   -.87576    
   4  Prefactor     .91956        .30448E-01    .10092E-04   -.95461    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.33863e-08
Minuit parameter uncertainties:
  1  0.0291626
  2  362.776
  3  0.0333816
  4  0.0304483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757618': 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) = 5481.06260088
delta logL = 7.70395672589e-07

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.013e-04  2.916e-02  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.978e+00  3.628e+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.196e-01  3.045e-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.169e+00  3.338e-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/757618/cmap_HighResolution_515116801_515376001_4FGL_J1230.8+1223_daily_bin1064.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-03', job_status='DONE', photon_flux_upper_limit='4.74e-08', time_completed='2021-09-05 21:46:30.309958', job_id='757618', GAL2='0.92', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630903590.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='7.70e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1064' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:46:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 757618: <4FGL_J1230.8+1223_daily_bin1064> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1064 187.712 12.3883 515116801 515376001 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 :                                   573.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   590 sec.
    Turnaround time :                            653 sec.

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

