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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1327
RA = 187.712, Dec = 12.3883
tmin = 583286401, tmax = 583545601
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='759073', job_status='RUN', time_executed='2021-09-05 21:42:54.536666', time_epoch_executed='1630903374.54' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/759073

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/759073/ft1_4FGL_J1230.8+1223_daily_bin1327.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/759073/ft2_4FGL_J1230.8+1223_daily_bin1327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/759073/ft1_4FGL_J1230.8+1223_daily_bin1327.fits outfile=/scratch/kocevski/759073/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1327.fits ra=187.712 dec=12.3883 rad=12.0 tmin=583286401.0 tmax=583545601.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.57
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/759073/ft1_filtered_4FGL_J1230.8+1223_daily_bin1327.fits" evtable="EVENTS" scfile=/scratch/kocevski/759073/ft2_4FGL_J1230.8+1223_daily_bin1327.fits sctable="SC_DATA" outfile=/scratch/kocevski/759073/ltcube_583286401_583545601_4FGL_J1230.8+1223_daily_bin1327.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/759073/ft2_4FGL_J1230.8+1223_daily_bin1327.fits
.....................!
real 17.34
user 16.87
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/759073/ft1_filtered_4FGL_J1230.8+1223_daily_bin1327.fits evtable="EVENTS" scfile=/scratch/kocevski/759073/ft2_4FGL_J1230.8+1223_daily_bin1327.fits sctable="SC_DATA" expcube=/scratch/kocevski/759073/ltcube_583286401_583545601_4FGL_J1230.8+1223_daily_bin1327.fits outfile=/scratch/kocevski/759073/expmap_583286401_583545601_4FGL_J1230.8+1223_daily_bin1327.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/759073/ltcube_583286401_583545601_4FGL_J1230.8+1223_daily_bin1327.fits
.....................!
real 190.90
user 186.48
sys 3.85

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/759073/ft1_filtered_4FGL_J1230.8+1223_daily_bin1327.fits scfile=/scratch/kocevski/759073/ft2_4FGL_J1230.8+1223_daily_bin1327.fits outfile=/scratch/kocevski/759073/cmap_583286401_583545601_4FGL_J1230.8+1223_daily_bin1327.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/759073/ft1_filtered_4FGL_J1230.8+1223_daily_bin1327.fits scfile=/scratch/kocevski/759073/ft2_4FGL_J1230.8+1223_daily_bin1327.fits outfile=/scratch/kocevski/759073/cmap_HighResolution_583286401_583545601_4FGL_J1230.8+1223_daily_bin1327.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.42
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2276       1.0000         .10000E-03   10000.    
     2 'Prefactor '    148.45       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20641E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.981       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6499       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.5755       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.4666       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.194       1.0000         .10000E-03   10000.    
    19 'norm      '    4.2126       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.1767       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.8895       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.809       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.8016       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .51966       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.5972       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=   5888.471     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     3160 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2245        31.093        .45672E-05   -.17060E-04
   2  Prefactor     148.45        135.54        .93314E-07   -.21360E-06
   3  Prefactor     .10000E-03    5.9290       -.30648E-07** at limit **
   4  Prefactor     .10000E-03    13.203        .69495E-07** at limit **
   5  Prefactor     .10003E-03    1.9637        .30533E-06** at limit **
   6  Prefactor     .10000E-03    63.902        .14922E-05** at limit **
   7  Prefactor     14.987        45.149       -.42935E-06   -.86506E-06
   8  Prefactor     .10000E-03    .92924        .31685E-07** at limit **
   9  Prefactor     4.6495        3.6042       -.16553E-08   -.64575E-04
  10  Prefactor     .10000E-03    17.247        .65964E-07** at limit **
  11  norm          6.5741        5.1250        .14245E-06    .13622E-04
  12  Prefactor     .10000E-03    12.026       -.38361E-07** at limit **
  13  norm          .10000E-03    .11252       -.72894E-08** at limit **
  14  norm          7.4750        76.870       -.11241E-05   -.12303E-05
  15  Prefactor     .10000E-03    150.71       -.41794E-05** at limit **
  16  norm          .10000E-03    .16606        .16500E-07** at limit **
  17  Prefactor     .10000E-03    3.3600       -.37991E-08** at limit **
  18  Prefactor     23.202        26.287        .11083E-06    .87426E-06
  19  norm          4.2127        1.8900        .22229E-07    .22275E-04
  20  Prefactor     .10000E-03    49.593       -.74930E-06** at limit **
  21  Prefactor     9.2758        54.647       -.99325E-05   -.15805E-04
  22  Prefactor     6.8908        8.9468        .79370E-07    .32876E-05
  23  Prefactor     14.801        16.212        .15681E-05    .35328E-04
  24  Prefactor     5.8064        12.874        .11132E-07   -.26426E-06
  25  Normalizat    .51944        .22725       -.43378E-06   -.14725E-04
  26  Prefactor     1.5972        .19559        .67987E-07   -.37169E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.2245
  Prefactor  = 148.45
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  Prefactor  = 14.9867
  Prefactor  = 0.0001
  Prefactor  = 4.64948
  Prefactor  = 0.0001
  norm       = 6.57413
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.47499
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.202
  norm       = 4.21269
  Prefactor  = 0.0001
  Prefactor  = 9.27579
  Prefactor  = 6.89085
  Prefactor  = 14.8006
  Prefactor  = 5.80639
  Normalizat = 0.51944
  Prefactor  = 1.59721
 **********
 **   18 **HESSE 
 **********

 FCN=   5888.471     FROM HESSE     STATUS=OK           462 CALLS     3622 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2245        31.307        .13774E-02   -1.5410    
   2  Prefactor     148.45        135.27        .33077E-04   -1.3265    
   3  Prefactor     .10000E-03    5.9548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    17.701        .20070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    63.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.987        45.039        .10348E-03   -1.4934    
   8  Prefactor     .10000E-03    .93505        .72122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6495        3.5883        .12016E-03   -1.5277    
  10  Prefactor     .10000E-03    17.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.5741        5.0618        .11923E-03   -1.5195    
  12  Prefactor     .10000E-03    12.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .29417        .48962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.4750        75.457        .14677E-03   -1.5161    
  15  Prefactor     .10000E-03    150.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .17876        .59746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3618        .13735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.202        26.257        .83171E-04   -1.4744    
  19  norm          4.2127        1.8845        .67254E-04   -1.5297    
  20  Prefactor     .10000E-03    49.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.2758        54.840        .13230E-03   -1.5099    
  22  Prefactor     6.8908        8.9333        .15285E-03   -1.5183    
  23  Prefactor     14.801        16.167        .10408E-03   -1.4938    
  24  Prefactor     5.8064        12.815        .16674E-03   -1.5226    
  25  Normalizat    .51944        .24543        .37579E-03   -1.1152    
  26  Prefactor     1.5972        .21927        .21657E-03   -.74852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90086e-09
