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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin673
RA = 187.712, Dec = 12.3883
tmin = 413769601, tmax = 414028801
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='754497', job_status='RUN', time_executed='2021-09-05 21:27:20.761077', time_epoch_executed='1630902440.76' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/754497

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/754497/ft1_4FGL_J1230.8+1223_daily_bin673.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/754497/ft2_4FGL_J1230.8+1223_daily_bin673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/754497/ft1_4FGL_J1230.8+1223_daily_bin673.fits outfile=/scratch/kocevski/754497/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin673.fits ra=187.712 dec=12.3883 rad=12.0 tmin=413769601.0 tmax=414028801.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 6.20
user 5.93
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/754497/ft1_filtered_4FGL_J1230.8+1223_daily_bin673.fits" evtable="EVENTS" scfile=/scratch/kocevski/754497/ft2_4FGL_J1230.8+1223_daily_bin673.fits sctable="SC_DATA" outfile=/scratch/kocevski/754497/ltcube_413769601_414028801_4FGL_J1230.8+1223_daily_bin673.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/754497/ft2_4FGL_J1230.8+1223_daily_bin673.fits
.....................!
real 13.18
user 12.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/754497/ft1_filtered_4FGL_J1230.8+1223_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/754497/ft2_4FGL_J1230.8+1223_daily_bin673.fits sctable="SC_DATA" expcube=/scratch/kocevski/754497/ltcube_413769601_414028801_4FGL_J1230.8+1223_daily_bin673.fits outfile=/scratch/kocevski/754497/expmap_413769601_414028801_4FGL_J1230.8+1223_daily_bin673.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/754497/ltcube_413769601_414028801_4FGL_J1230.8+1223_daily_bin673.fits
.....................!
real 191.25
user 185.56
sys 5.08

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/754497/ft1_filtered_4FGL_J1230.8+1223_daily_bin673.fits scfile=/scratch/kocevski/754497/ft2_4FGL_J1230.8+1223_daily_bin673.fits outfile=/scratch/kocevski/754497/cmap_413769601_414028801_4FGL_J1230.8+1223_daily_bin673.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.55
user 0.38
sys 0.15

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

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

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    129.62       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.166       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9574       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.519       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .49925       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.913       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.4023       1.0000         .10000E-03   10000.    
    14 'norm      '    .12687E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .85910E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11393E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.977       1.0000         .10000E-03   10000.    
    19 'norm      '    2.8486       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2232       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .78434       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=   5378.909     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     3074 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.201       -.10513E-05** at limit **
   2  Prefactor     129.69        113.25        .56057E-04    .60013E-04
   3  Prefactor     .10000E-03    2.9329        .31375E-06** at limit **
   4  Prefactor     22.171        20.872       -.38336E-06    .83535E-04
   5  Prefactor     8.9604        7.2269        .78539E-07    .40471E-03
   6  Prefactor     .10000E-03    63.469       -.37071E-06** at limit **
   7  Prefactor     12.428        73.585       -.20256E-03    .27645E-04
   8  Prefactor     .50159        3.3781       -.22121E-05   -.44726E-03
   9  Prefactor     .10000E-03    2.5981        .15550E-06** at limit **
  10  Prefactor     .10000E-03    17.681        .14140E-04** at limit **
  11  norm          10.918        6.3997        .37723E-05    .97175E-03
  12  Prefactor     .10000E-03    16.489       -.10241E-04** at limit **
  13  norm          9.4027        .86873       -.59450E-07    .21373E-02
  14  norm          .10000E-03    61.938        .20235E-05** at limit **
  15  Prefactor     .10000E-03    56.899        .10163E-04** at limit **
  16  norm          .86836E-01    .67385       -.80461E-06    .27903E-03
  17  Prefactor     .10000E-03    7.2586       -.41698E-05** at limit **
  18  Prefactor     32.985        40.451        .69672E-05    .10849E-03
  19  norm          2.8496        1.9900       -.36570E-06    .50382E-03
  20  Prefactor     .10000E-03    28.328       -.51634E-05** at limit **
  21  Prefactor     .10000E-03    27.419       -.15957E-05** at limit **
  22  Prefactor     .10000E-03    4.1937        .19644E-06** at limit **
  23  Prefactor     .10000E-03    3.6095        .14962E-06** at limit **
  24  Prefactor     .10000E-03    7.2879        .33779E-05** at limit **
  25  Normalizat    1.2222        .26419        .61813E-05    .30103E-03
  26  Prefactor     .78515        .20666        .11045E-05    .41676E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 129.69
  Prefactor  = 0.0001
  Prefactor  = 22.1705
  Prefactor  = 8.96037
  Prefactor  = 0.0001
  Prefactor  = 12.4279
  Prefactor  = 0.501592
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 10.9181
  Prefactor  = 0.0001
  norm       = 9.40268
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0868359
  Prefactor  = 0.0001
  Prefactor  = 32.9854
  norm       = 2.84964
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22222
  Prefactor  = 0.785153
 **********
 **   18 **HESSE 
 **********

 FCN=   5378.909     FROM HESSE     STATUS=OK           448 CALLS     3522 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     129.69        113.48        .17682E-03   -1.3425    
   3  Prefactor     .10000E-03    2.9335        .12267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.171        20.922        .85077E-04   -1.4766    
   5  Prefactor     8.9604        7.1135        .13392E-03   -1.5109    
   6  Prefactor     .10000E-03    63.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.428        74.188        .11321E-03   -1.5003    
   8  Prefactor     .50159        5.9781        .24098E-02   -1.5566    
   9  Prefactor     .10000E-03    2.6411        .11505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.918        6.2243        .11762E-03   -1.5047    
  12  Prefactor     .10000E-03    16.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.4027        .87098        .19807E-04   -1.5095    
  14  norm          .10000E-03    62.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    56.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .86836E-01    1.3051        .10036E-02   -1.5649    
  17  Prefactor     .10000E-03    7.2665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.985        40.676        .69779E-04   -1.4559    
  19  norm          2.8496        1.9738        .81238E-04   -1.5370    
  20  Prefactor     .10000E-03    28.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.2009        .14668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.6121        .13608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.3097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2222        .33045        .30555E-03   -.85919    
  26  Prefactor     .78515        .25703        .31325E-03   -1.0028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31036e-09
