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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1041
RA = 187.712, Dec = 12.3883
tmin = 509155201, tmax = 509414401
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='757581', job_status='RUN', time_executed='2021-09-05 21:39:19.583443', time_epoch_executed='1630903159.58' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1041'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757581

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757581/ft1_4FGL_J1230.8+1223_daily_bin1041.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757581/ft2_4FGL_J1230.8+1223_daily_bin1041.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757581/ft1_4FGL_J1230.8+1223_daily_bin1041.fits outfile=/scratch/kocevski/757581/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1041.fits ra=187.712 dec=12.3883 rad=12.0 tmin=509155201.0 tmax=509414401.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.52
user 3.24
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/757581/ft1_filtered_4FGL_J1230.8+1223_daily_bin1041.fits" evtable="EVENTS" scfile=/scratch/kocevski/757581/ft2_4FGL_J1230.8+1223_daily_bin1041.fits sctable="SC_DATA" outfile=/scratch/kocevski/757581/ltcube_509155201_509414401_4FGL_J1230.8+1223_daily_bin1041.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/757581/ft2_4FGL_J1230.8+1223_daily_bin1041.fits
.....................!
real 19.68
user 19.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757581/ft1_filtered_4FGL_J1230.8+1223_daily_bin1041.fits evtable="EVENTS" scfile=/scratch/kocevski/757581/ft2_4FGL_J1230.8+1223_daily_bin1041.fits sctable="SC_DATA" expcube=/scratch/kocevski/757581/ltcube_509155201_509414401_4FGL_J1230.8+1223_daily_bin1041.fits outfile=/scratch/kocevski/757581/expmap_509155201_509414401_4FGL_J1230.8+1223_daily_bin1041.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/757581/ltcube_509155201_509414401_4FGL_J1230.8+1223_daily_bin1041.fits
.....................!
real 161.26
user 156.18
sys 4.70

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/757581/ft1_filtered_4FGL_J1230.8+1223_daily_bin1041.fits scfile=/scratch/kocevski/757581/ft2_4FGL_J1230.8+1223_daily_bin1041.fits outfile=/scratch/kocevski/757581/cmap_509155201_509414401_4FGL_J1230.8+1223_daily_bin1041.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.84
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757581/ft1_filtered_4FGL_J1230.8+1223_daily_bin1041.fits scfile=/scratch/kocevski/757581/ft2_4FGL_J1230.8+1223_daily_bin1041.fits outfile=/scratch/kocevski/757581/cmap_HighResolution_509155201_509414401_4FGL_J1230.8+1223_daily_bin1041.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.205       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1436       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.627       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10543E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.641       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5360       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10652E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .32921       1.0000         .10000E-03   10000.    
    14 'norm      '    36.448       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.786       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0814       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.502       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.8365       1.0000         .10000E-03   10000.    
    19 'norm      '    .23298       1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.498       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5750       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.3005       1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.049       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1864       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86731       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=   6693.246     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     3136 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.201        20.159       -.19648E-05    .65890E-04
   2  Prefactor     .10000E-03    64.571        .51483E-04** at limit **
   3  Prefactor     6.1406        9.6024       -.47331E-05   -.46140E-04
   4  Prefactor     21.630        19.367       -.20400E-05    .19134E-03
   5  Prefactor     .10000E-03    2.1662       -.46134E-06** at limit **
   6  Prefactor     .10000E-03    54.750       -.33566E-04** at limit **
   7  Prefactor     17.639        30.074       -.33426E-05    .41978E-05
   8  Prefactor     3.5370        2.5763       -.77980E-06    .81807E-04
   9  Prefactor     .10000E-03    1.8568       -.34637E-06** at limit **
  10  Prefactor     .10000E-03    10.043        .56149E-06** at limit **
  11  norm          .10000E-03    2.0698        .58669E-06** at limit **
  12  Prefactor     .10002E-03    14.837        .35140E-05** at limit **
  13  norm          .32917        .25877       -.44824E-06   -.26635E-02
  14  norm          36.480        35.485        .26530E-04   -.11188E-04
  15  Prefactor     25.410        148.63       -.69954E-03    .88130E-04
  16  norm          2.0815        .56996       -.29433E-06    .33379E-02
  17  Prefactor     10.501        9.0062       -.62461E-06    .10457E-03
  18  Prefactor     9.8263        24.101       -.56116E-05    .36735E-04
  19  norm          .23493        .98438        .36076E-06   -.14074E-03
  20  Prefactor     25.541        33.281        .29258E-04    .15243E-05
  21  Prefactor     4.5697        133.53       -.19304E-04    .16316E-04
  22  Prefactor     .10000E-03    2.6542       -.18588E-06** at limit **
  23  Prefactor     6.2997        13.763       -.64365E-05    .37259E-04
  24  Prefactor     23.043        14.515       -.41833E-05    .12765E-03
  25  Normalizat    1.1866        .19870        .63452E-05    .11829E-03
  26  Prefactor     .86720        .16844        .11860E-04   -.31622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.2012
  Prefactor  = 0.0001
  Prefactor  = 6.14062
  Prefactor  = 21.6298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6387
  Prefactor  = 3.53699
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.000100024
  norm       = 0.329172
  norm       = 36.4797
  Prefactor  = 25.4101
  norm       = 2.08154
  Prefactor  = 10.5012
  Prefactor  = 9.82628
  norm       = 0.234928
  Prefactor  = 25.5406
  Prefactor  = 4.5697
  Prefactor  = 0.0001
  Prefactor  = 6.29967
  Prefactor  = 23.0428
  Normalizat = 1.18656
  Prefactor  = 0.867199
 **********
 **   18 **HESSE 
 **********

 FCN=   6693.246     FROM HESSE     STATUS=OK           468 CALLS     3604 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.201        20.162        .81419E-04   -1.4724    
   2  Prefactor     .10000E-03    64.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.1406        9.5895        .16197E-03   -1.5212    
   4  Prefactor     21.630        19.438        .86129E-04   -1.4777    
   5  Prefactor     .10000E-03    2.1901        .11750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    54.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.639        30.118        .95357E-04   -1.4868    
   8  Prefactor     3.5370        2.5712        .10721E-03   -1.5332    
   9  Prefactor     .10000E-03    1.9216        .21726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.1262        .22833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    14.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .32917        .25102        .34758E-03   -1.5593    
  14  norm          36.480        35.442        .66383E-04   -1.4499    
  15  Prefactor     25.410        149.98        .39444E-03   -1.4699    
  16  norm          2.0815        .56965        .29981E-04   -1.5419    
  17  Prefactor     10.501        8.9937        .12364E-03   -1.5060    
  18  Prefactor     9.8263        24.074        .12777E-03   -1.5081    
  19  norm          .23493        1.8345        .14889E-02   -1.5611    
  20  Prefactor     25.541        33.226        .79332E-04   -1.4697    
  21  Prefactor     4.5697        129.09        .18820E-03   -1.5280    
  22  Prefactor     .10000E-03    2.6587        .13016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.2997        13.524        .15992E-03   -1.5206    
  24  Prefactor     23.043        14.514        .83433E-04   -1.4748    
  25  Normalizat    1.1866        .23510        .26163E-03   -.87019    
  26  Prefactor     .86720        .19733        .26492E-03   -.97297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98302e-08