Minuit parameter uncertainties:
  1  16.7007
  2  135.55
  3  1.22571e-06
  4  4.24867e-06
  5  0.0015726
  6  1.49149e-05
  7  45.1417
  8  5.89518e-07
  9  3.58845
  10  1.31491e-06
  11  5.06214
  12  9.87557e-07
  13  2.39045e-07
  14  47.5766
  15  0.000111503
  16  9.18144e-08
  17  3.15645e-07
  18  26.2696
  19  1.88455
  20  1.43368e-05
  21  45.1702
  22  8.93499
  23  16.172
  24  12.8214
  25  0.245948
  26  0.219399
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  3.156e-07  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.597e+00  2.194e-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:  5.194e-01  2.459e-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.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/759073/likelihoodResults_583286401_583545601_4FGL_J1230.8+1223_daily_bin1327.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) = 5888.47190752
delta logL = -0.00136360044871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5888.47054385
delta logL = 6.29652276984e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0437       1.0000          .0000       10.000    
     3 'Normalizat'    .51948       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5972       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5888.471     FROM MIGRAD    STATUS=FAILED        88 CALLS      243 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10185E-03    98.042        .13841E-02** at limit **
   2  Index         1.9437        5.8296        .50000        .23904E-04
   3  Normalizat    .51944        .26591E-01    .37578E-03   -.76541E-05
   4  Prefactor     1.5972        .25614E-01    .21657E-03    .27559E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5888.471     FROM SIMPLEX   STATUS=UNCHANGED    136 CALLS      379 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10185E-03    98.042        .33183E-03** at limit **
   2  Index         1.9437        5.8296        .35525E-03    .23904E-04
   3  Normalizat    .51944        .26591E-01    .80563E-05   -.76541E-05
   4  Prefactor     1.5972        .25614E-01    .34501E-05    .27559E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5888.471     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      420 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    77.369        .27682E-02** at limit **
   2  Index         1.6986        6.7025        .50000        .46680E-06
   3  Normalizat    .51944        .22791E-01    .15031E-04    .25715E-05
   4  Prefactor     1.5972        .21954E-01    .86628E-05    .24147E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.6986
  Normalizat = 0.519439
  Prefactor  = 1.59721
 **********
 **   18 **HESSE 
 **********

 FCN=   5888.471     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      449 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    338.83        .55365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6986        5.6530        .50000       -.72119    
   3  Normalizat    .51944        .52851E-01    .30063E-05   -1.1152    
   4  Prefactor     1.5972        .50897E-01    .17326E-05   -.74852    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.31119e-09
Minuit parameter uncertainties:
  1  0.0016511
  2  1184.39
  3  0.0528557
  4  0.0508989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/759073': 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) = 5888.47054234
delta logL = 1.57300473802e-06

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  1.651e-03  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.699e+00  1.184e+03  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.597e+00  5.090e-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:  5.194e-01  5.286e-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/759073/cmap_HighResolution_583286401_583545601_4FGL_J1230.8+1223_daily_bin1327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-03', job_status='DONE', photon_flux_upper_limit='4.88e-08', time_completed='2021-09-05 21:56:45.289197', job_id='759073', GAL2='1.60', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1630904205.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.60', dlogl='1.57e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1327' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:56:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 759073: <4FGL_J1230.8+1223_daily_bin1327> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1327> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:40:23 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:40:25 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:40:25 2021
Terminated at Sun Sep  5 21:56:46 2021
Results reported at Sun Sep  5 21:56:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1327 187.712 12.3883 583286401 583545601 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 :                                   716.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

