/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 123 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1039
RA = 187.712, Dec = 12.3883
tmin = 508636801, tmax = 508896001
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='757579', job_status='RUN', time_executed='2021-09-05 21:38:47.121746', time_epoch_executed='1630903127.12' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1039'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757579

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757579/ft1_4FGL_J1230.8+1223_daily_bin1039.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757579/ft2_4FGL_J1230.8+1223_daily_bin1039.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757579/ft1_4FGL_J1230.8+1223_daily_bin1039.fits outfile=/scratch/kocevski/757579/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1039.fits ra=187.712 dec=12.3883 rad=12.0 tmin=508636801.0 tmax=508896001.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.92
user 3.57
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757579/ft1_filtered_4FGL_J1230.8+1223_daily_bin1039.fits evtable="EVENTS" scfile=/scratch/kocevski/757579/ft2_4FGL_J1230.8+1223_daily_bin1039.fits sctable="SC_DATA" expcube=/scratch/kocevski/757579/ltcube_508636801_508896001_4FGL_J1230.8+1223_daily_bin1039.fits outfile=/scratch/kocevski/757579/expmap_508636801_508896001_4FGL_J1230.8+1223_daily_bin1039.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/757579/ltcube_508636801_508896001_4FGL_J1230.8+1223_daily_bin1039.fits
.....................!
real 192.59
user 186.76
sys 4.45

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/757579/ft1_filtered_4FGL_J1230.8+1223_daily_bin1039.fits scfile=/scratch/kocevski/757579/ft2_4FGL_J1230.8+1223_daily_bin1039.fits outfile=/scratch/kocevski/757579/cmap_508636801_508896001_4FGL_J1230.8+1223_daily_bin1039.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.16

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

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

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49572E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.071       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.511       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3264       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5465       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.9113       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .47932       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.0121       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.493       1.0000         .10000E-03   10000.    
    19 'norm      '    .70247       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.904       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .38863E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.5320       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.1541       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3388       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .69767       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=   6840.094     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3107 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10031E-03    17.910       -.26882E-05** at limit **
   2  Prefactor     17.200        109.10        .10648E-04    .14183E-05
   3  Prefactor     .10000E-03    5.4541       -.50909E-06** at limit **
   4  Prefactor     17.513        18.651        .15503E-06    .26321E-04
   5  Prefactor     .10000E-03    .98705        .29061E-07** at limit **
   6  Prefactor     .10000E-03    35.570       -.56924E-06** at limit **
   7  Prefactor     .10000E-03    51.527       -.50599E-06** at limit **
   8  Prefactor     4.3260        3.1290        .25170E-08    .12627E-03
   9  Prefactor     6.5473        3.7380        .23135E-07    .77132E-04
  10  Prefactor     .10000E-03    12.994        .77487E-07** at limit **
  11  norm          2.9117        3.0633       -.16530E-07   -.59251E-04
  12  Prefactor     .10000E-03    13.105        .79607E-07** at limit **
  13  norm          .47936        .28777        .23900E-07    .96647E-04
  14  norm          .10000E-03    21.119        .22760E-06** at limit **
  15  Prefactor     .10000E-03    38.921        .22568E-07** at limit **
  16  norm          3.0122        .67576       -.17445E-07   -.50446E-03
  17  Prefactor     .10000E-03    14.367        .33491E-06** at limit **
  18  Prefactor     37.498        27.535        .19098E-06   -.98150E-05
  19  norm          .70258        .92499        .45253E-06    .12693E-02
  20  Prefactor     35.899        49.761       -.28571E-06   -.20064E-04
  21  Prefactor     .10000E-03    14.494        .91345E-07** at limit **
  22  Prefactor     .10000E-03    6.4943        .13137E-06** at limit **
  23  Prefactor     8.5344        9.8648       -.35906E-07    .93752E-06
  24  Prefactor     1.1545        21.102        .43378E-05    .93868E-04
  25  Normalizat    1.3385        .19742       -.82990E-07   -.51636E-04
  26  Prefactor     .69784        .16462       -.18408E-05    .72536E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100309
  Prefactor  = 17.1995
  Prefactor  = 0.0001
  Prefactor  = 17.5129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.32602
  Prefactor  = 6.54733
  Prefactor  = 0.0001
  norm       = 2.91168
  Prefactor  = 0.0001
  norm       = 0.479365
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.01216
  Prefactor  = 0.0001
  Prefactor  = 37.4976
  norm       = 0.702576
  Prefactor  = 35.8991
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 8.53436
  Prefactor  = 1.15446
  Normalizat = 1.33852
  Prefactor  = 0.697845
 **********
 **   18 **HESSE 
 **********

 FCN=   6840.094     FROM HESSE     STATUS=OK           468 CALLS     3575 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10031E-03    80.145        .58195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.200        105.59        .96936E-04   -1.4878    
   3  Prefactor     .10000E-03    5.4903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.513        18.679        .95712E-04   -1.4871    
   5  Prefactor     .10000E-03    .98879        .80230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    35.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    51.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.3260        3.1178        .11467E-03   -1.5292    
   9  Prefactor     6.5473        3.7354        .11106E-03   -1.5196    
  10  Prefactor     .10000E-03    13.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9117        3.0531        .13647E-03   -1.5367    
  12  Prefactor     .10000E-03    13.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .47936        .28121        .32501E-04   -1.5570    
  14  norm          .10000E-03    21.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    38.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.0122        .67514        .29472E-04   -1.5361    
  17  Prefactor     .10000E-03    14.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     37.498        27.523        .65455E-04   -1.4482    
  19  norm          .70258        .84984        .92585E-03   -1.5540    
  20  Prefactor     35.899        49.666        .66882E-04   -1.4509    
  21  Prefactor     .10000E-03    14.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    53.846        .40602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.5344        9.8689        .68618E-03   -1.5124    
  24  Prefactor     1.1545        21.495        .21506E-02   -1.5493    
  25  Normalizat    1.3385        .23339        .25048E-03   -.82424    
  26  Prefactor     .69784        .19001        .28814E-03   -1.0361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1101e-09
