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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1602
RA = 187.712, Dec = 12.3883
tmin = 654566401, tmax = 654825601
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='856365', job_status='RUN', time_executed='2021-10-02 00:04:27.001890', time_epoch_executed='1633158267.0' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856365

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856365/ft1_4FGL_J1230.8+1223_daily_bin1602.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856365/ft2_4FGL_J1230.8+1223_daily_bin1602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856365/ft1_4FGL_J1230.8+1223_daily_bin1602.fits outfile=/scratch/kocevski/856365/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1602.fits ra=187.712 dec=12.3883 rad=12.0 tmin=654566401.0 tmax=654825601.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 5.14
user 4.79
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856365/ft1_filtered_4FGL_J1230.8+1223_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/856365/ft2_4FGL_J1230.8+1223_daily_bin1602.fits sctable="SC_DATA" expcube=/scratch/kocevski/856365/ltcube_654566401_654825601_4FGL_J1230.8+1223_daily_bin1602.fits outfile=/scratch/kocevski/856365/expmap_654566401_654825601_4FGL_J1230.8+1223_daily_bin1602.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/856365/ltcube_654566401_654825601_4FGL_J1230.8+1223_daily_bin1602.fits
.....................!
real 194.57
user 189.47
sys 4.09

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/856365/ft1_filtered_4FGL_J1230.8+1223_daily_bin1602.fits scfile=/scratch/kocevski/856365/ft2_4FGL_J1230.8+1223_daily_bin1602.fits outfile=/scratch/kocevski/856365/cmap_654566401_654825601_4FGL_J1230.8+1223_daily_bin1602.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.59
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/856365/ft1_filtered_4FGL_J1230.8+1223_daily_bin1602.fits scfile=/scratch/kocevski/856365/ft2_4FGL_J1230.8+1223_daily_bin1602.fits outfile=/scratch/kocevski/856365/cmap_HighResolution_654566401_654825601_4FGL_J1230.8+1223_daily_bin1602.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.581       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10580E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10697E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8985       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10639E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.516       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .92606       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10820E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .71478E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .59025       1.0000         .10000E-03   10000.    
    14 'norm      '    24.401       1.0000         .10000E-03   10000.    
    15 'Prefactor '    88.433       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6565       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.967       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5700       1.0000         .10000E-03   10000.    
    19 'norm      '    2.0813       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.089       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.2598       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1299       1.0000         .10000E-03   10000.    
    24 'Prefactor '    35.561       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0592       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1230       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=   5830.536     FROM MIGRAD    STATUS=CONVERGED   1090 CALLS     4028 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.578        16.573        .11772E-03   -.20474E-04
   2  Prefactor     .10000E-03    79.456        .18142E-02** at limit **
   3  Prefactor     .10000E-03    14.619        .18142E-02** at limit **
   4  Prefactor     .10000E-03    37.442        .18142E-02** at limit **
   5  Prefactor     7.8975        6.1313        .14267E-03   -.20001E-03
   6  Prefactor     .10000E-03    41.431        .18142E-02** at limit **
   7  Prefactor     35.532        43.891        .67246E-04   -.80338E-04
   8  Prefactor     .93071        3.8613        .26275E-03    .73529E-03
   9  Prefactor     .10000E-03    10.858        .20486E-02** at limit **
  10  Prefactor     .10000E-03    11.955        .18142E-02** at limit **
  11  norm          .10000E-03    1.0584        .76578E-03** at limit **
  12  Prefactor     .10001E-03    36.144        .12719    ** at limit **
  13  norm          .59030        .31910        .30179E-04    .12130E-03
  14  norm          24.419        37.590        .81091E-04   -.82379E-04
  15  Prefactor     88.410        113.88        .21363E-03    .13677E-04
  16  norm          1.6564        .72015        .39669E-04    .32184E-03
  17  Prefactor     11.969        16.406        .11580E-03    .44669E-04
  18  Prefactor     4.5729        42.109        .18830E-03    .28799E-04
  19  norm          2.0814        1.8415        .91240E-04    .10030E-03
  20  Prefactor     19.095        68.574        .91670E-04   -.14882E-05
  21  Prefactor     7.2960        220.61        .14887E-03    .53687E-04
  22  Prefactor     .10000E-03    4.4122        .15600E-02** at limit **
  23  Prefactor     1.1233        65.285        .43967E-03    .70280E-04
  24  Prefactor     35.560        21.521        .67203E-04    .26722E-03
  25  Normalizat    1.0592        .26509        .29583E-03    .95843E-04
  26  Prefactor     1.1229        .22148        .25413E-03    .20987E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.89748
  Prefactor  = 0.000100001
  Prefactor  = 35.5316
  Prefactor  = 0.930709
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.590297
  norm       = 24.4194
  Prefactor  = 88.4098
  norm       = 1.65639
  Prefactor  = 11.969
  Prefactor  = 4.5729
  norm       = 2.08144
  Prefactor  = 19.095
  Prefactor  = 7.296
  Prefactor  = 0.0001
  Prefactor  = 1.12331
  Prefactor  = 35.56
  Normalizat = 1.05918
  Prefactor  = 1.12288
 **********
 **   18 **HESSE 
 **********

 FCN=   5830.536     FROM HESSE     STATUS=OK           440 CALLS     4468 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.578        16.574        .47087E-05   -1.5027    
   2  Prefactor     .10000E-03    79.458        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.627        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    37.473        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.8975        6.1283        .57069E-05   -1.5146    
   6  Prefactor     .10000E-03    41.432        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     35.532        43.891        .13449E-04   -1.4515    
   8  Prefactor     .93071        3.8465        .10510E-04   -1.5515    
   9  Prefactor     .10000E-03    10.913        .40973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.955        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.0585        .15316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    35.109        .12986       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .59030        .31909        .12072E-05   -1.5554    
  14  norm          24.419        37.591        .16218E-04   -1.4719    
  15  Prefactor     88.410        113.88        .85451E-05   -1.3825    
  16  norm          1.6564        .72016        .15867E-05   -1.5451    
  17  Prefactor     11.969        16.402        .46321E-05   -1.5016    
  18  Prefactor     4.5729        42.096        .75320E-05   -1.5280    
  19  norm          2.0814        1.8414        .36496E-05   -1.5419    
  20  Prefactor     19.095        68.619        .36668E-05   -1.4834    
  21  Prefactor     7.2960        219.06        .59546E-05   -1.5168    
  22  Prefactor     .10000E-03    4.4133        .31200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1233        64.529        .17587E-04   -1.5496    
  24  Prefactor     35.560        21.506        .13441E-04   -1.4515    
  25  Normalizat    1.0592        .26527        .11833E-04   -.91074    
  26  Prefactor     1.1229        .22167        .50827E-04   -.88739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39015e-09
