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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin957
RA = 187.56, Dec = 25.2983
tmin = 487382401, tmax = 487641601
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='741846', job_status='RUN', time_executed='2021-09-05 20:52:59.200501', time_epoch_executed='1630900379.2' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='957'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741846

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741846/ft1_4FGL_J1230.2+2517_daily_bin957.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741846/ft2_4FGL_J1230.2+2517_daily_bin957.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741846/ft1_4FGL_J1230.2+2517_daily_bin957.fits outfile=/scratch/kocevski/741846/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin957.fits ra=187.56 dec=25.2983 rad=12.0 tmin=487382401.0 tmax=487641601.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.82
user 3.58
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/741846/ft2_4FGL_J1230.2+2517_daily_bin957.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/741846/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin957.fits evtable="EVENTS" outfile="/scratch/kocevski/741846/ft1_filtered_4FGL_J1230.2+2517_daily_bin957.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.53
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/741846/ft1_filtered_4FGL_J1230.2+2517_daily_bin957.fits" evtable="EVENTS" scfile=/scratch/kocevski/741846/ft2_4FGL_J1230.2+2517_daily_bin957.fits sctable="SC_DATA" outfile=/scratch/kocevski/741846/ltcube_487382401_487641601_4FGL_J1230.2+2517_daily_bin957.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/741846/ft2_4FGL_J1230.2+2517_daily_bin957.fits
.....................!
real 13.88
user 13.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741846/ft1_filtered_4FGL_J1230.2+2517_daily_bin957.fits evtable="EVENTS" scfile=/scratch/kocevski/741846/ft2_4FGL_J1230.2+2517_daily_bin957.fits sctable="SC_DATA" expcube=/scratch/kocevski/741846/ltcube_487382401_487641601_4FGL_J1230.2+2517_daily_bin957.fits outfile=/scratch/kocevski/741846/expmap_487382401_487641601_4FGL_J1230.2+2517_daily_bin957.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/741846/ltcube_487382401_487641601_4FGL_J1230.2+2517_daily_bin957.fits
.....................!
real 193.62
user 188.02
sys 4.85

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/741846/ft1_filtered_4FGL_J1230.2+2517_daily_bin957.fits scfile=/scratch/kocevski/741846/ft2_4FGL_J1230.2+2517_daily_bin957.fits outfile=/scratch/kocevski/741846/cmap_487382401_487641601_4FGL_J1230.2+2517_daily_bin957.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741846/ft1_filtered_4FGL_J1230.2+2517_daily_bin957.fits scfile=/scratch/kocevski/741846/ft2_4FGL_J1230.2+2517_daily_bin957.fits outfile=/scratch/kocevski/741846/cmap_HighResolution_487382401_487641601_4FGL_J1230.2+2517_daily_bin957.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.56
user 0.36
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/741846/ft1_filtered_4FGL_J1230.2+2517_daily_bin957.fits', '/scratch/kocevski/741846/ft2_4FGL_J1230.2+2517_daily_bin957.fits', expMap='/scratch/kocevski/741846/expmap_487382401_487641601_4FGL_J1230.2+2517_daily_bin957.fits', expCube='/scratch/kocevski/741846/ltcube_487382401_487641601_4FGL_J1230.2+2517_daily_bin957.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/741846/Model_4FGL_J1230.2+2517_daily_bin957.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/741846/ft1_filtered_4FGL_J1230.2+2517_daily_bin957.fits
Spacecraft file(s): /scratch/kocevski/741846/ft2_4FGL_J1230.2+2517_daily_bin957.fits
Exposure map: /scratch/kocevski/741846/expmap_487382401_487641601_4FGL_J1230.2+2517_daily_bin957.fits
Exposure cube: /scratch/kocevski/741846/ltcube_487382401_487641601_4FGL_J1230.2+2517_daily_bin957.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/741846/Model_4FGL_J1230.2+2517_daily_bin957.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) = 6030.93718884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23379E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.5466       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .67343E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .85872       1.0000         .10000E-03   10000.    
    10 'norm      '    12.752       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0223       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16570E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7112       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .67295       1.0000         .10000E-03   10000.    
    16 'norm      '    .68123E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.032       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.5858       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .32354E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.0722       1.0000         .10000E-03   10000.    
    24 'norm      '    5.7871       1.0000         .10000E-03   10000.    
    25 'norm      '    .10283E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    39.599       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .73837       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3089       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=   6030.867     FROM MIGRAD    STATUS=CONVERGED    713 CALLS     3061 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    13.078        .10042    ** at limit **
   2  Prefactor     .10000E-03    4.2529        .90712E-02** at limit **
   3  Prefactor     .10000E-03    .68444        .90712E-02** at limit **
   4  Prefactor     .10002E-03    10.254        .90712E-02** at limit **
   5  norm          6.5467        1.6926        .39212E-02    .64722E-04
   6  Prefactor     .10000E-03    1.7025        .90712E-02** at limit **
   7  Prefactor     .10002E-03    9.0100        .90712E-02** at limit **
   8  Prefactor     .64903E-01    1.3990        .55748E-01    .11235E-02
   9  Prefactor     .85757        2.2678        .36612E-01    .10006E-02
  10  norm          12.742        4.1121        .28043E-02   -.17018E-03
  11  Prefactor     5.0216        4.4614        .44859E-02   -.91047E-04
  12  Prefactor     .10000E-03    1.5845        .32493E-01** at limit **
  13  Prefactor     1.7107        2.3374        .80335E-02    .69275E-03
  14  Prefactor     .10000E-03    4.1685        .90712E-02** at limit **
  15  norm          .67302        .30271        .60022E-02    .47736E-03
  16  norm          .10003E-03    2.1310        .59405E-01** at limit **
  17  Prefactor     16.029        10.957        .25008E-02    .57804E-03
  18  Prefactor     7.5823        35.801        .36401E-02    .74467E-03
  19  Prefactor     .10004E-03    36.808        .90712E-02** at limit **
  20  Prefactor     .10009E-03    4.7012        .55872E-01** at limit **
  21  norm          .10000E-03    1.5007        .90712E-02** at limit **
  22  Prefactor     .10007E-03    37.460        .90712E-02** at limit **
  23  norm          5.0724        3.9576        .44633E-02    .16952E-02
  24  norm          5.7804        3.4264        .41739E-02    .99553E-04
  25  norm          .10000E-03    8.0874        .90712E-02** at limit **
  26  norm          39.599        20.556        .15924E-02   -.82458E-05
  27  Normalizat    .73858        .17560        .64146E-01    .16084E-04
  28  Prefactor     1.3089        .19594        .57300E-01    .27174E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100038
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  norm       = 6.54671
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 0.0649027
  Prefactor  = 0.857572
  norm       = 12.7423
  Prefactor  = 5.02162
  Prefactor  = 0.0001
  Prefactor  = 1.71067
  Prefactor  = 0.000100002
  norm       = 0.673016
  norm       = 0.000100032
  Prefactor  = 16.0292
  Prefactor  = 7.58228
  Prefactor  = 0.000100037
  Prefactor  = 0.000100093
  norm       = 0.0001
  Prefactor  = 0.000100066
  norm       = 5.07238
  norm       = 5.78044
  norm       = 0.0001
  norm       = 39.5994
  Normalizat = 0.738577
  Prefactor  = 1.30888
 **********
 **   18 **HESSE 
 **********

 FCN=   6030.867     FROM HESSE     STATUS=OK           525 CALLS     3586 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    89.230        .53369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.2584        .15641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .69811        .62668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    10.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.5467        1.6849        .48867E-04   -1.5196    
   6  Prefactor     .10000E-03    1.7164        .98888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    9.0174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .64903E-01    18.795        .16969E-02   -1.5657    
   9  Prefactor     .85757        1.9399        .17593E-02   -1.5523    
  10  norm          12.742        3.9715        .81110E-04   -1.4994    
  11  Prefactor     5.0216        4.4633        .15050E-03   -1.5260    
  12  Prefactor     .10000E-03    3.4218        .18262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7107        2.2987        .12704E-03   -1.5446    
  14  Prefactor     .10000E-03    4.1958        .15472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .67302        .29932        .26689E-04   -1.5544    
  16  norm          .10003E-03    9.7962        .21818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.029        10.927        .10003E-03   -1.4907    
  18  Prefactor     7.5823        35.804        .14560E-03   -1.5157    
  19  Prefactor     .10004E-03    36.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10009E-03    19.305        .32496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.5099        .92878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10007E-03    37.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.0724        3.9468        .13076E-03   -1.5257    
  24  norm          5.7804        3.3836        .10580E-03   -1.5227    
  25  norm          .10000E-03    8.1956        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          39.599        20.554        .63697E-04   -1.4449    
  27  Normalizat    .73858        .20225        .28378E-03   -1.0239    
  28  Prefactor     1.3089        .23070        .25336E-03   -.83043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96782e-08
