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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin713
RA = 187.56, Dec = 25.2983
tmin = 424137601, tmax = 424396801
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='740235', job_status='RUN', time_executed='2021-09-05 20:51:14.345856', time_epoch_executed='1630900274.35' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740235

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740235/ft1_4FGL_J1230.2+2517_daily_bin713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740235/ft2_4FGL_J1230.2+2517_daily_bin713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740235/ft1_4FGL_J1230.2+2517_daily_bin713.fits outfile=/scratch/kocevski/740235/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin713.fits ra=187.56 dec=25.2983 rad=12.0 tmin=424137601.0 tmax=424396801.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 5.23
user 4.91
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740235/ft1_filtered_4FGL_J1230.2+2517_daily_bin713.fits" evtable="EVENTS" scfile=/scratch/kocevski/740235/ft2_4FGL_J1230.2+2517_daily_bin713.fits sctable="SC_DATA" outfile=/scratch/kocevski/740235/ltcube_424137601_424396801_4FGL_J1230.2+2517_daily_bin713.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/740235/ft2_4FGL_J1230.2+2517_daily_bin713.fits
.....................!
real 14.38
user 13.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740235/ft1_filtered_4FGL_J1230.2+2517_daily_bin713.fits evtable="EVENTS" scfile=/scratch/kocevski/740235/ft2_4FGL_J1230.2+2517_daily_bin713.fits sctable="SC_DATA" expcube=/scratch/kocevski/740235/ltcube_424137601_424396801_4FGL_J1230.2+2517_daily_bin713.fits outfile=/scratch/kocevski/740235/expmap_424137601_424396801_4FGL_J1230.2+2517_daily_bin713.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/740235/ltcube_424137601_424396801_4FGL_J1230.2+2517_daily_bin713.fits
.....................!
real 191.19
user 185.84
sys 4.78

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/740235/ft1_filtered_4FGL_J1230.2+2517_daily_bin713.fits scfile=/scratch/kocevski/740235/ft2_4FGL_J1230.2+2517_daily_bin713.fits outfile=/scratch/kocevski/740235/cmap_424137601_424396801_4FGL_J1230.2+2517_daily_bin713.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.60
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740235/ft1_filtered_4FGL_J1230.2+2517_daily_bin713.fits scfile=/scratch/kocevski/740235/ft2_4FGL_J1230.2+2517_daily_bin713.fits outfile=/scratch/kocevski/740235/cmap_HighResolution_424137601_424396801_4FGL_J1230.2+2517_daily_bin713.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10767E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.230       1.0000         .10000E-03   10000.    
     5 'norm      '    7.3442       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12431E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3271       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7847       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.1327       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2642       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    67.827       1.0000         .10000E-03   10000.    
    19 'Prefactor '    185.24       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.876       1.0000         .10000E-03   10000.    
    21 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.0980       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    23.287       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .95535       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1717       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=   2050.313     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     4142 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.239       -.48571E-06** at limit **
   2  Prefactor     .10000E-03    9.9562       -.56191E-06** at limit **
   3  Prefactor     .10000E-03    2.8881       -.17372E-05** at limit **
   4  Prefactor     27.279        58.079        .27886E-05    .27887E-04
   5  norm          7.3462        3.4847        .36084E-06    .33662E-03
   6  Prefactor     .10000E-03    5.7798       -.13419E-05** at limit **
   7  Prefactor     .10001E-03    109.77        .46946E-05** at limit **
   8  Prefactor     .10000E-03    2.4332       -.56898E-06** at limit **
   9  Prefactor     .10000E-03    1.8065       -.28303E-06** at limit **
  10  norm          1.3356        10.713        .36863E-05    .18059E-03
  11  Prefactor     .10000E-03    9.4065        .14823E-06** at limit **
  12  Prefactor     .10000E-03    5.6696       -.65570E-06** at limit **
  13  Prefactor     2.7884        5.6623        .91273E-06    .10503E-03
  14  Prefactor     .10000E-03    6.4575       -.20591E-06** at limit **
  15  norm          3.1330        .81276        .90269E-07    .96146E-03
  16  norm          1.2678        27.356        .57878E-05    .11974E-03
  17  Prefactor     .10000E-03    20.631       -.26298E-07** at limit **
  18  Prefactor     67.859        78.062        .12239E-05    .50361E-04
  19  Prefactor     185.72        457.08        .13179E-04    .17088E-04
  20  Prefactor     20.875        16.820       -.12811E-06    .28443E-04
  21  norm          .10000E-03    9.6290        .16235E-05** at limit **
  22  Prefactor     .10000E-03    42.200        .44554E-06** at limit **
  23  norm          8.0988        11.407        .41745E-06    .44984E-04
  24  norm          .10000E-03    18.283        .21183E-05** at limit **
  25  norm          23.285        23.519       -.38227E-06   -.96133E-04
  26  norm          .10000E-03    30.840        .62632E-07** at limit **
  27  Normalizat    .95320        .50452       -.30810E-04    .17228E-03
  28  Prefactor     1.1737        .44796        .26086E-04    .10007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 27.2791
  norm       = 7.34617
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.33557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.78837
  Prefactor  = 0.0001
  norm       = 3.13303
  norm       = 1.26778
  Prefactor  = 0.0001
  Prefactor  = 67.8592
  Prefactor  = 185.717
  Prefactor  = 20.8746
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 8.0988
  norm       = 0.000100001
  norm       = 23.2847
  norm       = 0.0001
  Normalizat = 0.953205
  Prefactor  = 1.17367
 **********
 **   18 **HESSE 
 **********

 FCN=   2050.313     FROM HESSE     STATUS=OK           505 CALLS     4647 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.9738        .13958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.7251        .14609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.279        57.999        .76772E-04   -1.4663    
   5  norm          7.3462        3.4820        .54498E-04   -1.5166    
   6  Prefactor     .10000E-03    5.9090        .10641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    110.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.4660        .69044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8151        .59455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3356        10.206        .25921E-03   -1.5477    
  11  Prefactor     .10000E-03    9.4165        .13565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.6897        .10439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7884        5.5229        .13616E-03   -1.5374    
  14  Prefactor     .10000E-03    6.4643        .11232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.1330        .81347        .19701E-04   -1.5354    
  16  norm          1.2678        27.330        .39633E-03   -1.5483    
  17  Prefactor     .10000E-03    20.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     67.859        77.959        .48736E-04   -1.4059    
  19  Prefactor     185.72        456.20        .14833E-03   -1.2974    
  20  Prefactor     20.875        16.820        .87663E-04   -1.4794    
  21  norm          .10000E-03    9.6826        .13760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    42.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.0988        11.399        .14089E-03   -1.5139    
  24  norm          .10000E-03    18.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          23.285        23.488        .83005E-04   -1.4743    
  26  norm          .10000E-03    30.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .95320        .50530        .30447E-03   -.94615    
  28  Prefactor     1.1737        .45323        .28615E-03   -.87145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.70554e-10
