/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 16 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 = 7384
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1453
RA = 187.712, Dec = 12.3883
tmin = 615945601, tmax = 616204801
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='759309', job_status='RUN', time_executed='2021-09-05 21:41:47.913429', time_epoch_executed='1630903307.91' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1453'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/759309

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/759309/ft1_4FGL_J1230.8+1223_daily_bin1453.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/759309/ft2_4FGL_J1230.8+1223_daily_bin1453.fits


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

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

Done.
real 4.31
user 4.02
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/759309/ft1_filtered_4FGL_J1230.8+1223_daily_bin1453.fits evtable="EVENTS" scfile=/scratch/kocevski/759309/ft2_4FGL_J1230.8+1223_daily_bin1453.fits sctable="SC_DATA" expcube=/scratch/kocevski/759309/ltcube_615945601_616204801_4FGL_J1230.8+1223_daily_bin1453.fits outfile=/scratch/kocevski/759309/expmap_615945601_616204801_4FGL_J1230.8+1223_daily_bin1453.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/759309/ltcube_615945601_616204801_4FGL_J1230.8+1223_daily_bin1453.fits
.....................!
real 193.64
user 188.02
sys 4.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/759309/ft1_filtered_4FGL_J1230.8+1223_daily_bin1453.fits scfile=/scratch/kocevski/759309/ft2_4FGL_J1230.8+1223_daily_bin1453.fits outfile=/scratch/kocevski/759309/cmap_615945601_616204801_4FGL_J1230.8+1223_daily_bin1453.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/759309/ft1_filtered_4FGL_J1230.8+1223_daily_bin1453.fits scfile=/scratch/kocevski/759309/ft2_4FGL_J1230.8+1223_daily_bin1453.fits outfile=/scratch/kocevski/759309/cmap_HighResolution_615945601_616204801_4FGL_J1230.8+1223_daily_bin1453.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11409E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8522       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1543       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .58848       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.0473       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1039       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1338       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2389       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4560       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.5413       1.0000         .10000E-03   10000.    
    19 'norm      '    3.6112       1.0000         .10000E-03   10000.    
    20 'Prefactor '    58.895       1.0000         .10000E-03   10000.    
    21 'Prefactor '    93.956       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.053       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.728       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .81918       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4139       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=   6123.459     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3083 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7359       -.14094E-05** at limit **
   2  Prefactor     .10000E-03    51.291        .50424E-04** at limit **
   3  Prefactor     .10000E-03    10.842        .15662E-05** at limit **
   4  Prefactor     .10000E-03    40.689        .23108E-04** at limit **
   5  Prefactor     .10000E-03    2.0249        .13034E-06** at limit **
   6  Prefactor     .10000E-03    63.593        .35461E-05** at limit **
   7  Prefactor     8.8204        31.845       -.49526E-04   -.12970E-04
   8  Prefactor     3.1533        3.0891       -.74235E-07   -.14697E-03
   9  Prefactor     .58888        2.6948       -.18226E-05   -.15979E-02
  10  Prefactor     .10000E-03    7.0347        .59081E-07** at limit **
  11  norm          2.0466        3.2799       -.33832E-06   -.43802E-03
  12  Prefactor     .10000E-03    36.172       -.33042E-04** at limit **
  13  norm          1.1039        .31731       -.22761E-07    .52771E-03
  14  norm          4.1380        65.623        .91604E-05   -.79228E-05
  15  Prefactor     .10000E-03    72.481       -.55697E-04** at limit **
  16  norm          1.2390        .68243        .22943E-07    .20078E-03
  17  Prefactor     7.4558        8.7552       -.32510E-06    .12784E-04
  18  Prefactor     8.5417        19.418       -.79183E-06   -.37570E-05
  19  norm          3.6117        2.2090       -.10946E-06   -.11246E-03
  20  Prefactor     58.892        58.723       -.36335E-05    .50482E-05
  21  Prefactor     93.959        74.173        .25452E-05    .10918E-04
  22  Prefactor     .10000E-03    3.0373       -.94113E-07** at limit **
  23  Prefactor     28.056        18.176       -.10383E-05    .11530E-04
  24  Prefactor     18.729        12.880        .35858E-06    .34558E-05
  25  Normalizat    .81902        .22165        .20995E-05   -.90627E-05
  26  Prefactor     1.4139        .19781        .13712E-05   -.58797E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.82039
  Prefactor  = 3.15333
  Prefactor  = 0.588883
  Prefactor  = 0.0001
  norm       = 2.0466
  Prefactor  = 0.0001
  norm       = 1.10395
  norm       = 4.13799
  Prefactor  = 0.0001
  norm       = 1.23901
  Prefactor  = 7.45577
  Prefactor  = 8.54172
  norm       = 3.61171
  Prefactor  = 58.8917
  Prefactor  = 93.959
  Prefactor  = 0.0001
  Prefactor  = 28.0559
  Prefactor  = 18.7294
  Normalizat = 0.819018
  Prefactor  = 1.41393
 **********
 **   18 **HESSE 
 **********

 FCN=   6123.459     FROM HESSE     STATUS=OK           456 CALLS     3539 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    51.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    41.916        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.0464        .10865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    63.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.8204        31.873        .13472E-03   -1.5114    
   8  Prefactor     3.1533        3.0189        .12237E-03   -1.5353    
   9  Prefactor     .58888        2.5392        .23331E-03   -1.5554    
  10  Prefactor     .10000E-03    7.0356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.0466        3.2289        .15757E-03   -1.5422    
  12  Prefactor     .10000E-03    36.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1039        .31757        .22368E-04   -1.5498    
  14  norm          4.1380        64.947        .19826E-03   -1.5301    
  15  Prefactor     .10000E-03    72.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2390        .66701        .43550E-04   -1.5485    
  17  Prefactor     7.4558        8.7434        .14688E-03   -1.5162    
  18  Prefactor     8.5417        19.389        .13716E-03   -1.5123    
  19  norm          3.6117        2.1971        .84241E-04   -1.5328    
  20  Prefactor     58.892        58.679        .52278E-04   -1.4172    
  21  Prefactor     93.959        74.183        .41462E-04   -1.3766    
  22  Prefactor     .10000E-03    3.0536        .13318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     28.056        18.200        .75640E-04   -1.4648    
  24  Prefactor     18.729        12.876        .92551E-04   -1.4842    
  25  Normalizat    .81902        .26066        .32691E-03   -.99367    
  26  Prefactor     1.4139        .23448        .24269E-03   -.79980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74581e-09
