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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1134
RA = 187.712, Dec = 12.3883
tmin = 533260801, tmax = 533520001
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='757724', job_status='RUN', time_executed='2021-09-05 21:38:03.811397', time_epoch_executed='1630903083.81' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1134'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757724

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757724/ft1_4FGL_J1230.8+1223_daily_bin1134.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757724/ft2_4FGL_J1230.8+1223_daily_bin1134.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757724/ft1_4FGL_J1230.8+1223_daily_bin1134.fits outfile=/scratch/kocevski/757724/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1134.fits ra=187.712 dec=12.3883 rad=12.0 tmin=533260801.0 tmax=533520001.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.65
user 4.20
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757724/ft1_filtered_4FGL_J1230.8+1223_daily_bin1134.fits evtable="EVENTS" scfile=/scratch/kocevski/757724/ft2_4FGL_J1230.8+1223_daily_bin1134.fits sctable="SC_DATA" expcube=/scratch/kocevski/757724/ltcube_533260801_533520001_4FGL_J1230.8+1223_daily_bin1134.fits outfile=/scratch/kocevski/757724/expmap_533260801_533520001_4FGL_J1230.8+1223_daily_bin1134.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/757724/ltcube_533260801_533520001_4FGL_J1230.8+1223_daily_bin1134.fits
.....................!
real 192.97
user 186.91
sys 5.51

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/757724/ft1_filtered_4FGL_J1230.8+1223_daily_bin1134.fits scfile=/scratch/kocevski/757724/ft2_4FGL_J1230.8+1223_daily_bin1134.fits outfile=/scratch/kocevski/757724/cmap_533260801_533520001_4FGL_J1230.8+1223_daily_bin1134.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=187.712 yref=12.3883 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757724/ft1_filtered_4FGL_J1230.8+1223_daily_bin1134.fits scfile=/scratch/kocevski/757724/ft2_4FGL_J1230.8+1223_daily_bin1134.fits outfile=/scratch/kocevski/757724/cmap_HighResolution_533260801_533520001_4FGL_J1230.8+1223_daily_bin1134.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=187.712 yref=12.3883 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12550E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .36371       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .88805       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4323       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.342       1.0000         .10000E-03   10000.    
    11 'norm      '    .10672E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .29171       1.0000         .10000E-03   10000.    
    14 'norm      '    38.790       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10585E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .57401       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.1823       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2203       1.0000         .10000E-03   10000.    
    19 'norm      '    1.5428       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10753E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.006       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.678       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.3086       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .88430       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2083       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=   6462.018     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3162 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3190        .19739E-07** at limit **
   2  Prefactor     .10003E-03    117.28       -.58198E-05** at limit **
   3  Prefactor     .10001E-03    105.73       -.33283E-04** at limit **
   4  Prefactor     .10000E-03    5.2428       -.56567E-07** at limit **
   5  Prefactor     .10000E-03    3.8729       -.48671E-08** at limit **
   6  Prefactor     .10000E-03    18.884       -.72639E-07** at limit **
   7  Prefactor     .10266E-03    34.008       -.76892E-05** at limit **
   8  Prefactor     .88780        1.2346        .23879E-07    .75482E-04
   9  Prefactor     3.4313        2.4799        .33639E-07    .90729E-04
  10  Prefactor     28.365        24.558       -.24440E-06   -.13368E-03
  11  norm          .10000E-03    3.0495        .10425E-05** at limit **
  12  Prefactor     .10000E-03    8.7065        .60544E-07** at limit **
  13  norm          .29167        .16413        .75064E-08    .32538E-03
  14  norm          38.826        34.484        .25723E-06   -.11202E-03
  15  Prefactor     .10000E-03    67.827        .19164E-06** at limit **
  16  norm          .57412        .50233       -.13163E-06   -.32396E-02
  17  Prefactor     6.1851        12.076       -.77674E-06   -.22486E-03
  18  Prefactor     5.1935        58.122       -.69987E-06   -.74393E-04
  19  norm          1.5429        1.2615       -.31779E-06    .27634E-03
  20  Prefactor     .10000E-03    11.914        .89717E-07** at limit **
  21  Prefactor     .10000E-03    57.695        .15278E-05** at limit **
  22  Prefactor     10.007        6.2292        .36748E-07   -.44879E-05
  23  Prefactor     12.670        12.437        .89568E-06    .49788E-03
  24  Prefactor     7.3046        13.224        .29921E-07    .44811E-04
  25  Normalizat    .88442        .19374       -.21846E-07   -.23896E-03
  26  Prefactor     1.2082        .16943       -.72568E-06   -.54487E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102665
  Prefactor  = 0.8878
  Prefactor  = 3.43128
  Prefactor  = 28.365
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.291674
  norm       = 38.8258
  Prefactor  = 0.0001
  norm       = 0.574121
  Prefactor  = 6.18511
  Prefactor  = 5.19351
  norm       = 1.54288
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.0072
  Prefactor  = 12.6702
  Prefactor  = 7.3046
  Normalizat = 0.88442
  Prefactor  = 1.20822
 **********
 **   18 **HESSE 
 **********

 FCN=   6462.018     FROM HESSE     STATUS=OK           468 CALLS     3630 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3244        .18106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10003E-03    118.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    102.33        .43502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.2484        .17975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0406        .30840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10266E-03    31.931        .12544       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .88780        1.2336        .51057E-04   -1.5520    
   9  Prefactor     3.4313        2.4792        .10285E-03   -1.5337    
  10  Prefactor     28.365        24.567        .75254E-04   -1.4642    
  11  norm          .10000E-03    3.1648        .27263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.7104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .29167        .16440        .23516E-04   -1.5600    
  14  norm          38.826        34.400        .32177E-03   -1.4461    
  15  Prefactor     .10000E-03    67.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .57412        .48224        .49464E-03   -1.5556    
  17  Prefactor     6.1851        11.854        .16146E-03   -1.5211    
  18  Prefactor     5.1935        55.946        .17593E-03   -1.5252    
  19  norm          1.5429        1.2600        .38890E-03   -1.5460    
  20  Prefactor     .10000E-03    11.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    57.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.007        6.2285        .12668E-03   -1.5075    
  23  Prefactor     12.670        12.524        .11250E-03   -1.4996    
  24  Prefactor     7.3046        13.173        .14836E-03   -1.5167    
  25  Normalizat    .88442        .22352        .28150E-03   -.97010    
  26  Prefactor     1.2082        .19866        .23008E-03   -.86079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64947e-09