Minuit parameter uncertainties:
  1  20.1673
  2  0.00020077
  3  9.59186
  4  19.4433
  5  3.18246e-05
  6  5.08356e-05
  7  30.1438
  8  2.57123
  9  3.92566e-05
  10  0.000212659
  11  7.21644e-05
  12  0.00119562
  13  0.251024
  14  35.4627
  15  123.937
  16  0.569652
  17  8.99482
  18  24.0981
  19  1.31275
  20  33.2498
  21  48.6918
  22  2.13974e-05
  23  13.5307
  24  14.5159
  25  0.235308
  26  0.197496
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.050e+01  8.995e+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:  8.672e-01  1.975e-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.187e+00  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.88
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 2.86e-08 +/- 2.45e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.48e-05

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

Saving results to:
/scratch/kocevski/757581/likelihoodResults_509155201_509414401_4FGL_J1230.8+1223_daily_bin1041.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) = 6693.21173213
delta logL = 0.0344903513915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6693.20624996
delta logL = 0.0399725276848

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.515       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8905       1.0000          .0000       10.000    
     3 'Normalizat'    1.1920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86474       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=   6693.206     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      218 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.511        380.23        .29515E-02    .49469E-04
   2  Index         1.8907        5.2488        .17138        .55438E-04
   3  Normalizat    1.1919        .16274        .59043E-01    .85582E-04
   4  Prefactor     .86487        .93626E-01    .44554E-01   -.14185E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5107
  Index      = 1.89075
  Normalizat = 1.19192
  Prefactor  = 0.864867
 **********
 **   18 **HESSE 
 **********

 FCN=   6693.206     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.511        10.077        .11806E-03   -1.5029    
   2  Index         1.8907        .58284        .95575E-02   -.67110    
   3  Normalizat    1.1919        .22022        .26112E-03   -.86853    
   4  Prefactor     .86487        .19462        .26522E-03   -.97380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51917e-10
Minuit parameter uncertainties:
  1  10.0787
  2  0.585016
  3  0.220391
  4  0.194778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757581': 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) = 6693.20624961
delta logL = 0.039972878034

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.151e+01  1.008e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.891e+00  5.850e-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:  8.649e-01  1.948e-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.192e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.96
Ra Dec: 187.712 12.388
Photon Index (Free Index): 1.89 +/- 0.59
Photon Flux (Free Index): 2.35e-08 +/- 2.62e-08
Energy Flux (Free Index): 2.17e-05 +/- 2.66e-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/757581/cmap_HighResolution_509155201_509414401_4FGL_J1230.8+1223_daily_bin1041.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.66e-03', comment='SUCCESS', photon_flux='2.86e-08', energy_flux2='2.17e-05', photon_flux_error='2.45e-08', dlogl='4.00e-02', energy_flux='1.73e-05', photon_flux2='2.35e-08', job_status='DONE', time_completed='2021-09-05 21:50:46.963231', photon_index_error2='0.59', photon_index2='1.89', ts='2.88', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='8.84e-08', energy_flux_error2='2.66e-05', EG='1.19', time_epoch_completed='1630903846.96', return_code='0', job_id='757581', GAL2='0.86', EG2='1.19', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='2.62e-08', ts2='2.96', photon_index='2.06' WHERE bin_id='1041' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:50:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 757581: <4FGL_J1230.8+1223_daily_bin1041> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1041> 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) <bullet0026>, 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:50:47 2021
Results reported at Sun Sep  5 21:50:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1041 187.712 12.3883 509155201 509414401 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 :                                   652.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             248.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            911 sec.

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

