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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin968
RA = 187.56, Dec = 25.2983
tmin = 490233601, tmax = 490492801
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='741863', job_status='RUN', time_executed='2021-09-05 20:50:53.063525', time_epoch_executed='1630900253.06' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='968'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741863

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741863/ft1_4FGL_J1230.2+2517_daily_bin968.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741863/ft2_4FGL_J1230.2+2517_daily_bin968.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741863/ft1_4FGL_J1230.2+2517_daily_bin968.fits outfile=/scratch/kocevski/741863/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin968.fits ra=187.56 dec=25.2983 rad=12.0 tmin=490233601.0 tmax=490492801.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.77
user 3.51
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/741863/ft2_4FGL_J1230.2+2517_daily_bin968.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/741863/ft2_4FGL_J1230.2+2517_daily_bin968.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/741863/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin968.fits evtable="EVENTS" outfile="/scratch/kocevski/741863/ft1_filtered_4FGL_J1230.2+2517_daily_bin968.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.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/741863/ft1_filtered_4FGL_J1230.2+2517_daily_bin968.fits" evtable="EVENTS" scfile=/scratch/kocevski/741863/ft2_4FGL_J1230.2+2517_daily_bin968.fits sctable="SC_DATA" outfile=/scratch/kocevski/741863/ltcube_490233601_490492801_4FGL_J1230.2+2517_daily_bin968.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/741863/ft2_4FGL_J1230.2+2517_daily_bin968.fits
.....................!
real 15.81
user 15.43
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741863/ft1_filtered_4FGL_J1230.2+2517_daily_bin968.fits evtable="EVENTS" scfile=/scratch/kocevski/741863/ft2_4FGL_J1230.2+2517_daily_bin968.fits sctable="SC_DATA" expcube=/scratch/kocevski/741863/ltcube_490233601_490492801_4FGL_J1230.2+2517_daily_bin968.fits outfile=/scratch/kocevski/741863/expmap_490233601_490492801_4FGL_J1230.2+2517_daily_bin968.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/741863/ltcube_490233601_490492801_4FGL_J1230.2+2517_daily_bin968.fits
.....................!
real 191.94
user 186.51
sys 4.89

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 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J1230.2+2517 @ 187.56 25.2983

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/741863/ft1_filtered_4FGL_J1230.2+2517_daily_bin968.fits scfile=/scratch/kocevski/741863/ft2_4FGL_J1230.2+2517_daily_bin968.fits outfile=/scratch/kocevski/741863/cmap_490233601_490492801_4FGL_J1230.2+2517_daily_bin968.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.56 yref=25.2983 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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741863/ft1_filtered_4FGL_J1230.2+2517_daily_bin968.fits scfile=/scratch/kocevski/741863/ft2_4FGL_J1230.2+2517_daily_bin968.fits outfile=/scratch/kocevski/741863/cmap_HighResolution_490233601_490492801_4FGL_J1230.2+2517_daily_bin968.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.56 yref=25.2983 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/741863/ft1_filtered_4FGL_J1230.2+2517_daily_bin968.fits evtable="EVENTS" scfile=/scratch/kocevski/741863/ft2_4FGL_J1230.2+2517_daily_bin968.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/741863/Model_4FGL_J1230.2+2517_daily_bin968.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/741863/ft1_filtered_4FGL_J1230.2+2517_daily_bin968.fits.....................!
real 54.15
user 52.76
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/741863/ft1_filtered_4FGL_J1230.2+2517_daily_bin968.fits', '/scratch/kocevski/741863/ft2_4FGL_J1230.2+2517_daily_bin968.fits', expMap='/scratch/kocevski/741863/expmap_490233601_490492801_4FGL_J1230.2+2517_daily_bin968.fits', expCube='/scratch/kocevski/741863/ltcube_490233601_490492801_4FGL_J1230.2+2517_daily_bin968.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/741863/Model_4FGL_J1230.2+2517_daily_bin968.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1230.2+2517'

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  6.557e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.001e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/741863/ft1_filtered_4FGL_J1230.2+2517_daily_bin968.fits
Spacecraft file(s): /scratch/kocevski/741863/ft2_4FGL_J1230.2+2517_daily_bin968.fits
Exposure map: /scratch/kocevski/741863/expmap_490233601_490492801_4FGL_J1230.2+2517_daily_bin968.fits
Exposure cube: /scratch/kocevski/741863/ltcube_490233601_490492801_4FGL_J1230.2+2517_daily_bin968.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/741863/Model_4FGL_J1230.2+2517_daily_bin968.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) = 5917.14420589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12853E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.573       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.642       1.0000         .10000E-03   10000.    
     5 'norm      '    .83846       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6577       1.0000         .10000E-03   10000.    
     7 'Prefactor '    78.406       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1923       1.0000         .10000E-03   10000.    
    10 'norm      '    10.676       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.9773       1.0000         .10000E-03   10000.    
    15 'norm      '    .45684       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8073       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .34145       1.0000         .10000E-03   10000.    
    21 'norm      '    5.8109       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.1607       1.0000         .10000E-03   10000.    
    25 'norm      '    5.3146       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3446       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .71433       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5917.130     FROM MIGRAD    STATUS=CONVERGED    677 CALLS     3498 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    54.811       -.25286E-05** at limit **
   2  Prefactor     10.573        10.162       -.11406E-06    .91075E-05
   3  Prefactor     .10000E-03    .90545        .13245E-07** at limit **
   4  Prefactor     33.638        36.468       -.32064E-05   -.41878E-04
   5  norm          .83807        1.1790        .16191E-06   -.13957E-02
   6  Prefactor     3.6587        2.8196        .64817E-06   -.31503E-02
   7  Prefactor     78.411        48.571        .35285E-05    .59916E-04
   8  Prefactor     .10000E-03    2.3735       -.10211E-06** at limit **
   9  Prefactor     2.1936        2.9895       -.14986E-06   -.14365E-03
  10  norm          10.676        3.7752       -.14463E-05   -.78205E-03
  11  Prefactor     .10000E-03    3.9277        .84442E-06** at limit **
  12  Prefactor     .10000E-03    .78489        .41797E-07** at limit **
  13  Prefactor     .10000E-03    .92966        .54928E-07** at limit **
  14  Prefactor     8.9786        9.6207        .34969E-06   -.63520E-03
  15  norm          .45693        .26011       -.12288E-07    .43995E-04
  16  norm          1.8077        5.0858       -.31795E-06   -.19444E-03
  17  Prefactor     .10000E-03    5.6711        .19042E-05** at limit **
  18  Prefactor     .10000E-03    11.334       -.33749E-06** at limit **
  19  Prefactor     .10000E-03    28.011        .77848E-05** at limit **
  20  Prefactor     .34448        7.0732       -.44942E-07   -.24712E-04
  21  norm          5.8126        5.0767        .13743E-06    .81638E-04
  22  Prefactor     .10000E-03    26.603       -.67752E-05** at limit **
  23  norm          .10000E-03    1.8745       -.42707E-06** at limit **
  24  norm          5.1544        8.3264        .35782E-06    .43905E-04
  25  norm          5.3242        13.224       -.99645E-07    .26272E-04
  26  norm          .10000E-03    5.4284       -.21916E-05** at limit **
  27  Normalizat    1.3441        .19583        .11847E-06    .82357E-04
  28  Prefactor     .71473        .19618       -.97094E-07    .66346E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.5731
  Prefactor  = 0.0001
  Prefactor  = 33.6383
  norm       = 0.838073
  Prefactor  = 3.65874
  Prefactor  = 78.4115
  Prefactor  = 0.0001
  Prefactor  = 2.19359
  norm       = 10.6756
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.97858
  norm       = 0.456933
  norm       = 1.80772
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.344484
  norm       = 5.81263
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 5.15442
  norm       = 5.32417
  norm       = 0.0001
  Normalizat = 1.34411
  Prefactor  = 0.714733
 **********
 **   18 **HESSE 
 **********

 FCN=   5917.130     FROM HESSE     STATUS=OK           523 CALLS     4021 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.573        10.209        .12322E-03   -1.5058    
   3  Prefactor     .10000E-03    .92238        .71417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     33.638        36.534        .69088E-04   -1.4547    
   5  norm          .83807        1.2067        .25165E-03   -1.5525    
   6  Prefactor     3.6587        5.0053        .93652E-03   -1.5325    
   7  Prefactor     78.411        48.667        .45353E-04   -1.3935    
   8  Prefactor     .10000E-03    2.4574        .23008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1936        2.9589        .14688E-03   -1.5412    
  10  norm          10.676        3.8016        .43017E-03   -1.5054    
  11  Prefactor     .10000E-03    3.9406        .14881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .78947        .66531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .93882        .72386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.9786        9.5881        .66885E-03   -1.5109    
  15  norm          .45693        .25830        .27755E-04   -1.5573    
  16  norm          1.8077        4.9491        .24589E-03   -1.5439    
  17  Prefactor     .10000E-03    5.7098        .17903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .34448        38.032        .38298E-02   -1.5591    
  21  norm          5.8126        5.0790        .15352E-03   -1.5226    
  22  Prefactor     .10000E-03    26.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.7240        .20328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.1544        8.9211        .15626E-03   -1.5254    
  25  norm          5.3242        14.166        .17434E-03   -1.5246    
  26  norm          .10000E-03    5.4343        .17512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3441        .23611        .23262E-03   -.82259    
  28  Prefactor     .71473        .23248        .32006E-03   -1.0295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65629e-08
