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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin506
RA = 187.56, Dec = 25.2983
tmin = 370483201, tmax = 370742401
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='738863', job_status='RUN', time_executed='2021-09-05 20:46:38.268701', time_epoch_executed='1630899998.27' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738863

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738863/ft1_4FGL_J1230.2+2517_daily_bin506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738863/ft2_4FGL_J1230.2+2517_daily_bin506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738863/ft1_4FGL_J1230.2+2517_daily_bin506.fits outfile=/scratch/kocevski/738863/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin506.fits ra=187.56 dec=25.2983 rad=12.0 tmin=370483201.0 tmax=370742401.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 19.63
user 19.02
sys 0.57

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738863/ft1_filtered_4FGL_J1230.2+2517_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/738863/ft2_4FGL_J1230.2+2517_daily_bin506.fits sctable="SC_DATA" expcube=/scratch/kocevski/738863/ltcube_370483201_370742401_4FGL_J1230.2+2517_daily_bin506.fits outfile=/scratch/kocevski/738863/expmap_370483201_370742401_4FGL_J1230.2+2517_daily_bin506.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/738863/ltcube_370483201_370742401_4FGL_J1230.2+2517_daily_bin506.fits
.....................!
real 192.97
user 187.83
sys 4.72

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/738863/ft1_filtered_4FGL_J1230.2+2517_daily_bin506.fits scfile=/scratch/kocevski/738863/ft2_4FGL_J1230.2+2517_daily_bin506.fits outfile=/scratch/kocevski/738863/cmap_370483201_370742401_4FGL_J1230.2+2517_daily_bin506.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738863/ft1_filtered_4FGL_J1230.2+2517_daily_bin506.fits scfile=/scratch/kocevski/738863/ft2_4FGL_J1230.2+2517_daily_bin506.fits outfile=/scratch/kocevski/738863/cmap_HighResolution_370483201_370742401_4FGL_J1230.2+2517_daily_bin506.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1931       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1487       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8050       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3267       1.0000         .10000E-03   10000.    
    10 'norm      '    9.7929       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4072       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8473       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.189       1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.759       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10553E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .46912       1.0000         .10000E-03   10000.    
    24 'norm      '    13.437       1.0000         .10000E-03   10000.    
    25 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    8.3018       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0495       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1994       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=   2112.720     FROM MIGRAD    STATUS=CONVERGED    670 CALLS     3937 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.913        .70239E-06** at limit **
   2  Prefactor     .10000E-03    20.216       -.20828E-06** at limit **
   3  Prefactor     3.1926        4.6300       -.26852E-06   -.81507E-04
   4  Prefactor     .10000E-03    35.377        .31007E-06** at limit **
   5  norm          1.1486        2.0413        .26171E-06    .15947E-04
   6  Prefactor     4.8087        10.891        .77966E-05   -.82045E-04
   7  Prefactor     .10000E-03    14.205        .11866E-06** at limit **
   8  Prefactor     .10000E-03    7.6655       -.79531E-06** at limit **
   9  Prefactor     5.3276        8.3039       -.24476E-06   -.22405E-04
  10  norm          9.7933        8.1603       -.62471E-07   -.11859E-04
  11  Prefactor     .10000E-03    6.4216        .37763E-06** at limit **
  12  Prefactor     4.4079        6.6314        .15861E-06   -.81467E-05
  13  Prefactor     .10000E-03    4.2738        .16150E-07** at limit **
  14  Prefactor     .10000E-03    6.4984        .38563E-07** at limit **
  15  norm          1.8475        .84780       -.10276E-06   -.26766E-03
  16  norm          .10000E-03    7.0767        .87115E-07** at limit **
  17  Prefactor     41.161        28.778        .24208E-07   -.73006E-04
  18  Prefactor     34.712        164.42        .68938E-07   -.10084E-04
  19  Prefactor     .10000E-03    40.302        .37517E-07** at limit **
  20  Prefactor     .10000E-03    43.877        .15200E-05** at limit **
  21  norm          .10000E-03    2.7431        .74388E-07** at limit **
  22  Prefactor     .10000E-03    47.623        .77041E-06** at limit **
  23  norm          .50639        10.494        .15768E-05   -.18490E-03
  24  norm          13.440        10.054        .16147E-06   -.24058E-04
  25  norm          .10000E-03    8.6414       -.55156E-07** at limit **
  26  norm          8.1781        133.59       -.21586E-05   -.73510E-04
  27  Normalizat    1.0490        .36167       -.28345E-05   -.31377E-04
  28  Prefactor     1.1998        .38243        .49637E-06   -.68994E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.19264
  Prefactor  = 0.0001
  norm       = 1.14856
  Prefactor  = 4.80866
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.32761
  norm       = 9.79326
  Prefactor  = 0.0001
  Prefactor  = 4.40786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.84753
  norm       = 0.0001
  Prefactor  = 41.1614
  Prefactor  = 34.7118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.506394
  norm       = 13.4402
  norm       = 0.0001
  norm       = 8.17814
  Normalizat = 1.04904
  Prefactor  = 1.19975
 **********
 **   18 **HESSE 
 **********

 FCN=   2112.720     FROM HESSE     STATUS=OK           513 CALLS     4450 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1926        4.6270        .11014E-03   -1.5351    
   4  Prefactor     .10000E-03    35.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1486        2.0012        .81368E-04   -1.5494    
   6  Prefactor     4.8087        10.914        .91766E-03   -1.5269    
   7  Prefactor     .10000E-03    14.207        .16924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.8628        .12439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.3276        8.2757        .15720E-03   -1.5246    
  10  norm          9.7933        8.2237        .92074E-04   -1.5082    
  11  Prefactor     .10000E-03    6.4352        .11377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.4079        6.6709        .11160E-03   -1.5288    
  13  Prefactor     .10000E-03    4.3895        .18516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.5031        .11443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8475        .84743        .26796E-04   -1.5436    
  16  norm          .10000E-03    7.1032        .11939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     41.161        28.820        .62459E-04   -1.4424    
  18  Prefactor     34.712        164.85        .67972E-04   -1.4529    
  19  Prefactor     .10000E-03    40.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    44.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.7442        .74347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    47.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .50639        22.100        .27892E-02   -1.5566    
  24  norm          13.440        10.078        .10927E-03   -1.4975    
  25  norm          .10000E-03    8.6431        .13188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          8.1781        134.42        .13914E-03   -1.5136    
  27  Normalizat    1.0490        .42329        .28924E-03   -.91405    
  28  Prefactor     1.1998        .44961        .30301E-03   -.86339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13439e-10