Minuit parameter uncertainties:
  1  9.41616e-06
  2  0.00395451
  3  0.00154782
  4  2.10843e-06
  5  2.58278e-05
  6  7.12522e-06
  7  0.0184578
  8  1.23363
  9  2.47931
  10  24.5761
  11  3.03708e-05
  12  1.19709e-05
  13  0.164399
  14  34.4173
  15  5.74239e-05
  16  0.482247
  17  11.8585
  18  34.1319
  19  1.26004
  20  2.6649e-05
  21  0.000501314
  22  6.22886
  23  12.5265
  24  13.1779
  25  0.223753
  26  0.198788
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  6.185e+00  1.186e+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.208e+00  1.988e-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.844e-01  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/757724/likelihoodResults_533260801_533520001_4FGL_J1230.8+1223_daily_bin1134.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) = 6461.70197103
delta logL = 0.316232178119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6461.69863647
delta logL = 0.319566744188

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8248       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7398       1.0000          .0000       10.000    
     3 'Normalizat'    .86069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2173       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=   6461.699     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      284 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8237        9.5919        .16123E-03   -.27316E-03
   2  Index         2.7406        1.1892        .71130E-02   -.61498E-04
   3  Normalizat    .86053        .21298        .28518E-03   -.30899E-03
   4  Prefactor     1.2173        .19834        .22926E-03   -.49579E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.82367
  Index      = 2.74062
  Normalizat = 0.86053
  Prefactor  = 1.21726
 **********
 **   18 **HESSE 
 **********

 FCN=   6461.699     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8237        7.2110        .64492E-05   -1.5317    
   2  Index         2.7406        .89739        .28452E-03   -.46887    
   3  Normalizat    .86053        .21217        .11407E-04   -.97861    
   4  Prefactor     1.2173        .19762        .45851E-04   -.85802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08436e-10
Minuit parameter uncertainties:
  1  7.21267
  2  0.903556
  3  0.212371
  4  0.197743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757724': 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) = 6461.69863404
delta logL = 0.319569169745

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  3.824e+00  7.213e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.741e+00  9.036e-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:  1.217e+00  1.977e-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.605e-01  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 187.712 12.388
Photon Index (Free Index): 2.74 +/- 0.90
Photon Flux (Free Index): 4.16e-08 +/- 4.85e-08
Energy Flux (Free Index): 9.72e-06 +/- 1.08e-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/757724/cmap_HighResolution_533260801_533520001_4FGL_J1230.8+1223_daily_bin1134.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.46e-03', comment='SUCCESS', energy_flux2='9.72e-06', dlogl='3.20e-01', photon_flux2='4.16e-08', job_status='DONE', time_completed='2021-09-05 21:51:57.155571', photon_index_error2='0.90', photon_index2='2.74', ts='0.46', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='8.57e-08', energy_flux_error2='1.08e-05', EG='0.88', time_epoch_completed='1630903917.16', return_code='0', job_id='757724', GAL2='1.22', EG2='0.86', return_code2='0', photon_flux_error2='4.85e-08', ts2='1.11', photon_index='2.06' WHERE bin_id='1134' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:51:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 757724: <4FGL_J1230.8+1223_daily_bin1134> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1134> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 21:35:47 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:37: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:37:15 2021
Terminated at Sun Sep  5 21:51:58 2021
Results reported at Sun Sep  5 21:51:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1134 187.712 12.3883 533260801 533520001 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 :                                   761.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            971 sec.

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