Minuit parameter uncertainties:
  1  9.0222e-05
  2  10.2105
  3  1.15147e-07
  4  36.5582
  5  1.20673
  6  5.00584
  7  48.6919
  8  1.6672e-06
  9  2.95908
  10  3.80174
  11  6.66111e-06
  12  8.5102e-06
  13  6.09401e-06
  14  9.58974
  15  0.258302
  16  4.9502
  17  3.78963e-05
  18  8.84386e-06
  19  0.000288275
  20  7.24281
  21  5.07937
  22  0.000263713
  23  7.85174e-05
  24  8.92342
  25  14.1747
  26  3.62076e-05
  27  0.236304
  28  0.232801
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.808e+00  4.950e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.001e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  7.147e-01  2.328e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.344e+00  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.20
Ra Dec: 187.560 25.298
Photon Flux Upper Limit: 7.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/741863/likelihoodResults_490233601_490492801_4FGL_J1230.2+2517_daily_bin968.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) = 5916.57213996
delta logL = 0.557590881166

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5916.55728717
delta logL = 0.572443667088

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8502       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9691       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2926       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73980       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5916.557     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      252 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8502        57.961        .60207E-02    .58207E-03
   2  alpha         2.9692        3.9823        .40342        .41626E-04
   3  Normalizat    1.2926        .54347E-01    .53434E-01    .33588E-05
   4  Prefactor     .73980        .55421E-01    .71106E-01    .21090E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.85023
  alpha      = 2.96918
  Normalizat = 1.29256
  Prefactor  = 0.739802
 **********
 **   18 **HESSE 
 **********

 FCN=   5916.557     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8502        3.9561        .11676E-03   -1.5370    
   2  alpha         2.9692        .86364        .13926E-01    .18879    
   3  Normalizat    1.2926        .22920        .23626E-03   -.83789    
   4  Prefactor     .73980        .23265        .31468E-03   -1.0199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49151e-09
