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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1374
RA = 187.712, Dec = 12.3883
tmin = 595468801, tmax = 595728001
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='759149', job_status='RUN', time_executed='2021-09-05 21:40:47.461811', time_epoch_executed='1630903247.46' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1374'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/759149

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/759149/ft1_4FGL_J1230.8+1223_daily_bin1374.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/759149/ft2_4FGL_J1230.8+1223_daily_bin1374.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/759149/ft1_4FGL_J1230.8+1223_daily_bin1374.fits outfile=/scratch/kocevski/759149/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1374.fits ra=187.712 dec=12.3883 rad=12.0 tmin=595468801.0 tmax=595728001.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 2.85
user 2.58
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/759149/ft1_filtered_4FGL_J1230.8+1223_daily_bin1374.fits" evtable="EVENTS" scfile=/scratch/kocevski/759149/ft2_4FGL_J1230.8+1223_daily_bin1374.fits sctable="SC_DATA" outfile=/scratch/kocevski/759149/ltcube_595468801_595728001_4FGL_J1230.8+1223_daily_bin1374.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/759149/ft2_4FGL_J1230.8+1223_daily_bin1374.fits
.....................!
real 17.39
user 16.85
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/759149/ft1_filtered_4FGL_J1230.8+1223_daily_bin1374.fits evtable="EVENTS" scfile=/scratch/kocevski/759149/ft2_4FGL_J1230.8+1223_daily_bin1374.fits sctable="SC_DATA" expcube=/scratch/kocevski/759149/ltcube_595468801_595728001_4FGL_J1230.8+1223_daily_bin1374.fits outfile=/scratch/kocevski/759149/expmap_595468801_595728001_4FGL_J1230.8+1223_daily_bin1374.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/759149/ltcube_595468801_595728001_4FGL_J1230.8+1223_daily_bin1374.fits
.....................!
real 194.61
user 186.53
sys 6.28

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/759149/ft1_filtered_4FGL_J1230.8+1223_daily_bin1374.fits scfile=/scratch/kocevski/759149/ft2_4FGL_J1230.8+1223_daily_bin1374.fits outfile=/scratch/kocevski/759149/cmap_595468801_595728001_4FGL_J1230.8+1223_daily_bin1374.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/759149/ft1_filtered_4FGL_J1230.8+1223_daily_bin1374.fits scfile=/scratch/kocevski/759149/ft2_4FGL_J1230.8+1223_daily_bin1374.fits outfile=/scratch/kocevski/759149/cmap_HighResolution_595468801_595728001_4FGL_J1230.8+1223_daily_bin1374.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.662       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14664E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1617       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4219       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9606       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5003       1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.311       1.0000         .10000E-03   10000.    
    13 'norm      '    .14629       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.280       1.0000         .10000E-03   10000.    
    16 'norm      '    .25888       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.544       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.492       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10491E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    38.786       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2995       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .75409       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=   7677.482     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3179 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.665        11.903        .24076E-07   -.10972E-04
   2  Prefactor     .10004E-03    683.35       -.16561E-04** at limit **
   3  Prefactor     .10000E-03    3.2683        .25003E-07** at limit **
   4  Prefactor     .10000E-03    3.4387        .16226E-07** at limit **
   5  Prefactor     .10000E-03    1.3413       -.13273E-07** at limit **
   6  Prefactor     .10000E-03    15.882        .44696E-06** at limit **
   7  Prefactor     .10000E-03    5.9630        .33107E-07** at limit **
   8  Prefactor     1.1618        2.4977        .50047E-06   -.34040E-03
   9  Prefactor     7.4233        3.3707       -.75311E-07   -.15848E-03
  10  Prefactor     8.9403        26.448        .37895E-06    .26100E-04
  11  norm          1.5041        3.5958        .32838E-05   -.39463E-03
  12  Prefactor     32.313        38.293        .40109E-06    .10156E-04
  13  norm          .14639        .20105        .75191E-07   -.65043E-03
  14  norm          .10000E-03    11.480       -.23547E-06** at limit **
  15  Prefactor     28.221        142.23       -.78310E-05    .45162E-05
  16  norm          .25878        .40822       -.78228E-06   -.27115E-02
  17  Prefactor     18.545        11.422        .14393E-06    .22740E-04
  18  Prefactor     11.497        25.499       -.68097E-06    .28849E-06
  19  norm          .10000E-03    .47132       -.63536E-07** at limit **
  20  Prefactor     .10000E-03    38.089       -.15437E-06** at limit **
  21  Prefactor     .10000E-03    19.606       -.20293E-06** at limit **
  22  Prefactor     .10002E-03    4.2863        .62965E-06** at limit **
  23  Prefactor     38.790        15.127        .62248E-08    .83422E-04
  24  Prefactor     .10000E-03    15.956       -.68827E-06** at limit **
  25  Normalizat    1.2993        .17901       -.32976E-06    .50827E-04
  26  Prefactor     .75412        .14762       -.61087E-06    .13058E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.6646
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.16183
  Prefactor  = 7.42332
  Prefactor  = 8.94033
  norm       = 1.50406
  Prefactor  = 32.3128
  norm       = 0.146386
  norm       = 0.0001
  Prefactor  = 28.2208
  norm       = 0.258776
  Prefactor  = 18.5445
  Prefactor  = 11.4967
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 38.7903
  Prefactor  = 0.0001
  Normalizat = 1.29928
  Prefactor  = 0.754123
 **********
 **   18 **HESSE 
 **********

 FCN=   7677.482     FROM HESSE     STATUS=OK           466 CALLS     3645 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.665        11.903        .90326E-04   -1.4821    
   2  Prefactor     .10004E-03    700.90        .36385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2943        .15468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4439        .15868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.3581        .98993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1618        2.4096        .17554E-03   -1.5492    
   9  Prefactor     7.4233        3.3062        .94733E-04   -1.5163    
  10  Prefactor     8.9403        26.529        .13390E-03   -1.5110    
  11  norm          1.5041        3.6665        .21348E-03   -1.5463    
  12  Prefactor     32.313        38.234        .70492E-04   -1.4570    
  13  norm          .14639        .18877        .42269E-03   -1.5631    
  14  norm          .10000E-03    11.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.221        141.59        .75336E-04   -1.4645    
  16  norm          .25878        .40240        .67226E-03   -1.5606    
  17  Prefactor     18.545        11.395        .93009E-04   -1.4846    
  18  Prefactor     11.497        25.474        .11818E-03   -1.5030    
  19  norm          .10000E-03    .68871        .11578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    38.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    22.668        .34794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     38.790        15.144        .64358E-04   -1.4462    
  24  Prefactor     .10000E-03    16.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2993        .21094        .24169E-03   -.83588    
  26  Prefactor     .75412        .17464        .27335E-03   -1.0144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51539e-09
