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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1524
RA = 187.712, Dec = 12.3883
tmin = 634348801, tmax = 634608001
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='759506', job_status='RUN', time_executed='2021-09-05 21:42:51.928218', time_epoch_executed='1630903371.93' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/759506

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/759506/ft1_4FGL_J1230.8+1223_daily_bin1524.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/759506/ft2_4FGL_J1230.8+1223_daily_bin1524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/759506/ft1_4FGL_J1230.8+1223_daily_bin1524.fits outfile=/scratch/kocevski/759506/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1524.fits ra=187.712 dec=12.3883 rad=12.0 tmin=634348801.0 tmax=634608001.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.64
user 3.33
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/759506/ft2_4FGL_J1230.8+1223_daily_bin1524.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/759506/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1524.fits evtable="EVENTS" outfile="/scratch/kocevski/759506/ft1_filtered_4FGL_J1230.8+1223_daily_bin1524.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/759506/ft1_filtered_4FGL_J1230.8+1223_daily_bin1524.fits" evtable="EVENTS" scfile=/scratch/kocevski/759506/ft2_4FGL_J1230.8+1223_daily_bin1524.fits sctable="SC_DATA" outfile=/scratch/kocevski/759506/ltcube_634348801_634608001_4FGL_J1230.8+1223_daily_bin1524.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/759506/ft2_4FGL_J1230.8+1223_daily_bin1524.fits
.....................!
real 14.33
user 13.97
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/759506/ft1_filtered_4FGL_J1230.8+1223_daily_bin1524.fits evtable="EVENTS" scfile=/scratch/kocevski/759506/ft2_4FGL_J1230.8+1223_daily_bin1524.fits sctable="SC_DATA" expcube=/scratch/kocevski/759506/ltcube_634348801_634608001_4FGL_J1230.8+1223_daily_bin1524.fits outfile=/scratch/kocevski/759506/expmap_634348801_634608001_4FGL_J1230.8+1223_daily_bin1524.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/759506/ltcube_634348801_634608001_4FGL_J1230.8+1223_daily_bin1524.fits
.....................!
real 164.69
user 160.18
sys 4.13

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/759506/ft1_filtered_4FGL_J1230.8+1223_daily_bin1524.fits scfile=/scratch/kocevski/759506/ft2_4FGL_J1230.8+1223_daily_bin1524.fits outfile=/scratch/kocevski/759506/cmap_634348801_634608001_4FGL_J1230.8+1223_daily_bin1524.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.51
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/759506/ft1_filtered_4FGL_J1230.8+1223_daily_bin1524.fits scfile=/scratch/kocevski/759506/ft2_4FGL_J1230.8+1223_daily_bin1524.fits outfile=/scratch/kocevski/759506/cmap_HighResolution_634348801_634608001_4FGL_J1230.8+1223_daily_bin1524.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.50
user 0.35
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9927       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.606       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .43704E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .76041       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27560E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .15835E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .78096E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    24.279       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10602E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2193       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.535       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.169       1.0000         .10000E-03   10000.    
    19 'norm      '    8.6675       1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.010       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3993       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.566       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2708       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83728       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=   3339.018     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3123 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.376        .71235E-06** at limit **
   2  Prefactor     .10000E-03    70.032        .77777E-07** at limit **
   3  Prefactor     .10000E-03    12.833       -.23489E-06** at limit **
   4  Prefactor     5.0081        75.571        .29502E-05    .61104E-05
   5  Prefactor     10.604        7.5965       -.41683E-06   -.71808E-04
   6  Prefactor     .10000E-03    156.43       -.40045E-05** at limit **
   7  Prefactor     .10000E-03    17.543       -.37627E-06** at limit **
   8  Prefactor     .10000E-03    27.463        .15944E-04** at limit **
   9  Prefactor     .75169        6.3606        .20187E-05    .19514E-03
  10  Prefactor     .10000E-03    173.49        .26935E-06** at limit **
  11  norm          .10000E-03    5.3372       -.30709E-05** at limit **
  12  Prefactor     .10000E-03    30.743       -.70850E-06** at limit **
  13  norm          .78002E-01    .29510        .11688E-06    .74706E-03
  14  norm          24.349        50.677        .40852E-05   -.11375E-04
  15  Prefactor     .10000E-03    115.65        .30565E-05** at limit **
  16  norm          2.2179        .97557        .12894E-08    .16202E-02
  17  Prefactor     10.538        13.556       -.17060E-06   -.16132E-04
  18  Prefactor     10.181        47.607        .11486E-05   -.15431E-04
  19  norm          8.6671        3.1542       -.57020E-08    .24957E-03
  20  Prefactor     33.026        63.374        .10685E-05   -.22317E-04
  21  Prefactor     .10000E-03    17.330       -.25397E-06** at limit **
  22  Prefactor     3.3996        10.940       -.21788E-05    .19354E-03
  23  Prefactor     .10000E-03    4.4786        .11593E-06** at limit **
  24  Prefactor     16.566        13.455        .75113E-07   -.17374E-04
  25  Normalizat    1.2708        .28582       -.89893E-06   -.92253E-04
  26  Prefactor     .83721        .22540       -.33969E-06   -.51956E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.00809
  Prefactor  = 10.6038
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.751694
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0780019
  norm       = 24.3489
  Prefactor  = 0.000100004
  norm       = 2.21787
  Prefactor  = 10.5379
  Prefactor  = 10.1814
  norm       = 8.66708
  Prefactor  = 33.0255
  Prefactor  = 0.0001
  Prefactor  = 3.39965
  Prefactor  = 0.0001
  Prefactor  = 16.5657
  Normalizat = 1.27075
  Prefactor  = 0.837207
 **********
 **   18 **HESSE 
 **********

 FCN=   3339.018     FROM HESSE     STATUS=OK           460 CALLS     3583 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    70.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.0081        77.224        .17998E-03   -1.5260    
   5  Prefactor     10.604        7.5625        .12303E-03   -1.5057    
   6  Prefactor     .10000E-03    156.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.728        .18669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .75169        9.3676        .24264E-02   -1.5535    
  10  Prefactor     .10000E-03    180.01        .42850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.6162        .26362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .78002E-01    .29955        .56425E-03   -1.5652    
  14  norm          24.349        50.972        .81295E-04   -1.4721    
  15  Prefactor     .10000E-03    115.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2179        .97500        .34754E-04   -1.5410    
  17  Prefactor     10.538        13.499        .12344E-03   -1.5059    
  18  Prefactor     10.181        47.353        .12565E-03   -1.5070    
  19  norm          8.6671        3.1540        .58000E-04   -1.5119    
  20  Prefactor     33.026        63.339        .69744E-04   -1.4558    
  21  Prefactor     .10000E-03    17.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.3996        11.048        .10972E-02   -1.5339    
  23  Prefactor     .10000E-03    4.4850        .11943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.566        13.480        .98404E-04   -1.4894    
  25  Normalizat    1.2708        .33214        .25675E-03   -.84444    
  26  Prefactor     .83721        .26142        .26950E-03   -.98371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6782e-09