Minuit parameter uncertainties:
  1  0.000238921
  2  113.667
  3  2.58473e-06
  4  20.9292
  5  7.11417
  6  3.95223e-05
  7  60.8421
  8  3.46335
  9  4.16572e-06
  10  0.00023906
  11  6.2247
  12  3.39745e-06
  13  0.870981
  14  0.000449619
  15  1.78127e-05
  16  0.672922
  17  9.16574e-05
  18  40.7098
  19  1.97381
  20  2.42664e-05
  21  7.0481e-05
  22  1.29555e-05
  23  1.25332e-05
  24  4.29525e-05
  25  0.331015
  26  0.257418
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  9.166e-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:  7.852e-01  2.574e-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.222e+00  3.310e-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: 8.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/754497/likelihoodResults_413769601_414028801_4FGL_J1230.8+1223_daily_bin673.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): 102
logL (Free Index) = 5378.91013963
delta logL = -0.00065377613555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5378.90948612
delta logL = -2.69358679361e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0616       1.0000          .0000       10.000    
     3 'Normalizat'    1.2224       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78498       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=   5378.909     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10015E-03    99.634        .18142E-02** at limit **
   2  Index         2.0843        5.9483        .50000       -.44789E-05
   3  Normalizat    1.2222        .23305E-01    .30555E-03    .28278E-05
   4  Prefactor     .78515        .19689E-01    .31325E-03    .25405E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100146
  Index      = 2.08425
  Normalizat = 1.22222
  Prefactor  = 0.785149
 **********
 **   18 **HESSE 
 **********

 FCN=   5378.909     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10015E-03    485.91        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0843        7.1205        .50000       -.62260    
   3  Normalizat    1.2222        .55472E-01    .12222E-04   -.85919    
   4  Prefactor     .78515        .46850E-01    .12530E-04   -1.0028    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.77303e-09
Minuit parameter uncertainties:
  1  0.0170092
  2  1032.17
  3  0.0554744
  4  0.0468522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/754497': 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): 102
logL (Free Index) = 5378.90948583
delta logL = 2.12212398765e-08

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.001e-04  1.701e-02  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.084e+00  1.032e+03  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.851e-01  4.685e-02  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.222e+00  5.547e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/754497/cmap_HighResolution_413769601_414028801_4FGL_J1230.8+1223_daily_bin673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.11e-03', job_status='DONE', photon_flux_upper_limit='8.11e-08', time_completed='2021-09-05 21:39:01.039706', job_id='754497', GAL2='0.79', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630903141.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='673' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:39:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 754497: <4FGL_J1230.8+1223_daily_bin673> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin673> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:25:34 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:27:07 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:27:07 2021
Terminated at Sun Sep  5 21:39:01 2021
Results reported at Sun Sep  5 21:39:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin673 187.712 12.3883 413769601 414028801 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 :                                   695.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            807 sec.

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