Minuit parameter uncertainties:
  1  1.51292e-05
  2  7.82676e-05
  3  3.72553e-05
  4  0.000728228
  5  4.74843e-06
  6  0.000128279
  7  31.9349
  8  3.01908
  9  2.44561
  10  1.58982e-05
  11  3.2292
  12  6.19742e-05
  13  0.317574
  14  32.8291
  15  1.12236e-05
  16  0.667015
  17  8.74489
  18  19.403
  19  2.19713
  20  58.7362
  21  74.2559
  22  5.97308e-06
  23  18.2039
  24  12.8776
  25  0.261056
  26  0.234659
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  7.456e+00  8.745e+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

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.414e+00  2.347e-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:  8.190e-01  2.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 2.03e-08 +/- 2.38e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.44e-05

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

Saving results to:
/scratch/kocevski/759309/likelihoodResults_615945601_616204801_4FGL_J1230.8+1223_daily_bin1453.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) = 6123.36994141
delta logL = 0.0891040215965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6123.36834056
delta logL = 0.0907048711906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4472       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4802       1.0000          .0000       10.000    
     3 'Normalizat'    .80250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4216       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=   6123.368     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      286 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4439        168.43        .43042E-02    .18804E-03
   2  Index         2.4813        6.2141        .14444        .10983E-03
   3  Normalizat    .80247        .90985E-01    .74552E-01    .18220E-04
   4  Prefactor     1.4218        .67497E-01    .54759E-01   -.36227E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.44388
  Index      = 2.4813
  Normalizat = 0.802474
  Prefactor  = 1.42183
 **********
 **   18 **HESSE 
 **********

 FCN=   6123.368     FROM HESSE     STATUS=OK            31 CALLS      317 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4439        9.9394        .17217E-03   -1.5241    
   2  Index         2.4813        1.1717        .82775E-02   -.52792    
   3  Normalizat    .80247        .24950        .32996E-03   -.99977    
   4  Prefactor     1.4218        .23309        .24210E-03   -.79753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73434e-11
Minuit parameter uncertainties:
  1  9.94237
  2  1.1866
  3  0.249853
  4  0.233259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/759309': 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) = 6123.36833728
delta logL = 0.0907081461364

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  5.444e+00  9.942e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.481e+00  1.187e+00  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.422e+00  2.333e-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:  8.025e-01  2.499e-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.48 +/- 1.19
Photon Flux (Free Index): 3.41e-08 +/- 4.83e-08
Energy Flux (Free Index): 1.01e-05 +/- 1.12e-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/759309/cmap_HighResolution_615945601_616204801_4FGL_J1230.8+1223_daily_bin1453.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.57e-03', comment='SUCCESS', photon_flux='2.03e-08', energy_flux2='1.01e-05', photon_flux_error='2.38e-08', dlogl='9.07e-02', energy_flux='1.23e-05', photon_flux2='3.41e-08', job_status='DONE', time_completed='2021-09-05 21:54:44.869987', photon_index_error2='1.19', photon_index2='2.48', ts='1.62', fit_tolerance='1e-08', GAL='1.41', photon_index_error='0.00', photon_flux_upper_limit='8.72e-08', energy_flux_error2='1.12e-05', EG='0.82', time_epoch_completed='1630904084.87', return_code='0', job_id='759309', GAL2='1.42', EG2='0.80', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='4.83e-08', ts2='1.80', photon_index='2.06' WHERE bin_id='1453' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:54:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 759309: <4FGL_J1230.8+1223_daily_bin1453> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1453> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:40:39 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:41:08 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:08 2021
Terminated at Sun Sep  5 21:54:45 2021
Results reported at Sun Sep  5 21:54:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1453 187.712 12.3883 615945601 616204801 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 :                                   734.59 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            846 sec.

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

