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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1018
RA = 187.712, Dec = 12.3883
tmin = 503193601, tmax = 503452801
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='757548', job_status='RUN', time_executed='2021-09-05 21:38:38.840202', time_epoch_executed='1630903118.84' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1018'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757548

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757548/ft1_4FGL_J1230.8+1223_daily_bin1018.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757548/ft2_4FGL_J1230.8+1223_daily_bin1018.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757548/ft1_4FGL_J1230.8+1223_daily_bin1018.fits outfile=/scratch/kocevski/757548/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1018.fits ra=187.712 dec=12.3883 rad=12.0 tmin=503193601.0 tmax=503452801.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.16
user 4.87
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757548/ft1_filtered_4FGL_J1230.8+1223_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/757548/ft2_4FGL_J1230.8+1223_daily_bin1018.fits sctable="SC_DATA" expcube=/scratch/kocevski/757548/ltcube_503193601_503452801_4FGL_J1230.8+1223_daily_bin1018.fits outfile=/scratch/kocevski/757548/expmap_503193601_503452801_4FGL_J1230.8+1223_daily_bin1018.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/757548/ltcube_503193601_503452801_4FGL_J1230.8+1223_daily_bin1018.fits
.....................!
real 193.42
user 187.74
sys 4.58

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/757548/ft1_filtered_4FGL_J1230.8+1223_daily_bin1018.fits scfile=/scratch/kocevski/757548/ft2_4FGL_J1230.8+1223_daily_bin1018.fits outfile=/scratch/kocevski/757548/cmap_503193601_503452801_4FGL_J1230.8+1223_daily_bin1018.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757548/ft1_filtered_4FGL_J1230.8+1223_daily_bin1018.fits scfile=/scratch/kocevski/757548/ft2_4FGL_J1230.8+1223_daily_bin1018.fits outfile=/scratch/kocevski/757548/cmap_HighResolution_503193601_503452801_4FGL_J1230.8+1223_daily_bin1018.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.55
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    55.950       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3811       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    65.426       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7328       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .19278       1.0000         .10000E-03   10000.    
    14 'norm      '    13.333       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.9470       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3605       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.0292       1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.818       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.7217       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.702       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99605       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95786       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=   5850.904     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     3053 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5026        .20226E-06** at limit **
   2  Prefactor     55.590        117.98       -.28256E-05   -.25391E-04
   3  Prefactor     .10000E-03    5.2079       -.22982E-05** at limit **
   4  Prefactor     .10000E-03    5.9584       -.11425E-06** at limit **
   5  Prefactor     4.3817        4.4397        .28620E-07    .20234E-04
   6  Prefactor     .10000E-03    33.454       -.43281E-06** at limit **
   7  Prefactor     65.453        46.753       -.43254E-06   -.14027E-04
   8  Prefactor     6.7338        3.4616       -.17382E-06   -.20096E-03
   9  Prefactor     .10000E-03    2.1924        .52008E-06** at limit **
  10  Prefactor     .10000E-03    12.910       -.33558E-08** at limit **
  11  norm          .10000E-03    1.4372        .14078E-06** at limit **
  12  Prefactor     .10000E-03    13.890        .10625E-06** at limit **
  13  norm          .19274        .19280        .93422E-07    .13201E-02
  14  norm          13.332        22.161        .19641E-06   -.61486E-05
  15  Prefactor     .10000E-03    50.993        .11199E-06** at limit **
  16  norm          3.9472        .81507       -.43043E-07   -.34431E-03
  17  Prefactor     4.3597        8.9634        .34180E-06    .13450E-04
  18  Prefactor     .10000E-03    10.820        .33647E-06** at limit **
  19  norm          2.0291        1.4435        .55289E-07   -.12222E-04
  20  Prefactor     33.811        55.369        .26020E-07   -.54993E-05
  21  Prefactor     .10000E-03    43.698        .10535E-05** at limit **
  22  Prefactor     5.7219        5.7638       -.85473E-07   -.17952E-04
  23  Prefactor     .10000E-03    3.8470        .32261E-06** at limit **
  24  Prefactor     10.700        12.504       -.14092E-06   -.10908E-04
  25  Normalizat    .99578        .23648        .50984E-05   -.12333E-03
  26  Prefactor     .95814        .20516       -.47023E-05    .30052E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 55.5901
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.38172
  Prefactor  = 0.0001
  Prefactor  = 65.4528
  Prefactor  = 6.73381
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.192742
  norm       = 13.3323
  Prefactor  = 0.0001
  norm       = 3.94717
  Prefactor  = 4.35965
  Prefactor  = 0.0001
  norm       = 2.02913
  Prefactor  = 33.8112
  Prefactor  = 0.0001
  Prefactor  = 5.72191
  Prefactor  = 0.0001
  Prefactor  = 10.7
  Normalizat = 0.995775
  Prefactor  = 0.958138
 **********
 **   18 **HESSE 
 **********

 FCN=   5850.904     FROM HESSE     STATUS=OK           456 CALLS     3509 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     55.590        118.42        .26814E-03   -1.4215    
   3  Prefactor     .10000E-03    5.4534        .17398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.9683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3817        4.4306        .15109E-03   -1.5289    
   6  Prefactor     .10000E-03    33.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     65.453        46.741        .49616E-04   -1.4088    
   8  Prefactor     6.7338        3.4560        .94275E-04   -1.5189    
   9  Prefactor     .10000E-03    2.2566        .22121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.4619        .89418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .19274        .18480        .32377E-03   -1.5620    
  14  norm          13.332        22.146        .10970E-03   -1.4978    
  15  Prefactor     .10000E-03    50.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.9472        .81528        .29722E-04   -1.5311    
  17  Prefactor     4.3597        8.9504        .19289E-03   -1.5290    
  18  Prefactor     .10000E-03    10.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0291        1.4355        .74144E-04   -1.5423    
  20  Prefactor     33.811        55.341        .68908E-04   -1.4544    
  21  Prefactor     .10000E-03    43.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.7219        5.7650        .16792E-03   -1.5230    
  23  Prefactor     .10000E-03    3.8544        .14656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.700        12.506        .12247E-03   -1.5054    
  25  Normalizat    .99578        .24247        .27258E-03   -.93172    
  26  Prefactor     .95814        .21107        .24939E-03   -.94138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92894e-10