Minuit parameter uncertainties:
  1  11.9049
  2  0.0100325
  3  5.78236e-07
  4  3.19608e-07
  5  6.31357e-07
  6  7.53083e-06
  7  9.64446e-06
  8  2.40982
  9  3.30626
  10  26.5635
  11  3.66701
  12  38.2631
  13  0.188772
  14  1.17956e-06
  15  126.904
  16  0.402407
  17  11.3962
  18  25.4982
  19  1.67091e-05
  20  6.64468e-05
  21  2.29504e-05
  22  0.00149582
  23  15.1453
  24  9.47027e-05
  25  0.211081
  26  0.174768
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.854e+01  1.140e+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:  7.541e-01  1.748e-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.299e+00  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.00
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 5.06e-08 +/- 3.11e-08
Energy Flux (Fixed Index): 3.05e-05 +/- 1.88e-05

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) = 7677.31471204
delta logL = 0.167787327032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7677.29660398
delta logL = 0.185895390432

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.403       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3367       1.0000          .0000       10.000    
     3 'Normalizat'    1.2793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76213       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=   7677.297     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      301 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.399        11.216        .10205E-03    .22013E-03
   2  Index         2.3364        .47760        .56431E-02    .38977E-04
   3  Normalizat    1.2793        .19766        .24316E-03    .15721E-03
   4  Prefactor     .76218        .17307        .27169E-03    .98586E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3993
  Index      = 2.33642
  Normalizat = 1.27928
  Prefactor  = 0.76218
 **********
 **   18 **HESSE 
 **********

 FCN=   7677.297     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.399        10.653        .40821E-05   -1.4923    
   2  Index         2.3364        .45311        .22572E-03   -.56181    
   3  Normalizat    1.2793        .19748        .48632E-04   -.84187    
   4  Prefactor     .76218        .17308        .10868E-04   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74864e-11
Minuit parameter uncertainties:
  1  10.6546
  2  0.453983
  3  0.197592
  4  0.173205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/759149': 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) = 7677.29660299
delta logL = 0.18589638043

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.540e+01  1.065e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.336e+00  4.540e-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:  7.622e-01  1.732e-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.279e+00  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.35
Ra Dec: 187.712 12.388
Photon Index (Free Index): 2.34 +/- 0.45
Photon Flux (Free Index): 7.17e-08 +/- 5.05e-08
Energy Flux (Free Index): 2.57e-05 +/- 1.46e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/759149/cmap_HighResolution_595468801_595728001_4FGL_J1230.8+1223_daily_bin1374.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.06e-08', energy_flux2='2.57e-05', photon_flux_error='3.11e-08', dlogl='1.86e-01', energy_flux='3.05e-05', photon_flux2='7.17e-08', job_status='DONE', time_completed='2021-09-05 21:53:17.666676', photon_index_error2='0.45', photon_index2='2.34', ts='8.00', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.46e-05', EG='1.30', time_epoch_completed='1630903997.67', return_code='0', job_id='759149', GAL2='0.76', EG2='1.28', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='5.05e-08', ts2='8.35', photon_index='2.06' WHERE bin_id='1374' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:53:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 759149: <4FGL_J1230.8+1223_daily_bin1374> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1374> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:40:28 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:40:35 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:40:35 2021
Terminated at Sun Sep  5 21:53:18 2021
Results reported at Sun Sep  5 21:53:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1374 187.712 12.3883 595468801 595728001 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 :                                   742.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            770 sec.

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