Minuit parameter uncertainties:
  1  16.5802
  2  2.43071e-05
  3  2.52587e-05
  4  0.000340371
  5  6.12883
  6  0.000452095
  7  43.9305
  8  3.78438
  9  0.000152914
  10  2.95078e-06
  11  6.73165e-07
  12  0.000878544
  13  0.319093
  14  37.6276
  15  114.162
  16  0.720163
  17  16.4078
  18  27.7744
  19  1.84145
  20  68.9044
  21  80.2802
  22  1.67929e-06
  23  17.0463
  24  21.5112
  25  0.265607
  26  0.221852
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.197e+01  1.641e+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:  1.123e+00  2.219e-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.059e+00  2.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/856365/likelihoodResults_654566401_654825601_4FGL_J1230.8+1223_daily_bin1602.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) = 5830.51701666
delta logL = 0.0187663577572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5830.49601041
delta logL = 0.0397726165029

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7051       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4515       1.0000          .0000       10.000    
     3 'Normalizat'    1.0420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1337       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=   5830.496     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      280 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7002        84.975        .14446E-03    .13433E-03
   2  Index         2.4522        3.4597        .82455E-02    .58621E-04
   3  Normalizat    1.0420        .30372        .29800E-03    .15142E-03
   4  Prefactor     1.1337        .25913        .25309E-03   -.25003E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.70025
  Index      = 2.45219
  Normalizat = 1.04201
  Prefactor  = 1.13371
 **********
 **   18 **HESSE 
 **********

 FCN=   5830.496     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7002        19.963        .57786E-05   -1.5153    
   2  Index         2.4522        1.5297        .32982E-03   -.53468    
   3  Normalizat    1.0420        .25682        .11920E-04   -.91636    
   4  Prefactor     1.1337        .22407        .50618E-04   -.88396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28571e-10
Minuit parameter uncertainties:
  1  19.9806
  2  1.56387
  3  0.257129
  4  0.224261
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856365': 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) = 5830.49601022
delta logL = 0.0397727991422

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  7.700e+00  1.998e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.452e+00  1.564e+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.134e+00  2.243e-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.042e+00  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.84
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/856365/cmap_HighResolution_654566401_654825601_4FGL_J1230.8+1223_daily_bin1602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.19e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-10-02 00:17:30.274155', job_id='856365', GAL2='1.13', fit_tolerance='1e-08', EG2='1.04', EG='1.06', time_epoch_completed='1633159050.27', return_code2='0', ts='0.84', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.98e-02', ts2='0.92', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1602' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct  2 00:17:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 856365: <4FGL_J1230.8+1223_daily_bin1602> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1602> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Oct  2 00:02:36 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct  2 00:02:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct  2 00:02:38 2021
Terminated at Sat Oct  2 00:17:31 2021
Results reported at Sat Oct  2 00:17:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1602 187.712 12.3883 654566401 654825601 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 :                                   778.15 sec.
    Max Memory :                                 1204 MB
    Average Memory :                             307.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            895 sec.

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