Minuit parameter uncertainties:
  1  0.00996692
  2  85.4556
  3  1.49395e-06
  4  18.6854
  5  1.1412e-06
  6  9.22558e-06
  7  1.1811e-05
  8  3.11789
  9  3.73556
  10  8.77129e-06
  11  3.05329
  12  6.24333e-06
  13  0.281209
  14  1.51566e-05
  15  5.78382e-06
  16  0.675141
  17  2.96494e-05
  18  27.5325
  19  0.849851
  20  49.723
  21  6.27715e-06
  22  0.000807848
  23  9.87075
  24  9.9666
  25  0.233576
  26  0.190183
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  2.965e-05  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:  6.978e-01  1.902e-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.339e+00  2.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/757579/likelihoodResults_508636801_508896001_4FGL_J1230.8+1223_daily_bin1039.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) = 6840.09413179
delta logL = -0.000326582734488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6840.09380496
delta logL = 2.44346665568e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11320E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1238       1.0000          .0000       10.000    
     3 'Normalizat'    1.3386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69781       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=   6840.094     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      205 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    31.863        .90712E-01** at limit **
   2  Index         2.2116        6.2629        .25122       -.43548E-04
   3  Normalizat    1.3385        .11825E-01    .56645E-01    .26631E-04
   4  Prefactor     .69784        .10214E-01    .65126E-01    .28585E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100061
  Index      = 2.21158
  Normalizat = 1.33852
  Prefactor  = 0.697843
 **********
 **   18 **HESSE 
 **********

 FCN=   6840.094     FROM HESSE     STATUS=OK            29 CALLS      234 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    31.092        .36568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2116        6.0887        .10049E-01   -.59159    
   3  Normalizat    1.3385        .21683        .25049E-03   -.82424    
   4  Prefactor     .69784        .18706        .28814E-03   -1.0361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01325e-09
Minuit parameter uncertainties:
  1  0.00274682
  2  4.54922
  3  0.216975
  4  0.18723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757579': 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) = 6840.09380367
delta logL = 1.52939264808e-06

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.001e-04  2.747e-03  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.212e+00  4.549e+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:  6.978e-01  1.872e-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.339e+00  2.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.712 12.388

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/757579/cmap_HighResolution_508636801_508896001_4FGL_J1230.8+1223_daily_bin1039.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-03', job_status='DONE', photon_flux_upper_limit='6.97e-08', time_completed='2021-09-05 21:51:57.044909', job_id='757579', GAL2='0.70', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1630903917.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='1.53e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1039' 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 <lsf@bullet0230>
Subject: Job 757579: <4FGL_J1230.8+1223_daily_bin1039> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1039 187.712 12.3883 508636801 508896001 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 :                                   772.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            983 sec.

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