Minuit parameter uncertainties:
  1  7.86046e-06
  2  118.93
  3  9.44412e-05
  4  7.178e-06
  5  4.4309
  6  5.54192e-05
  7  46.7672
  8  3.45607
  9  1.35301e-05
  10  3.09095e-06
  11  2.45042e-06
  12  5.54922e-06
  13  0.184803
  14  22.1598
  15  1.52773e-05
  16  0.815283
  17  8.95318
  18  1.4522e-05
  19  1.43548
  20  55.4247
  21  0.000140427
  22  5.7656
  23  9.06492e-06
  24  12.509
  25  0.242742
  26  0.211246
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  4.360e+00  8.953e+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:  9.581e-01  2.112e-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:  9.958e-01  2.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/757548/likelihoodResults_503193601_503452801_4FGL_J1230.8+1223_daily_bin1018.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) = 5850.86770448
delta logL = 0.036239249187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5850.86498202
delta logL = 0.0389617097126

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7631       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3241       1.0000          .0000       10.000    
     3 'Normalizat'    .99161       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95908       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=   5850.865     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7583        214.44        .52030E-02    .24883E-03
   2  Index         2.3240        3.3978        .24207        .51329E-04
   3  Normalizat    .99173        .47008E-01    .46062E-01   -.71293E-04
   4  Prefactor     .95901        .40255E-01    .45754E-01   -.67950E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.75827
  Index      = 2.32395
  Normalizat = 0.991729
  Prefactor  = 0.959005
 **********
 **   18 **HESSE 
 **********

 FCN=   5850.865     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7583        8.5124        .20812E-03   -1.5320    
   2  Index         2.3240        1.0005        .83284E-02   -.56476    
   3  Normalizat    .99173        .23209        .27307E-03   -.93308    
   4  Prefactor     .95901        .20965        .24928E-03   -.94109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7804e-11
Minuit parameter uncertainties:
  1  8.51512
  2  1.01007
  3  0.232328
  4  0.209827
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757548': 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) = 5850.86498158
delta logL = 0.0389621529812

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  3.758e+00  8.515e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.324e+00  1.010e+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:  9.590e-01  2.098e-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:  9.917e-01  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
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/757548/cmap_HighResolution_503193601_503452801_4FGL_J1230.8+1223_daily_bin1018.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='8.23e-08', time_completed='2021-09-05 21:50:36.526942', job_id='757548', GAL2='0.96', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1630903836.53', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='3.90e-02', ts2='0.40', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1018' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:50:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 757548: <4FGL_J1230.8+1223_daily_bin1018> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1018> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 21:35:34 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:36:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 21:36:22 2021
Terminated at Sun Sep  5 21:50:37 2021
Results reported at Sun Sep  5 21:50:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1018 187.712 12.3883 503193601 503452801 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 :                                   699.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            903 sec.

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