Minuit parameter uncertainties:
  1  3.52886e-05
  2  8.22989e-05
  3  4.62754
  4  0.000100976
  5  2.00128
  6  10.9185
  7  5.59733e-07
  8  0.000116278
  9  8.27752
  10  8.22461
  11  1.24865e-05
  12  6.67204
  13  6.42377e-06
  14  1.93295e-06
  15  0.847432
  16  3.66888e-06
  17  28.8301
  18  151.979
  19  1.02684e-05
  20  7.16736e-05
  21  1.18666e-06
  22  0.000145668
  23  6.6927
  24  10.0795
  25  1.45698e-05
  26  66.4881
  27  0.424666
  28  0.451056
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.000e-04  3.669e-06  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.200e+00  4.511e-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.049e+00  4.247e-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: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/738863/likelihoodResults_370483201_370742401_4FGL_J1230.2+2517_daily_bin506.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) = 2112.7208795
delta logL = -0.000663358758175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2112.72021621
delta logL = -6.85599843564e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10392E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0280       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1998       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2112.200     FROM MIGRAD    STATUS=CONVERGED    184 CALLS      332 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19456        10.227        .46218E-02    .98113E-03
   2  alpha         5.0000        3.6164        .50000    ** at limit **
   3  Normalizat    .89937        .22963        .28924E-02    .47744E-04
   4  Prefactor     1.3026        .24089        .30300E-02    .44375E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.194558
  alpha      = 5
  Normalizat = 0.899369
  Prefactor  = 1.30262
 **********
 **   18 **HESSE 
 **********

 FCN=   2112.200     FROM HESSE     STATUS=OK            29 CALLS      361 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19456        .21699        .20812E-04   -1.5620    
   2  alpha         5.0000        4.1746        .45944E-01    32.987    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .89937        .42009        .11570E-03   -.96482    
   4  Prefactor     1.3026        .45704        .12120E-03   -.83229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30796e-11
Minuit parameter uncertainties:
  1  0.216989
  2  3.02561e-05
  3  0.421631
  4  0.45846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738863': 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) = 2112.19971432
delta logL = 0.520501821024

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.946e-01  2.170e-01  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  5.000e+00  3.026e-05  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.303e+00  4.585e-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:  8.994e-01  4.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 187.560 25.298
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.43e-07 +/- 1.58e-07
Energy Flux (Free Index): 1.92e-05 +/- 2.14e-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/738863/cmap_HighResolution_370483201_370742401_4FGL_J1230.2+2517_daily_bin506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.05e-05', comment='SUCCESS', energy_flux2='1.92e-05', dlogl='5.21e-01', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-09-05 20:56:30.432227', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='2.14e-05', EG='1.05', time_epoch_completed='1630900590.43', return_code='0', job_id='738863', GAL2='1.30', EG2='0.90', return_code2='0', photon_flux_error2='1.58e-07', ts2='1.15', photon_index='2.00' WHERE bin_id='506' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:56:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 738863: <4FGL_J1230.2+2517_daily_bin506> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin506> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 20:41:08 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:44:17 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:44:17 2021
Terminated at Sun Sep  5 20:56:31 2021
Results reported at Sun Sep  5 20:56:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin506 187.56 25.2983 370483201 370742401 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 :                                   584.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            923 sec.

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