Minuit parameter uncertainties:
  1  0.00369522
  2  0.000204128
  3  9.84882e-08
  4  0.000833654
  5  1.6849
  6  6.91206e-07
  7  0.000777846
  8  2.20793
  9  1.94007
  10  3.97159
  11  4.46355
  12  6.82756e-06
  13  2.29886
  14  0.000200349
  15  0.299323
  16  0.00111198
  17  10.9281
  18  32.9853
  19  0.00234524
  20  0.0026764
  21  5.14873e-07
  22  0.00316206
  23  3.947
  24  3.3837
  25  1.50531e-05
  26  20.5574
  27  0.202452
  28  0.230885
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.000e-04  1.112e-03  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:  1.309e+00  2.309e-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:  7.386e-01  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/741846/likelihoodResults_487382401_487641601_4FGL_J1230.2+2517_daily_bin957.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) = 6030.86785233
delta logL = -0.000485503130221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6030.68220711
delta logL = 0.185159718294

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .44169E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9807       1.0000          .0000       5.0000    
     3 'Normalizat'    .69923       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3360       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=   6030.682     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      344 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42622E-01    2.6599        .59206E-02    .49395E-02
   2  alpha         5.0000        2.6226        .46747    ** at limit **
   3  Normalizat    .69902        .49354E-01    .65787E-01   -.64282E-04
   4  Prefactor     1.3357        .54791E-01    .56811E-01   -.11622E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0426218
  alpha      = 5
  Normalizat = 0.699022
  Prefactor  = 1.33573
 **********
 **   18 **HESSE 
 **********

 FCN=   6030.682     FROM HESSE     STATUS=OK            35 CALLS      379 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42622E-01    .92085E-01    .26255E-04   -1.5667    
   2  alpha         5.0000        4.7190        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .69902        .20953        .29108E-03   -1.0393    
   4  Prefactor     1.3357        .23346        .25119E-03   -.82251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3212e-11
Minuit parameter uncertainties:
  1  0.0920848
  2  0.000652133
  3  0.209767
  4  0.23364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741846': 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) = 6030.68210273
delta logL = 0.185264103823

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  4.262e-02  9.208e-02  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  5.000e+00  6.521e-04  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:  1.336e+00  2.336e-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:  6.990e-01  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.560 25.298

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/741846/cmap_HighResolution_487382401_487641601_4FGL_J1230.2+2517_daily_bin957.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-05', job_status='DONE', photon_flux_upper_limit='5.57e-08', time_completed='2021-09-05 21:05:52.319902', job_id='741846', GAL2='1.34', fit_tolerance='1e-08', EG2='0.70', EG='0.74', time_epoch_completed='1630901152.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='1.85e-01', ts2='0.40', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='957' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:05:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 741846: <4FGL_J1230.2+2517_daily_bin957> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin957> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 20:50:32 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:50:39 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:39 2021
Terminated at Sun Sep  5 21:05:52 2021
Results reported at Sun Sep  5 21:05:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin957 187.56 25.2983 487382401 487641601 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 :                                   771.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            920 sec.

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