Minuit parameter uncertainties:
  1  0.000105331
  2  4.22124e-05
  3  0.000117073
  4  58.1188
  5  3.48212
  6  7.62156e-05
  7  0.00182804
  8  3.13531e-05
  9  1.48739e-05
  10  7.38541
  11  2.18243e-05
  12  0.000101818
  13  5.52391
  14  3.30677e-05
  15  0.813468
  16  11.7782
  17  0.000107328
  18  78.0771
  19  465.357
  20  16.8241
  21  0.00017999
  22  0.000266165
  23  11.4018
  24  0.000269362
  25  23.4972
  26  4.24443e-05
  27  0.507852
  28  0.454744
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.268e+00  1.178e+01  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.174e+00  4.547e-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:  9.532e-01  5.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 187.560 25.298
Photon Flux Upper Limit: 2.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.29e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740235/likelihoodResults_424137601_424396801_4FGL_J1230.2+2517_daily_bin713.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) = 2050.11392417
delta logL = 0.199284338345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2050.09278993
delta logL = 0.220418580947

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1664       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1765       1.0000          .0000       5.0000    
     3 'Normalizat'    .90145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2021       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=   2050.093     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      255 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1671        7.6203        .11008E-03    .10121E-03
   2  alpha         3.1767        1.8262        .15422E-01    .83747E-05
   3  Normalizat    .90156        .41968        .31179E-03    .28495E-04
   4  Prefactor     1.2019        .42915        .28296E-03    .20089E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.16705
  alpha      = 3.17674
  Normalizat = 0.901562
  Prefactor  = 1.20192
 **********
 **   18 **HESSE 
 **********

 FCN=   2050.093     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1671        6.3389        .44034E-05   -1.5414    
   2  alpha         3.1767        1.5796        .61688E-03    .27412    
   3  Normalizat    .90156        .42023        .12472E-04   -.96405    
   4  Prefactor     1.2019        .42953        .11318E-04   -.86272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00012e-11
Minuit parameter uncertainties:
  1  6.34083
  2  1.72311
  3  0.421767
  4  0.430785
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740235': 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) = 2050.09278979
delta logL = 0.220418724664

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  2.167e+00  6.341e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  3.177e+00  1.723e+00  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.202e+00  4.308e-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:  9.016e-01  4.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/740235/cmap_HighResolution_424137601_424396801_4FGL_J1230.2+2517_daily_bin713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-04', job_status='DONE', photon_flux_upper_limit='2.16e-07', time_completed='2021-09-05 21:00:02.484201', job_id='740235', GAL2='1.20', fit_tolerance='1e-08', EG2='0.90', EG='0.95', time_epoch_completed='1630900802.48', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='2.20e-01', ts2='0.47', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='713' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:00:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 740235: <4FGL_J1230.2+2517_daily_bin713> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin713> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep  5 20:45:22 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:49:12 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:49:12 2021
Terminated at Sun Sep  5 21:00:02 2021
Results reported at Sun Sep  5 21:00:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin713 187.56 25.2983 424137601 424396801 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 :                                   514.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   650 sec.
    Turnaround time :                            880 sec.

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