Minuit parameter uncertainties:
  1  3.95649
  2  0.882513
  3  0.229383
  4  0.232953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741863': 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) = 5916.55728717
delta logL = 0.572443676007

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  2.850e+00  3.956e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.969e+00  8.825e-01  0.000e+00  5.000e+00 ( 1.000e+00)
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  7.398e-01  2.330e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.293e+00  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 187.560 25.298
Photon Index (Free Index): 2.97 +/- 0.88
Photon Flux (Free Index): 6.25e-08 +/- 6.48e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.27e-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/741863/cmap_HighResolution_490233601_490492801_4FGL_J1230.2+2517_daily_bin968.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-05', comment='SUCCESS', energy_flux2='1.31e-05', dlogl='5.72e-01', photon_flux2='6.25e-08', job_status='DONE', time_completed='2021-09-05 21:04:02.197041', photon_index_error2='0.88', photon_index2='2.97', ts='0.20', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='7.98e-08', energy_flux_error2='1.27e-05', EG='1.34', time_epoch_completed='1630901042.2', return_code='0', job_id='741863', GAL2='0.74', EG2='1.29', return_code2='0', photon_flux_error2='6.48e-08', ts2='1.37', photon_index='2.00' WHERE bin_id='968' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:04:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 741863: <4FGL_J1230.2+2517_daily_bin968> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin968> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 20:50:33 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:50:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 20:50:40 2021
Terminated at Sun Sep  5 21:04:02 2021
Results reported at Sun Sep  5 21:04:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin968 187.56 25.2983 490233601 490492801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1230.2+2517 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   783.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            809 sec.

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