Minuit parameter uncertainties:
  1  3.41486e-05
  2  1.18017e-05
  3  4.38673e-05
  4  39.3919
  5  7.56314
  6  0.00111094
  7  7.40776e-05
  8  0.000559843
  9  5.30788
  10  0.000275112
  11  0.000270321
  12  0.000230829
  13  0.299554
  14  51.0635
  15  0.00130828
  16  0.975006
  17  13.5033
  18  43.9715
  19  3.15404
  20  63.4681
  21  7.09385e-05
  22  11.0544
  23  1.09551e-05
  24  13.4822
  25  0.332702
  26  0.261808
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  8.372e-01  2.618e-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.271e+00  3.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.52
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 2.87e-08 +/- 3.68e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 2.22e-05

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

Saving results to:
/scratch/kocevski/759506/likelihoodResults_634348801_634608001_4FGL_J1230.8+1223_daily_bin1524.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) = 3338.87925115
delta logL = 0.138807466019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3338.87587285
delta logL = 0.14218576452

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.007       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6671       1.0000          .0000       10.000    
     3 'Normalizat'    1.2824       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82982       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=   3338.876     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      254 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.007        821.00        .26755E-02   -.11298E-03
   2  Index         1.6670        5.7469        .22609        .39570E-05
   3  Normalizat    1.2826        .21721        .57828E-01    .36952E-05
   4  Prefactor     .82972        .14000        .44104E-01    .85240E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0074
  Index      = 1.66701
  Normalizat = 1.28259
  Prefactor  = 0.829715
 **********
 **   18 **HESSE 
 **********

 FCN=   3338.876     FROM HESSE     STATUS=OK            31 CALLS      285 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.007        15.807        .10702E-03   -1.4959    
   2  Index         1.6670        .66639        .81910E-02   -.72964    
   3  Normalizat    1.2826        .29172        .25573E-03   -.84087    
   4  Prefactor     .82972        .25570        .27051E-03   -.98642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44948e-11
Minuit parameter uncertainties:
  1  15.8118
  2  0.669997
  3  0.292092
  4  0.256065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/759506': 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) = 3338.87587259
delta logL = 0.14218602247

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  8.297e-01  2.561e-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.283e+00  2.921e-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): 1.67 +/- 0.67
Photon Flux (Free Index): 2.05e-08 +/- 2.73e-08
Energy Flux (Free Index): 3.72e-05 +/- 6.79e-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/759506/cmap_HighResolution_634348801_634608001_4FGL_J1230.8+1223_daily_bin1524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.32e-03', comment='SUCCESS', photon_flux='2.87e-08', energy_flux2='3.72e-05', photon_flux_error='3.68e-08', dlogl='1.42e-01', energy_flux='1.73e-05', photon_flux2='2.05e-08', job_status='DONE', time_completed='2021-09-05 21:52:38.707957', photon_index_error2='0.67', photon_index2='1.67', ts='1.52', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='6.79e-05', EG='1.27', time_epoch_completed='1630903958.71', return_code='0', job_id='759506', GAL2='0.83', EG2='1.28', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='2.73e-08', ts2='1.80', photon_index='2.06' WHERE bin_id='1524' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:52:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 759506: <4FGL_J1230.8+1223_daily_bin1524> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1524> 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) <bullet0175>, 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:52:39 2021
Results reported at Sun Sep  5 21:52:39 2021

Your job looked like:

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

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

